libs.firewall: add rfc1918 to named networks

This commit is contained in:
Franzi 2022-02-12 11:23:27 +01:00
parent 8e9097a8c1
commit 556c2b6efe
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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
},
},
} }