-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
41 lines (31 loc) · 922 Bytes
/
settings.py
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
PRIVATE_INTERFACES = [
"127.0.0.1",
]
PUBLIC_INTERFACES = [
"192.168.159.129",
]
ALLOW_VERSION_0 = True
ALLOW_VERSION_1 = True
ALLOW_SECURITY_IN_V1 = True
FORCE_SECURITY_IN_V1 = False
STRICT_CERTIFICATE_CHECKING = False
MIN_ALLOWED_MAPPABLE_PORT = 1
MAX_ALLOWED_MAPPABLE_PORT = 65535
EXCLUDED_PORTS = [80, 443, 8080]
MIN_ALLOWED_LIFETIME = 60 # Seconds
MAX_ALLOWED_LIFETIME = 3600 # Seconds
FIXED_LIFETIME = None # In seconds, set to a value to force all mappings lifetime to this value.
BLACKLIST_MODE = False
BLACKLISTED_IPS = [
"10.0.13.37",
"192.168.10.12",
]
WHITELIST_MODE = False
WHITELISTED_IPS = [
"10.14.33.12",
"192.168.55.123",
]
ALLOW_WEB_INTERFACE = True
WEB_INTERFACE_PORT = 8080
WEB_INTERFACE_PASSWORD = "" # Set to anything falsey (False, None, "", ...) to disable it
DEBUG = False # If set to True, will print the current state of all mappings after every request.