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

Tim Niemeyer tim at tn-x.org
So Jan 28 12:29:24 CET 2018


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
> 
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 488 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20180128/0c59b6d8/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev