[Openswan Users] NAT?

Snitgen, John John.Snitgen at tnsi.com
Tue Mar 14 14:51:36 CET 2006

I'm having trouble getting traffic routed over my IPsec tunnel.
Here's what I have:

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?

This e-mail message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information of Transaction NetworkServices.  
Any unauthorized review, use, disclosure or distribution isprohibited.  If you 
are not the intended recipient, please contact thesender by reply e-mail and 
destroy all copies of the original message.

More information about the Users mailing list