forked from p15670423/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_class = FixedRange
|
||||||
range_fixed = ['', ]
|
range_fixed = ['', ]
|
||||||
|
inaccessible_subnet_groups = []
|
||||||
|
|
||||||
blocked_ips = ['', ]
|
blocked_ips = ['', ]
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"range_fixed": [
|
"range_fixed": [
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
|
"inaccessible_subnet_groups": [],
|
||||||
"blocked_ips": [""],
|
"blocked_ips": [""],
|
||||||
"current_server": "41.50.73.31:5000",
|
"current_server": "41.50.73.31:5000",
|
||||||
"alive": true,
|
"alive": true,
|
||||||
|
|
|
@ -235,6 +235,28 @@ SCHEMA = {
|
||||||
"List of IPs/subnets to include when using FixedRange"
|
"List of IPs/subnets to include when using FixedRange"
|
||||||
" (Only relevant for Fixed Range)."
|
" (Only relevant for Fixed Range)."
|
||||||
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\", \"192.168.0.5/24\""
|
" 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