libs.firewall: add rfc1918 to named networks
This commit is contained in:
parent
8e9097a8c1
commit
556c2b6efe
1 changed files with 10 additions and 0 deletions
|
@ -33,4 +33,14 @@ def generate_ip_list_from_routes(filename):
|
||||||
named_networks = {
|
named_networks = {
|
||||||
'versatel': generate_ip_list_from_routes('as8881'),
|
'versatel': generate_ip_list_from_routes('as8881'),
|
||||||
'telekom': generate_ip_list_from_routes('as3320'),
|
'telekom': generate_ip_list_from_routes('as3320'),
|
||||||
|
'rfc1918': {
|
||||||
|
'ipv4': {
|
||||||
|
'10.0.0.0/8',
|
||||||
|
'172.16.0.0/12',
|
||||||
|
'192.168.0.0/16',
|
||||||
|
},
|
||||||
|
'ipv6': {
|
||||||
|
'fc00::/7', # actually RFC 4193, but good enough here
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue