From 2804c73b12cecfedb545115f356f08742033dfc0 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Mon, 19 Jan 2015 10:26:03 +0100 Subject: ifup-ipv6: set accept_ra to 2 when IPV6FORWARDING=yes and IPV6_AUTOCONF=yes --- sysconfig/network-scripts/ifup-ipv6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup-ipv6 b/sysconfig/network-scripts/ifup-ipv6 index 31b3b64c..b31ad11b 100755 --- a/sysconfig/network-scripts/ifup-ipv6 +++ b/sysconfig/network-scripts/ifup-ipv6 @@ -102,11 +102,13 @@ if [ "$IPV6FORWARDING" = "yes" ]; then ipv6_local_forwarding=1 ipv6_local_auto=0 + ipv6_local_accept_ra=0 if [ "$IPV6_ROUTER" = "no" ]; then ipv6_local_forwarding=0 fi if [ "$IPV6_AUTOCONF" = "yes" ]; then ipv6_local_auto=1 + ipv6_local_accept_ra=2 fi else # Global forwarding should be disabled @@ -119,12 +121,14 @@ else ipv6_local_forwarding=0 ipv6_local_auto=1 + ipv6_local_accept_ra=1 if [ "$IPV6_AUTOCONF" = "no" ]; then ipv6_local_auto=0 + ipv6_local_accept_ra=0 fi fi /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.forwarding=$ipv6_local_forwarding >/dev/null 2>&1 -/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_ra=$ipv6_local_auto >/dev/null 2>&1 +/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_ra=$ipv6_local_accept_ra >/dev/null 2>&1 /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_redirects=$ipv6_local_auto >/dev/null 2>&1 /sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.autoconf=$ipv6_local_auto >/dev/null 2>&1 -- cgit v1.2.1