From ce690e5ab1402a74fcb52870eb1b61f85a0d8d8c Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 3 May 2017 07:48:15 -0700 Subject: [PATCH] ovpn_run: Explicitly enable ipv6 On a recent build I ran in to the following error messages: Wed May 3 14:31:43 2017 /sbin/ip -6 addr add 2001:db8:0:4::1/64 dev tun0 Wed May 3 14:31:43 2017 Linux ip -6 addr add failed: external program exited with error status: 2 This appears to be do to the fact that somewhere something defaulted the kernel in the container to disable IPv6. Not sure if this is my host or the docker daemon. Re-enable it explicitly for now until Docker gets it's IPv6 act together. --- bin/ovpn_run | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ovpn_run b/bin/ovpn_run index 14db9f0..0b2996c 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -90,6 +90,7 @@ 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 -w net.ipv6.conf.all.disable_ipv6=0 || echo "Failed to enable IPv6 support" 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