From 002f483d3803ab8f36e925e54d05979dfd054c03 Mon Sep 17 00:00:00 2001 From: Andre Schmidt Date: Fri, 17 Apr 2020 14:53:26 +0200 Subject: [PATCH] speicher.hamburg.freifunk.net konfiguration hinzugefuegt --- .../etc/bird/bird.conf | 56 +++++++++++++++++++ .../etc/bird/bird6.conf | 29 ++++++++++ speicher.hamburg.freifunk.net/etc/modules | 5 ++ .../etc/network/interfaces.d/dummy0 | 5 ++ .../etc/network/interfaces.d/enp1s0 | 5 ++ 5 files changed, 100 insertions(+) create mode 100644 speicher.hamburg.freifunk.net/etc/bird/bird.conf create mode 100644 speicher.hamburg.freifunk.net/etc/bird/bird6.conf create mode 100644 speicher.hamburg.freifunk.net/etc/modules create mode 100644 speicher.hamburg.freifunk.net/etc/network/interfaces.d/dummy0 create mode 100644 speicher.hamburg.freifunk.net/etc/network/interfaces.d/enp1s0 diff --git a/speicher.hamburg.freifunk.net/etc/bird/bird.conf b/speicher.hamburg.freifunk.net/etc/bird/bird.conf new file mode 100644 index 0000000..80dd3de --- /dev/null +++ b/speicher.hamburg.freifunk.net/etc/bird/bird.conf @@ -0,0 +1,56 @@ +log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug }; + +router id 10.112.96.23; + +protocol direct { + interface "dummy0"; +} + +protocol kernel { + persist; # Don't remove routes on bird shutdown + scan time 20; # Scan kernel routing table every 20 seconds + export all; # Default is export none +} + +protocol device { + scan time 10; # Scan interfaces every 10 seconds +} + +protocol static { +} + +protocol static natips { + import all; + route 193.96.224.237/32 reject; +}; + +protocol ospf uplink { + export filter { + if proto = "natips" then { + ospf_metric1 = 1000; + accept; + } + + if proto = "direct1" then { + accept; + } + reject; + + }; + + area 0.0.0.0 { + networks { + 10.112.96.0/19; +# 100.64.112.24/29; + }; + interface "enp1s0" { + type nbma; + strict nonbroadcast yes; + neighbors { +# 100.64.112.25 eligible; + 10.112.96.251 eligible; #gw01 + 10.112.96.253 eligible; #gw03 + }; + }; + }; +} diff --git a/speicher.hamburg.freifunk.net/etc/bird/bird6.conf b/speicher.hamburg.freifunk.net/etc/bird/bird6.conf new file mode 100644 index 0000000..c24d885 --- /dev/null +++ b/speicher.hamburg.freifunk.net/etc/bird/bird6.conf @@ -0,0 +1,29 @@ +log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug }; +router id 10.112.96.23; + +protocol kernel { + persist; # Don't remove routes on bird shutdown + scan time 20; # Scan kernel routing table every 20 seconds + export all; # Default is export none +} + +protocol device { + scan time 10; # Scan interfaces every 10 seconds +} + +protocol ospf uplink { + export all; + area 0.0.0.0 { + networks { + 2a03:2267::/32; + }; + interface "enp1s0" { + type nbma; + strict nonbroadcast yes; + neighbors { + fe80::dcad:beff:feef:1020 eligible; + fe80::dcad:beff:feef:3020 eligible; + }; + }; + }; +} diff --git a/speicher.hamburg.freifunk.net/etc/modules b/speicher.hamburg.freifunk.net/etc/modules new file mode 100644 index 0000000..82d563f --- /dev/null +++ b/speicher.hamburg.freifunk.net/etc/modules @@ -0,0 +1,5 @@ +# /etc/modules: kernel modules to load at boot time. +# +# This file contains the names of kernel modules that should be loaded +# at boot time, one per line. Lines beginning with "#" are ignored. +dummy diff --git a/speicher.hamburg.freifunk.net/etc/network/interfaces.d/dummy0 b/speicher.hamburg.freifunk.net/etc/network/interfaces.d/dummy0 new file mode 100644 index 0000000..bf78603 --- /dev/null +++ b/speicher.hamburg.freifunk.net/etc/network/interfaces.d/dummy0 @@ -0,0 +1,5 @@ +auto dummy0 +iface dummy0 inet static + address 193.96.224.237 + netmask 255.255.255.255 + pre-up ip link add dummy0 type dummy diff --git a/speicher.hamburg.freifunk.net/etc/network/interfaces.d/enp1s0 b/speicher.hamburg.freifunk.net/etc/network/interfaces.d/enp1s0 new file mode 100644 index 0000000..5e3a564 --- /dev/null +++ b/speicher.hamburg.freifunk.net/etc/network/interfaces.d/enp1s0 @@ -0,0 +1,5 @@ +auto enp1s0 +iface enp1s0 inet static + address 10.112.96.23/19 +iface enp1s0 inet6 static + address 2a03:2267:2:0:7285:c2ff:fe23:d4ae/64