[PATCH] fff-network: enable accept_ra

Tim Niemeyer tim at tn-x.org
So Sep 8 17:04:39 CEST 2019


Else we can't enable accept_ra while forwarding is enabled.

Signed-off-by: Tim Niemeyer <tim at tn-x.org>
---

 .../fff/fff-network/files/usr/sbin/configurenetwork        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
index 448bd04..0b47b4f 100755
--- a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
+++ b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
@@ -33,10 +33,15 @@ setAutoConf() {
     # Usage: setAutoConf <interface> <[0|1]>
     local iface=$1
     local on=$2
+    local ra=$2
+
+    if [ "$ra" -eq "1" ]; then
+        ra=2;
+    fi
 
     sysctlfile="/etc/sysctl.d/51-fff-network-$iface.conf"
     echo "# Generated from configurenetwork" > "$sysctlfile"
-    echo "net.ipv6.conf.$iface.accept_ra = $on" >> "$sysctlfile"
+    echo "net.ipv6.conf.$iface.accept_ra = $ra" >> "$sysctlfile"
     echo "net.ipv6.conf.$iface.accept_ra_defrtr = $on" >> "$sysctlfile"
     echo "net.ipv6.conf.$iface.accept_ra_pinfo = $on" >> "$sysctlfile"
     echo "net.ipv6.conf.$iface.autoconf = $on" >> "$sysctlfile"
-- 
2.20.1



Mehr Informationen über die Mailingliste franken-dev