Message ID | 1516627049-2812-1-git-send-email-freifunk@adrianschmutzler.de |
---|---|
State | Superseded |
Headers | show |
diff --git a/src/packages/fff/fff-network/files/etc/uci-defaults/61-disable-wan-ipv6 b/src/packages/fff/fff-network/files/etc/uci-defaults/61-disable-wan-ipv6 new file mode 100644 index 0000000..cf7f400 --- /dev/null +++ b/src/packages/fff/fff-network/files/etc/uci-defaults/61-disable-wan-ipv6 @@ -0,0 +1,17 @@ +#!/bin/sh +# Copyright 2018 Adrian Schmutzler +# License GPLv3 + +sysctlfile="/etc/sysctl.d/90-disablewanipv6.conf" + +BOARD="$(uci get board.model.name)" +. "/etc/network.$BOARD" + +if (! [ "$ONE_PORT" = "YES" ]) && [ "$WANDEV" = "$SWITCHDEV" ] ; then + WANDEV="${SWITCHDEV}.2" +fi +if [ -n "$WANDEV" ]; then + echo "net.ipv6.conf.$WANDEV.autoconf=0" > "$sysctlfile" + echo "net.ipv6.conf.$WANDEV.accept_ra=0" >> "$sysctlfile" + sysctl -p "$sysctlfile" +fi
Moin Adrian Am Montag, den 22.01.2018, 14:17 +0100 schrieb Adrian Schmutzler: > This patch disables IPv6 on WAN, so the default route does not > block the ULA access anymore. > > This is a workaround until the underlying problem is fixed. Ich würd gern das Problem genauer verstehen. Könntest du das nochmal beschreiben? Am liebsten gleich im Mantis. Klingt irgendwie nach einem Release-kritischen Bug. Tim > > Side condition: > - The board name needs to be set up in 50-fff-boardname first > > Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> > > --- > > Not tested. > --- > .../files/etc/uci-defaults/61-disable-wan-ipv6 | 17 > +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 src/packages/fff/fff-network/files/etc/uci- > defaults/61-disable-wan-ipv6 > > diff --git a/src/packages/fff/fff-network/files/etc/uci-defaults/61- > disable-wan-ipv6 b/src/packages/fff/fff-network/files/etc/uci- > defaults/61-disable-wan-ipv6 > new file mode 100644 > index 0000000..cf7f400 > --- /dev/null > +++ b/src/packages/fff/fff-network/files/etc/uci-defaults/61-disable- > wan-ipv6 > @@ -0,0 +1,17 @@ > +#!/bin/sh > +# Copyright 2018 Adrian Schmutzler > +# License GPLv3 > + > +sysctlfile="/etc/sysctl.d/90-disablewanipv6.conf" > + > +BOARD="$(uci get board.model.name)" > +. "/etc/network.$BOARD" > + > +if (! [ "$ONE_PORT" = "YES" ]) && [ "$WANDEV" = "$SWITCHDEV" ] ; > then > + WANDEV="${SWITCHDEV}.2" > +fi > +if [ -n "$WANDEV" ]; then > + echo "net.ipv6.conf.$WANDEV.autoconf=0" > "$sysctlfile" > + echo "net.ipv6.conf.$WANDEV.accept_ra=0" >> "$sysctlfile" > + sysctl -p "$sysctlfile" > +fi > -- > 2.7.4 >
Hallo Tim, https://mantis.freifunk-franken.de/view.php?id=83 Ich hab nochmal ein paar Worte geschrieben. Grüße Adrian > -----Original Message----- > From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf > Of Tim Niemeyer > Sent: Sonntag, 28. Januar 2018 12:29 > To: Adrian Schmutzler <freifunk@adrianschmutzler.de>; franken- > dev@freifunk.net > Subject: Re: [PATCH] fff-network: Disable IPv6 on WAN as workaround for > ULA bug > > Moin Adrian > > Am Montag, den 22.01.2018, 14:17 +0100 schrieb Adrian Schmutzler: > > This patch disables IPv6 on WAN, so the default route does not block > > the ULA access anymore. > > > > This is a workaround until the underlying problem is fixed. > Ich würd gern das Problem genauer verstehen. Könntest du das nochmal > beschreiben? Am liebsten gleich im Mantis. Klingt irgendwie nach einem > Release-kritischen Bug. > > Tim > > > > > Side condition: > > - The board name needs to be set up in 50-fff-boardname first > > > > Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> > > > > --- > > > > Not tested. > > --- > > .../files/etc/uci-defaults/61-disable-wan-ipv6 | 17 > > +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > create mode 100644 src/packages/fff/fff-network/files/etc/uci- > > defaults/61-disable-wan-ipv6 > > > > diff --git a/src/packages/fff/fff-network/files/etc/uci-defaults/61- > > disable-wan-ipv6 b/src/packages/fff/fff-network/files/etc/uci- > > defaults/61-disable-wan-ipv6 > > new file mode 100644 > > index 0000000..cf7f400 > > --- /dev/null > > +++ b/src/packages/fff/fff-network/files/etc/uci-defaults/61-disable- > > wan-ipv6 > > @@ -0,0 +1,17 @@ > > +#!/bin/sh > > +# Copyright 2018 Adrian Schmutzler > > +# License GPLv3 > > + > > +sysctlfile="/etc/sysctl.d/90-disablewanipv6.conf" > > + > > +BOARD="$(uci get board.model.name)" > > +. "/etc/network.$BOARD" > > + > > +if (! [ "$ONE_PORT" = "YES" ]) && [ "$WANDEV" = "$SWITCHDEV" ] ; > > then > > + WANDEV="${SWITCHDEV}.2" > > +fi > > +if [ -n "$WANDEV" ]; then > > + echo "net.ipv6.conf.$WANDEV.autoconf=0" > "$sysctlfile" > > + echo "net.ipv6.conf.$WANDEV.accept_ra=0" >> "$sysctlfile" > > + sysctl -p "$sysctlfile" > > +fi > > -- > > 2.7.4 > >
This patch disables IPv6 on WAN, so the default route does not block the ULA access anymore. This is a workaround until the underlying problem is fixed. Side condition: - The board name needs to be set up in 50-fff-boardname first Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- Not tested. --- .../files/etc/uci-defaults/61-disable-wan-ipv6 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/packages/fff/fff-network/files/etc/uci-defaults/61-disable-wan-ipv6