[Openswan Users] NAT?

Paul Wouters paul at xelerance.com
Wed Mar 15 06:35:33 CET 2006

On Tue, 14 Mar 2006, Snitgen, John wrote:

> Linux box (running version, Openswan 2.4.4) with a local Ioopback interface with IP address, and an ethernet interface with IP address
> PC with IP address, connected via hub to the Linux box ethernet interface
> Linux box ipsec.conf: leftsubnet=, rightsubnet=
> If I ping from the Linux box using the command 'ping -I' it successfully traverses the IPsec tunnel, the ping appears to originate from, and I get reply back across the tunnel.  This confirms that the IPsec tunnel is working like it should (according to these rules - leftsubnet=, rightsubnet=
> Now here's my problem - I want to ping/connect a TCP socket from the PC to, and have it appear to originate from address across the IPsec tunnel.  Is this possible over an IPsec tunnel?  Using iptables?  How is it accomplished?


Building and integrating Virtual Private Networks with Openswan:

More information about the Users mailing list