From: Ciaran Deignan <ciaran.deignan@netcelo.com>
To: netfilter@lists.netfilter.org
Cc: Matthieu Marc <matthieu.marc@netcelo.com>
Subject: snat and ICMP question
Date: Thu, 03 Oct 2002 12:20:55 +0200 [thread overview]
Message-ID: <3D9C1A07.B4A0C23C@netcelo.com> (raw)
Hi All,
I have a problem with ICMP (destination-unreachable /
fragmentation needed) packets not bieng NAT-ed correctly
with a specific SNAT configuration.
I have an IPsec tunnel (frees/wan), and I need to source-nat
everything that comes out of the tunnel (strange routing
problem).
I'm using the following configuration
iptables -t mangle -A PREROUTING --in-interface ipsec+ \
-j MARK --set-mark 1
iptables -t nat -A POSTROUTING -m mark --mark 1 \
-j MASQUERADE
However the IPsec tunnel had an MTU of 1400, slightly less
than the ehternet packet. When a user requests a large
web page (for example), the web server send big packets,
and an ICMP error is generated by the NAT-ing node. However
the ICMP packet contains the real destination address, not
the address of the NAT device... The web server ignores the
ICMP error, which is normal.
I'm using iptables v1.2.5. I've noticed that there is
a DNAT / ICMP correction in 1.2.7a. I'm going to download
and test this new version, but I suspect that the behaviour
will be the same.
Has anybody previously encountered this sort of problem?
How can I tell iptables to NAT inside ICMP packets that are
generated locally but that concern connections coming
from the tunnel? I suppose it would work if I just
masquraded everything going through any interface,
but that seems a bit drastic...
Thanks for any pointers,
Ciaran
--
+---------------------------------------------------------+
Ciaran Deignan 04 38 49 87 27
Netcelo SA - IPsec VPN Solutions http://www.netcelo.com/
18-20 rue Henri Barbusse - BP 2501, 38035 Grenoble Cedex 2
+---------------------------------------------------------+
next reply other threads:[~2002-10-03 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-03 10:20 Ciaran Deignan [this message]
2002-10-03 12:36 ` snat and ICMP question Ciaran Deignan
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=3D9C1A07.B4A0C23C@netcelo.com \
--to=ciaran.deignan@netcelo.com \
--cc=matthieu.marc@netcelo.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