From: "Jason Opperisano" <Jopperisano@alphanumeric.com>
To: netfilter@lists.netfilter.org
Subject: RE: [OT] Was: ESP does not hit the nat table
Date: Tue, 3 Aug 2004 08:42:45 -0400 [thread overview]
Message-ID: <D5C9032B2B09C64EA2409D6214E91AC9051228@asimail2.alphanumeric.com> (raw)
> Hi all,
> Thanks for the reply, I know I messed up the iptables syntax - I did not include the chain...
>
> My main problem however was that ESP packets do not hit the nat table, but it does traverse mangle/filter table. Is this normal? I am mainly looking at SNAT/MASQUERADING ipsec traffic and I am not able to find any documentation on doing this, especially since there is no point in putting a "iptables -t nat -A PREROUTING -p 50 -j SNAT --to-source <me>". -p 50 means ESP as you can already guess.
> Am I missing something here? How do I masquerade ipsec traffic? (assuming my ipsec-VPN client/server is fine with it...)
it would be helpful if you
a) posted your rules (iptables -vxnL && iptables -vxnL -t nat && iptables -vxnL -t mangle)
b) explained what you're trying to do specifically
c) describe how you're testing
as far as the generic "can i nat ESP traffic with iptables" the answer is "surely." i do it on one of my gateways where it's necessary for the LAN behind the gateway to appear differently when it goes through the VPN tunnel.
if i had to take a stab in the dark as to why you're having trouble--i would say that it's related to the fact that the outbound interface of your IPSec traffic needs to be specified as "-o ipsec0" (or whatever number your actual ipsec interface is), not ethX...
you *did* say you were using frees/wan, right?
-j
next reply other threads:[~2004-08-03 12:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-03 12:42 Jason Opperisano [this message]
2004-08-04 8:49 ` [OT] Was: ESP does not hit the nat table Antony Stone
2004-08-05 4:36 ` Ming-Ching Tiew
-- strict thread matches above, loose matches on Subject: below --
2004-08-05 14:26 Kashyap Ashwin
2004-08-02 14:49 Kashyap Ashwin
2004-08-01 19:03 Jason Opperisano
2004-08-01 22:28 ` [OT] Was: " Antony Stone
2004-08-02 8:03 ` Jozsef Kadlecsik
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=D5C9032B2B09C64EA2409D6214E91AC9051228@asimail2.alphanumeric.com \
--to=jopperisano@alphanumeric.com \
--cc=netfilter@lists.netfilter.org \
/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