Skip to contentSkip to conversation

IPSEC and NAT

DISCUSSION Emiel Mols 1 participant 1 message Oct 15, 2004 netfilter

lore
Share & tools
lore

Emiel Mols

author
#0 lore raw

Hi,

I've managed to setup a host-to-net ipsec connection with a remote network on a linux router using (ported) isakmpd and kernel 2.6.8.1. However, I want to be able to 'share' this ipsec connection with the rest of the network, but since no ipsecn virtual interface is created in the 2.6 kernels I can't use ordinary SNAT/MASQUERADE targets in iptables: ipsec packets get encrypted before entering the POSTROUTING table :(, so the source address of the encapsulated packet can't be changed anymore. I've read
http://lists.netfilter.org/pipermail/netfilter-devel/2004-January/thread.htm
l#13879, but the supplied patch doesn't work very well.

Does anyone have any suggestions on how to get this working?

Thanks in advance,

Emiel