Supernode: Unterschied zwischen den Versionen

Aus Freifunk Rheinland e.V.
Zur Navigation springen Zur Suche springen
(BIRD config)
(→‎HowTo Supernode: link korrigiert)
 
(5 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 6: Zeile 6:


Basis für eine Doku
Basis für eine Doku
http://pad.freifunk.net/public/Supernode_from_Scratch
http://pad.freifunk.net/p/Supernode_from_Scratch


== Super-Nodes ==
== Super-Nodes ==
Zeile 19: Zeile 19:
== BIRD ==
== BIRD ==


  # < /etc/bird.conf
# < /etc/bird.conf
  log syslog all;
log syslog all;
  router id $ROUTERID;
router id $ROUTERID;
 
  protocol kernel {
protocol kernel {
          export all;
        export all;
          import all;
        import all;
          device routes;
        device routes;
          kernel table 16;
        kernel table 16;
  };
};
 
  protocol device {
protocol device {
          scan time 8;
        scan time 8;
  };
};
 
  protocol ospf {
protocol ospf {
          import all;
        import all;
          export all;
        export all;
          area 0.0.0.0 {
        area 0.0.0.0 {
                  interface "bb0" {
                interface "bb0" {
                          hello 1;
                        hello 1;
                          dead 4;
                        dead 4;
                  };
                };
                  interface "br0" {
                interface "br0" {
                          stub;
                        stub;
                  };
                };
          };
        };
  };
};
 
 
== BIRD6 ==
 
# < /etc/bird6.conf
log syslog all;
router id $ROUTERID;
protocol kernel {
        export all;
        import all;
        device routes;
        kernel table 16;
};
protocol device {
        scan time 8;
};
protocol radv {
        interface "br0" {
                default lifetime 30;
                max ra interval 5;
        };
};
protocol ospf {
        area 0.0.0.0 {
                interface "bb0" {
                        hello 1;
                        dead 4;
                };
                interface "br0" {
                        stub;
                };
        };
};
 
== dnsmasq ==
 
dhcp-authoritative
dhcp-ignore-names
dhcp-range=$BEGIN,$END,12h
interface=br0
no-resolv
quiet-dhcp
server=8.8.4.4
server=8.8.8.8
server=2001:4860:4860::8888
server=2001:4860:4860::8844
 
== sysctl ==
 
sysctl -w net.ipv6.conf.br0.accept_ra=0
sysctl -w net.ipv6.conf.tap0.accept_ra=0
sysctl -w net.ipv6.conf.bat0.accept_ra=0
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.bridge.bridge-nf-call-arptables=0
sysctl -w net.bridge.bridge-nf-call-ip6tables=0
sysctl -w net.bridge.bridge-nf-call-iptables=0
 
== ebtables ==
 
ebtables -A FORWARD -p IPv6 -i bat0 --ip6-proto ipv6-icmp --ip6-icmp-type router-advertisement -j DROP

Aktuelle Version vom 25. Januar 2015, 19:34 Uhr

Supernodes sind Server zu denen jeder Freifunk-Router mit aktiviertem MESH-VPN eine Verbindung per fastd aufbaut. Alle Supernodes sind untereinander per tinc verbunden.

HowTo Supernode

folgt in Kürze

Basis für eine Doku http://pad.freifunk.net/p/Supernode_from_Scratch

Super-Nodes

{{#ask: Hat Zweck::Super-Node |format=table |mainlabel=Seite |? Hat Hostnamen=Hostname |? Hat Domäne=Domäne }}


BIRD

# < /etc/bird.conf
log syslog all;
router id $ROUTERID;

protocol kernel {
        export all;
        import all;
        device routes;
        kernel table 16;
};

protocol device {
        scan time 8;
};

protocol ospf {
        import all;
        export all;
        area 0.0.0.0 {
                interface "bb0" {
                        hello 1;
                        dead 4;
                };
                interface "br0" {
                        stub;
                };
        };
};


BIRD6

# < /etc/bird6.conf
log syslog all;
router id $ROUTERID;

protocol kernel {
        export all;
        import all;
        device routes;
        kernel table 16;
};

protocol device {
        scan time 8;
};

protocol radv {
        interface "br0" {
                default lifetime 30;
                max ra interval 5;
        };
};

protocol ospf {
        area 0.0.0.0 {
                interface "bb0" {
                        hello 1;
                        dead 4;
                };
                interface "br0" {
                        stub;
                };
        };
};

dnsmasq

dhcp-authoritative
dhcp-ignore-names
dhcp-range=$BEGIN,$END,12h
interface=br0
no-resolv
quiet-dhcp
server=8.8.4.4
server=8.8.8.8
server=2001:4860:4860::8888
server=2001:4860:4860::8844

sysctl

sysctl -w net.ipv6.conf.br0.accept_ra=0
sysctl -w net.ipv6.conf.tap0.accept_ra=0
sysctl -w net.ipv6.conf.bat0.accept_ra=0
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.bridge.bridge-nf-call-arptables=0
sysctl -w net.bridge.bridge-nf-call-ip6tables=0
sysctl -w net.bridge.bridge-nf-call-iptables=0

ebtables

ebtables -A FORWARD -p IPv6 -i bat0 --ip6-proto ipv6-icmp --ip6-icmp-type router-advertisement -j DROP