From 3fce1e6f67cd52afa4470c1ee7d42112d9d9405b Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sat, 5 Jul 2014 15:56:12 +0200 Subject: Disable IPv6 on IP6=no --- src/lib/ip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ip b/src/lib/ip index 66aab56..b7847a2 100644 --- a/src/lib/ip +++ b/src/lib/ip @@ -47,11 +47,12 @@ ip_set() { case "$IP6" in dhcp*|stateless|static) [[ -d "/proc/sys/net/ipv6" ]] || modprobe ipv6 + sysctl -q -w "net.ipv6.conf.$interface_sysctl.disable_ipv6=0" [[ $IP6 == "static" ]] sysctl -q -w "net.ipv6.conf.$interface_sysctl.accept_ra=$?" ;; no) - [[ -d "/proc/sys/net/ipv6" ]] && sysctl -q -w "net.ipv6.conf.$interface_sysctl.accept_ra=0" + [[ -d "/proc/sys/net/ipv6" ]] && sysctl -q -w "net.ipv6.conf.$interface_sysctl.disable_ipv6=1" ;; "") # undefined IP6 does not prevent RA's from being received -> nop ;; -- cgit v1.2.3-24-g4f1b