You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
654 B
Django/Jinja

# should be a unique identifier, <GATEWAY_IP> is what most people use.
router id {{ dn42_local_v4 }};
define OWNAS = {{ dn42_local_as }};
define OWNIP = {{ dn42_local_v4 }};
function is_self_net() {
return net ~ [{{ dn42_local_subnet_v4 }}+];
}
function is_valid_network() {
return net ~ [
172.20.0.0/14{21,29}, # dn42
172.20.0.0/24{28,32}, # dn42 Anycast
172.21.0.0/24{28,32}, # dn42 Anycast
172.22.0.0/24{28,32}, # dn42 Anycast
172.23.0.0/24{28,32}, # dn42 Anycast
172.31.0.0/16+, # ChaosVPN
10.100.0.0/14+, # ChaosVPN
10.127.0.0/16{16,32}, # neonetwork
10.0.0.0/8{15,24} # Freifunk.net
];
}