From c1db481469ed6e3569d91a1116b2a434ea56fe43 Mon Sep 17 00:00:00 2001 From: Mengdi Gao Date: Wed, 6 Apr 2016 00:08:29 +0800 Subject: [PATCH] Fix #12, bind to IPv6 as well --- bin/start-vpn | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/start-vpn b/bin/start-vpn index 64c4013..ed96781 100755 --- a/bin/start-vpn +++ b/bin/start-vpn @@ -25,6 +25,7 @@ # https://wiki.strongswan.org/projects/strongswan/wiki/ForwardingAndSplitTunneling # Continue reading: https://wiki.strongswan.org/projects/strongswan/wiki/VirtualIP sysctl net.ipv4.ip_forward=1 +sysctl net.ipv6.conf.all.forwarding=1 iptables -t nat -A POSTROUTING -s 10.8.0.0/16 -o eth0 -m policy --dir out --pol ipsec -j ACCEPT iptables -t nat -A POSTROUTING -s 10.8.0.0/16 -o eth0 -j MASQUERADE