Linux Netfilter discussions
 help / color / mirror / Atom feed
From: RUMI Szabolcs <rumi_ml@rtfm.hu>
To: netfilter@vger.kernel.org
Cc: Marco Berizzi <pupilla@hotmail.com>
Subject: Re: MASQUERADE/SNAT before IPsec
Date: Mon, 4 Feb 2008 12:26:42 +0100	[thread overview]
Message-ID: <20080204122642.dbfd94e3.rumi_ml@rtfm.hu> (raw)
In-Reply-To: <BAY103-DAV11310E55CA4ED35DB98CE7B2330@phx.gbl>

On Mon, 4 Feb 2008 10:48:51 +0100
"Marco Berizzi" <pupilla@hotmail.com> wrote:

> RUMI Szabolcs wrote:
> 
> > iptables -t nat -A POSTROUTING -s 10.1.1.0/24 -d 164.99.192.0/22 -j
> SNAT --to-source 164.99.195.8
> 
> > The IP address in --to-source 164.99.195.8  is the one that was
> > dynamically allocated by the remote corporate VPN concentrator
> > (not under my control) at the time I've tested the setup.
> 
> > I cannot make an iproute2 dump because I'm using the oldskool
> 
> which ike/ipsec implementation are you using?

On the kernel level I'm using the one that comes with the 2.6 kernel,
so USAGI I guess.

On the userspace level I'm using ipsec-tools-0.6.3_turnpike which is
a special version maintained by Novell that allows us to use their
proprietary Nortel Contivity binary IPsec plugins which are needed
to connect to the corporate VPN. It is using some nasty non-standard
proprietary authentication mechanism in order to be non-compatible
with free implementations but I doubt that my problem is caused by
this.

http://forge.novell.com/modules/xfcontent/downloads.php/turnpike/ipsec-tools-0.6.3/

> > and goes through iptables and gets NATed in the POSTROUTING
> > chain it goes straight out to eth0 and it does not get
> > reevaluated whether it should be handled by IPsec.
> 
> mhhh which kernel version?

To be exact it's 2.6.22-gentoo-r9 from Gentoo Linux.
You can find patch information here:

http://dev.gentoo.org/~dsd/genpatches/patches-2.6.22-9.htm

Thanks!

Best regards,
Sab

      reply	other threads:[~2008-02-04 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-02 21:00 MASQUERADE/SNAT before IPsec RUMI Szabolcs
     [not found] ` <BAY103-DAV9E97CD56D54A10E4D90C4B2310@phx.gbl>
2008-02-03  0:10   ` RUMI Szabolcs
2008-02-03 13:18     ` Marco Berizzi
2008-02-03 18:19       ` RUMI Szabolcs
2008-02-04  9:48         ` Marco Berizzi
2008-02-04 11:26           ` RUMI Szabolcs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080204122642.dbfd94e3.rumi_ml@rtfm.hu \
    --to=rumi_ml@rtfm.hu \
    --cc=netfilter@vger.kernel.org \
    --cc=pupilla@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox