Skip to content

Commit ce690e5

Browse files
committed
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.
1 parent 808e244 commit ce690e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/ovpn_run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ if [ $? = 0 ]; then
9090
# If this fails, ensure the docker container is run with --privileged
9191
# Could be side stepped with `ip netns` madness to drop privileged flag
9292

93+
sysctl -w net.ipv6.conf.all.disable_ipv6=0 || echo "Failed to enable IPv6 support"
9394
sysctl -w net.ipv6.conf.default.forwarding=1 || echo "Failed to enable IPv6 Forwarding default"
9495
sysctl -w net.ipv6.conf.all.forwarding=1 || echo "Failed to enable IPv6 Forwarding"
9596
fi

0 commit comments

Comments
 (0)