aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ipv6
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-01-19 10:26:03 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-01-19 10:26:03 +0100
commit2804c73b12cecfedb545115f356f08742033dfc0 (patch)
treed352f0eeaed34bd08f8512d6f558f310fe2a4c4b /sysconfig/network-scripts/ifup-ipv6
parentda08727f3bbcc419096b160968aee83104bb7cf6 (diff)
downloadinitscripts-2804c73b12cecfedb545115f356f08742033dfc0.tar
initscripts-2804c73b12cecfedb545115f356f08742033dfc0.tar.gz
initscripts-2804c73b12cecfedb545115f356f08742033dfc0.tar.bz2
initscripts-2804c73b12cecfedb545115f356f08742033dfc0.tar.xz
initscripts-2804c73b12cecfedb545115f356f08742033dfc0.zip
ifup-ipv6: set accept_ra to 2 when IPV6FORWARDING=yes and IPV6_AUTOCONF=yes
Diffstat (limited to 'sysconfig/network-scripts/ifup-ipv6')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipv66
1 files changed, 5 insertions, 1 deletions
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