[PATCH] fff-network: Disable IPv6 on WAN as workaround for ULA bug

mail at adrianschmutzler.de mail at adrianschmutzler.de
So Jan 28 13:17:31 CET 2018


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 at freifunk.net] On Behalf
> Of Tim Niemeyer
> Sent: Sonntag, 28. Januar 2018 12:29
> To: Adrian Schmutzler <freifunk at adrianschmutzler.de>; franken-
> dev at 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 at 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
> >



Mehr Informationen über die Mailingliste franken-dev