forked from p34709852/monkey
Add inaccessible_subnet_groups config value
This commit is contained in:
parent
d3ce956224
commit
7111f5b0e2
|
@ -184,6 +184,7 @@ class Configuration(object):
|
|||
|
||||
range_class = FixedRange
|
||||
range_fixed = ['', ]
|
||||
inaccessible_subnet_groups = []
|
||||
|
||||
blocked_ips = ['', ]
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"range_fixed": [
|
||||
""
|
||||
],
|
||||
"inaccessible_subnet_groups": [],
|
||||
"blocked_ips": [""],
|
||||
"current_server": "41.50.73.31:5000",
|
||||
"alive": true,
|
||||
|
|
|
@ -235,6 +235,28 @@ SCHEMA = {
|
|||
"List of IPs/subnets to include when using FixedRange"
|
||||
" (Only relevant for Fixed Range)."
|
||||
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\", \"192.168.0.5/24\""
|
||||
},
|
||||
"inaccessible_subnet_groups": {
|
||||
"title": "Inaccessible IP/subnet groups",
|
||||
"type": "array",
|
||||
"uniqueItems": True,
|
||||
"items": {
|
||||
"type": "array",
|
||||
"title": "Subnet group",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"minItems": 2,
|
||||
"uniqueItems": True,
|
||||
"description": "List of IPs/subnets."
|
||||
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\","
|
||||
" \"192.168.0.5/24\""
|
||||
},
|
||||
"default": [
|
||||
],
|
||||
"description":
|
||||
"List of IP/subnet groups. Each group should consist of subnets that aren't supposed"
|
||||
" to be accessible to one another."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue