|
Hi Michael,
Yep, had both of those turned on already.
With the help of a colleague we've managed to resolve both our problems today. For posterity and future seekers of the truth here are the answers:
1. Not able to route back down the tunnel: Basically we removed the two lines leftprotoport=17/1701 and rightprotoport=17/%any. They were part of the default setup of the script we were using so I didn't give them much thought, but from previous discussions they're only relevant when using L2TP.
2. Couldn't forward packets to the internet: Changed left=<local subnet> to left=0.0.0.0/0. The server is happily sending on packets to the 'net and returning them to the correct host at the other end of the VPN.
Thanks all for the help.
Darren.
----------------------- Original Message -----------------------
From: Michael Hicks <[email protected]>
To: Darren Share <[email protected]>
Date: Fri, 5 Dec 2014 07:51:19 -0800
Subject: Re: [Swan] Can't route back down ipsec tunnel from VPS
Two things that may be affecting your tunnel traffic.
1) Is IP packet forwarding turned on?
/sbin/sysctl net.ipv4.ip_forward Make sure it shows 1
if not, run
/sbin/sysctl -w net.ipv4.ip_forward=1 and if that fixes the problem, make it persistent in /etc/sysctl
2) even if your VPS is forwarding the packets out the interface, if the source IP they are coming from is not something that DO knows to route back to your VPS you will need to Nat Masquerade the VPN traffic to the ip address on your VPS with iptables so that its something DO can route back to you.
tcpdump is your friend
Mike
On Dec 5, 2014, at 12:31 AM, Darren Share <[email protected]> wrote:
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ |
_______________________________________________ Swan mailing list [email protected] https://lists.libreswan.org/mailman/listinfo/swan
