All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marian Stagarescu <marian@ti.com>
To: Ciaran Deignan <ciaran.deignan@netcelo.com>,
	netfilter-devel@lists.netfilter.org,
	Matthieu Marc <matthieu.marc@netcelo.com>
Subject: Re: snat and ICMP question
Date: Wed, 9 Oct 2002 09:34:03 -0400	[thread overview]
Message-ID: <200210090934.03315.marian@ti.com> (raw)
In-Reply-To: <3DA4100B.79866BC0@netcelo.com>

for a quick test you can try to masquerade all and see if the error persists:

iptables -t nat -A POSTROUTING -o outgoing-interface -j MASQUERADE.

can you post the icmp error message ?

an ICMP does have an outter ip hdr and an inner ip dhr
the inner ip hdr is the ip hdr of the dgram that caused the error, 
hence should be the web server ip.
the outer ip hdr should be NATed address if you do the above masquerading.

marian



On Wednesday 09 October 2002 07:16 am, Ciaran Deignan wrote:
> > > > iptables -t mangle -A PREROUTING --in-interface ipsec+ \
> > > >                         -j MARK --set-mark 1
> > > > iptables -t nat -A POSTROUTING -m mark --mark 1 \
> > > >                                 -j MASQUERADE
> >
> > config. Actually, the web server is on the private interface.
> >
> > The ICMP error message contains the real address of the
> > remote user. Do you think I should mark ICMP messages
> > on the OUTPUT chain? I must try that...
>
> I tried adding the following rule, but that didn't change
> anything:
>
> 	iptables -t mangle -A OUTPUT -p ICMP -j MARK --set-mark 1
>
> Is there any way I could cause the ICMP error to be
> generated before the packet is de-nated?
>
> Ciaran

  reply	other threads:[~2002-10-09 13:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 16:52 snat and ICMP question Ciaran Deignan
2002-10-08 19:00 ` Marian Stagarescu
2002-10-09 10:11   ` Ciaran Deignan
2002-10-09 11:16     ` Ciaran Deignan
2002-10-09 13:34       ` Marian Stagarescu [this message]
2002-10-10 10:23         ` Ciaran Deignan
2002-10-10 10:41           ` Balazs Scheidler
  -- strict thread matches above, loose matches on Subject: below --
2002-10-03 10:20 Ciaran Deignan
2002-10-03 12:36 ` 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=200210090934.03315.marian@ti.com \
    --to=marian@ti.com \
    --cc=ciaran.deignan@netcelo.com \
    --cc=matthieu.marc@netcelo.com \
    --cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.