From e7d0d4ea0ec6f1bba528bcd1ed8b4715ea53b84b Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 29 Dec 2015 13:33:55 -0800 Subject: [PATCH] ovpn_run: Fix sysctl IPv6 forwarding write * I'm not sure if this ever worked without the `-w` flag. Perhaps in an old version of sysctl? --- bin/ovpn_run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ovpn_run b/bin/ovpn_run index 7f03e44..920200c 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -55,8 +55,8 @@ if [ $? = 0 ]; then # If this fails, ensure the docker container is run with --privileged # Could be side stepped with `ip netns` madness to drop privileged flag - sysctl net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default" - sysctl net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding" + sysctl -w net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default" + sysctl -w net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding" fi if [ "$#" -gt 0 ]; then