-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py example
More file actions
43 lines (37 loc) · 2.75 KB
/
config.py example
File metadata and controls
43 lines (37 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#BDOS Baseline deviation ratio and alert threshold
DET_MARGIN_RATIO = 1 #sets the virtual baseline ratio. For example 1 = Virtual baseline is the same as the actual baseline (100% of the actual Normal bassline), 0.3 = 30% etc.
DET_ALARM_THRESHOLD = 10 #sets threshold for the number of occurances where the actual traffic went above the Virtual baseline. In case there were more occurrences than the defined threshold, these policies and protocols will be listed in the “low_bdos_baselines.csv”
DURATION = 1 # sets the time frame in days for the data collection period
UDP_NBASELINE = 100000 # sets UDP Normal Baseline threhold, below which all policies will be listed
HIGH_BDOS_BASELINE_REPORT = False
VISION_IP = "1.1.1.1" # APSolute Vision IP
VISION_USER = "radware" # APSolute Vision username
VISION_PASS = "radware" # APSolute Vision password
VISION_VER = 4.83
################# Scope #################
#######- EITHER -#######
CUSTOMERS_JSON = False # True - scope for the data collection will be defined from "customers.json" file, False - scope will be defined using config.py variable "DP_IP_SCOPE_LIST"
CUSTOMERS_JSON_CUST_ID_LIST = [] # List of customer IDs to collect data for, comma separated, example ['Customer A','Customer B']. If empty [] - collect data for all customers defined in customers.json file
###### --OR-- #######
DP_IP_SCOPE_LIST = ['10.105.192.30','10.105.192.34'] #['10.105.192.30','10.105.192.34'] List of DefensePro IP addresses to analyze, comma separated, example ['1.1.1.2','1.1.1.3']. if empty []- analyze all DefensePro in Vision
###########################################
REPORTS_PATH = "./Reports/" # Path to save reports
RAW_DATA_PATH = "./Raw Data/" # Path to save raw data
REQUESTS_PATH = "./Requests/" # Path to save requests payload
CUSTOMERS_JSON_PATH = "./"
# Log set up parameters
LOG_FILE_PATH = "./log/" # folder to save the script logging events
LOG_ROTATION_SIZE = 20000000 # Maximum rotation log file size in Bytes after which it will be split to another file
LOG_ROTATION_HISTORY = 10 # Maximum amount of files to keep
SYSLOG_SERVER = "1.1.1.2" # Syslog server destination IP
SYSLOG_PORT = 514 # Syslog server destination UDP port
# Email set up parameters for sending email with reports
SMTP = False # True - send email with reports, False - do not send email with reports
SMTP_AUTH = True
SMTP_SERVER = "smtp.gmail.com" # SMTP server name
SMTP_SERVER_PORT = 587 # SMTP server port
SMTP_SENDER = 'email@gmail.com' # Email sender address setting
SMTP_PASSWORD = 'password' # Email password (optional)
SMTP_LIST = ['someone@radware.com'] # Email address/address list recepient/s(comma separated)
SMTP_SUBJECT_PREFIX = "ALARM:DP - " # Email Subject
SMTP_MSG_BODY = "This email was automated by the DefensePro BDOS monitoring script" # Email message body