[Openswan Users] Problem using NETKEY

Tiago Durante tiagodurante at gmail.com
Wed Jul 9 13:04:32 EDT 2008

Hi all!

I've been using KLIPS and now I'm having a big problem with NETKEY.

KLIPS has this great thing that is create a "virtual" ethernet card
for VPNs, what is great when we have a MASQUERADE configuration in the

My problem:

In my firewall I have 2 VPNs established between different networks:


In the end of my iptables rules I've this:

iptables -t nat -A POSTROUTING -s $MY_NET -d \! -j MASQUERADE
iptables -t nat -A POSTROUTING -s $MY_NET -d \! -j MASQUERADE

The problem is that it just work for one of the networks, if I comment
the first line I can get accessible, if I comment the
second line access works for

How can I solve this!? =(

Thanks in advance!

Tiago Durante

Perseverance is the hard work you do after you
get tired of doing the hard work you already did.
-- Newt Gingrich

More information about the Users mailing list