Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[Users] iptables SNAT interfering with IKE?

From: Bill Cornatzer <bcornatzer(at)digital5.com>
Date: Thu May 01 2003 - 15:57:11 EDT


All,

My configuration highlights are as follows...

	OS: Redhat 7.3, kernel=2.4.18-3, iptables=1.2.5-3
	freeswan: 1.98b, x509patch-0.9.14, NAT-Traversal-0.4

I have two locations running dedicated firewalls with the above. These machines act as SNAT proxies for the users behind them. They also provide a full time VPN tunnel between the two sites, and provide "road warrior" VPN support. My SNAT iptables entry looks like this...

        -A POSTROUTING -o eth0 -j SNAT --to <My IP Address>

Everything works fine until a user behind one of my firewalls uses a local IPsec client. Specifically, road warriors are forgetting to turn off their local clients and creating their own tunnel to the remote gateway. When the remote gateway tries to rekey it's "permanent" connection, it finds itself talking to the local user's client and the connection fails. When the local gateway attempts to rekey the connection it is sending requests from the wrong port.

I believe that iptables is giving away port 500 to enable IPsec passthrough. Unfortunately this breaks my permanent VPN tunnel. I would still like to allow local users to use IPSec so, I don't want to block outgoing requests to UDP port 500.

Suggestions?

Thanks in advance,

Do you need help?X

Bill Cornatzer
Network Administrator
Digital 5, Inc.



Users mailing list
Users@lists.freeswan.org
http://lists.freeswan.org/mailman/listinfo/users Received on Fri May 2 09:49:14 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:01:29 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library