From 68f8f29e2eef7a4d9c034da58ebeb09b90c87fcc Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Thu, 12 May 2016 21:11:04 +0200 Subject: [PATCH] Bird tdf2 --- files/bird-troisdorf2.conf | 94 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 files/bird-troisdorf2.conf diff --git a/files/bird-troisdorf2.conf b/files/bird-troisdorf2.conf new file mode 100644 index 0000000..682386b --- /dev/null +++ b/files/bird-troisdorf2.conf @@ -0,0 +1,94 @@ +/* + * This is an example configuration file. + */ + +# Yes, even shell-like comments work... + +# Configure logging +#log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug }; +#log stderr all; +#log "tmp" all; +#log syslog all; + +#debug protocols all; + +# Override router ID +router id 10.188.255.1; + + +protocol direct { + interface "*"; +}; + +protocol kernel { + device routes; + import all; + export all; + kernel table 42; +}; + +protocol device { + scan time 8; +}; + +function is_default() { + return (net ~ [0.0.0.0/0]); +}; + +# own network +function is_self_net() { + return (net ~ [ 10.188.0.0/16+ ]); +} + +# freifunk ip ranges in general +function is_freifunk() { + return net ~ [ 10.0.0.0/8+, + 104.0.0.0/8+ + ]; +} + +filter hostroute { + if net ~ 185.66.193.104/32 then accept; + reject; +}; + +# Uplink über ff Rheinland +template bgp uplink { + local as 65066; + import where is_default(); + export filter hostroute; + next hop self; + multihop 64; + default bgp_local_pref 200; +}; + +protocol bgp ffrl_bb_a_ak_ber from uplink { + source address 100.64.6.13; + neighbor 100.64.6.12 as 201701; +}; + +protocol bgp ffrl_bb_b_ak_ber from uplink { + source address 100.64.6.19; + neighbor 100.64.6.18 as 201701; +}; + +protocol bgp ffrl_bb_a_ix_dus from uplink { + source address 100.64.6.17; + neighbor 100.64.6.16 as 201701; +}; + +protocol bgp ffrl_bb_b_ix_dus from uplink { + source address 100.64.6.23; + neighbor 100.64.6.22 as 201701; +}; + +protocol bgp ffrl_bb_a_fra3_fra from uplink { + source address 100.64.6.15; + neighbor 100.64.6.14 as 201701; +}; + +protocol bgp ffrl_bb_b_fra3_fra from uplink { + source address 100.64.6.21; + neighbor 100.64.6.20 as 201701; +}; +