Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bird6.conf:
- # This file is managed by ansible, don't make changes here - they will be overwritten.
- log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
- router id 5;
- table ffnet;
- filter freifunk {
- if net ~ 2a03:2260:2004::/48 then accept;
- reject;
- }
- protocol kernel {
- scan time 20;
- import all;
- export all;
- table ffnet;
- kernel table 42;
- device routes;
- persist;
- };
- protocol radv {
- interface "bat03" {
- max ra interval 20;
- link mtu 1280;
- prefix 2a03:2260:2004:300::/64 {
- };
- rdnss {
- ns 2a03:2260:2004:300::5;
- };
- dnssl "fflip";
- };
- interface "bat04" {
- max ra interval 20;
- link mtu 1280;
- prefix 2a03:2260:2004:400::/64 {
- };
- rdnss {
- ns 2a03:2260:2004:400::5;
- };
- dnssl "fflip";
- };
- };
- protocol bfd {
- table ffnet;
- interface "gre*";
- interface "bck*";
- multihop {
- passive;
- };
- };
- protocol device {
- scan time 10;
- };
- protocol ospf {
- table ffnet;
- import filter freifunk;
- export all;
- area 0.0.0.0 {
- interface "bat*" {
- stub;
- };
- interface "bck-*";
- interface "lo" {
- stub;
- };
- };
- };
- function is_default() {
- return (net ~ [::/0]);
- };
- filter export_to_upstream_filter {
- if source = RTS_OSPF_EXT2 then reject;
- if net ~ [2a03:2260:2004::/48{48,56}] then accept;
- reject;
- };
- protocol static static_domaene03 {
- table ffnet;
- route 2a03:2260:2004:300::/56 reject;
- };
- protocol static static_domaene04 {
- table ffnet;
- route 2a03:2260:2004:400::/56 reject;
- };
- protocol kernel 'kernel_master' {
- scan time 20;
- table master;
- kernel table 254;
- import all;
- export all;
- persist;
- };
- protocol static {
- table master;
- import all;
- export none;
- };
- protocol direct {
- interface "lo";
- interface "tun-ffrl*";
- interface "gre-*";
- interface "bck-*";
- interface "bat*";
- table ffnet;
- }
- template bgp internal {
- table ffnet;
- local as 64884;
- import filter {
- if is_default() then
- preference = 99;
- else
- preference = 160;
- accept;
- };
- export filter {
- if source = RTS_BGP then accept;
- else reject;
- };
- gateway direct;
- direct;
- next hop self;
- };
- protocol bgp ibgp_hermann from internal {
- neighbor 2a03:2260:115:ffa1::2:5:1 as 64884;
- }
- protocol bgp ibgp_arminius from internal {
- neighbor 2a03:2260:115:ffa1::3:5:1 as 64884;
- }
- protocol bgp ibgp_varus from internal {
- neighbor 2a03:2260:115:ffa1::4:5:1 as 64884;
- }
- template bgp uplink {
- table ffnet;
- local as 64884;
- import where is_default();
- export filter export_to_upstream_filter;
- gateway recursive;
- }
- protocol bgp ffrl_dus1 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:366::2;
- neighbor 2a03:2260:0:366::1 as 201701;
- };
- protocol bgp ffrl_dus2 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:369::2;
- neighbor 2a03:2260:0:369::1 as 201701;
- };
- protocol bgp ffrl_fra1 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:365::2;
- neighbor 2a03:2260:0:365::1 as 201701;
- };
- protocol bgp ffrl_fra2 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:368::2;
- neighbor 2a03:2260:0:368::1 as 201701;
- };
- protocol bgp ffrl_ber1 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:364::2;
- neighbor 2a03:2260:0:364::1 as 201701;
- };
- protocol bgp ffrl_ber2 from uplink {
- description "Rheinland Backbone";
- source address 2a03:2260:0:367::2;
- neighbor 2a03:2260:0:367::1 as 201701;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement