Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <jsullivan@opensourcedevelopmentcorp.com>
To: darmian martinez <darmianm@yahoo.com.ar>
Cc: netfilter@lists.netfilter.org
Subject: Re: SNAT question
Date: Fri, 17 Sep 2004 16:48:28 -0400	[thread overview]
Message-ID: <1095454108.2522.27.camel@localhost> (raw)
In-Reply-To: <20040916172012.68861.qmail@web61101.mail.yahoo.com>

On Thu, 2004-09-16 at 13:20, darmian martinez wrote:
> Hello,
>  
> I am trying to change the source ip address of icmp reply packets of the
> firewall, just because i am trying to hide the firewall ip address in the case someone makes a traceroute to my protected network. I dont want
> to block the icmp packet, just to change the source ip address.
> i try it with:
>  
> iptables -t nat -I POSTROUTING -s [FIREWALL_IP] -d [TRACEROUTE_ORIGINATOR] -m state --state RELATED,NEW,ESTABLISHED -j SNAT --to [FAKE_IP_ADDRESS]
>  
> it's does not work. anyone know how to make it?
<snip>
We handle this a little differently in the ISCS project
(http://iscs.sourceforge.net).  Instead, we have a drop rule in the
mangle table to drop any packet with a TTL of 1 rather than sending back
a TTL expired ICMP packet.  At least I think that's what I remember
doing :-)

We had originally planned to simply increment the TTL by 1 so that a
packet would never expire on the gateway but then decided that was a bad
way to go about it.
-- 
John A. Sullivan III
Open Source Development Corporation
Financially sustainable open source development
http://www.opensourcedevel.com



  reply	other threads:[~2004-09-17 20:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 17:20 SNAT question darmian martinez
2004-09-17 20:48 ` John A. Sullivan III [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-14 17:30 SNAT Question Burton
2004-12-14 17:51 ` Lopsch
2004-11-15 18:33 SNAT question Gary W. Smith
2004-11-14 22:53 Gary W. Smith
     [not found] <20040917181300.76253.qmail@web61109.mail.yahoo.com>
2004-09-18 21:46 ` Alexey Toptygin
2004-09-19 17:10   ` darmian martinez
2004-09-21 13:11     ` Jason Opperisano
2004-03-01 23:56 Felipe
2004-03-02  0:22 ` Antony Stone
2004-03-02  1:28   ` Felipe
2004-02-20 20:15 John Black
2004-02-20 21:05 ` Antony Stone
2004-02-21  3:33   ` John Black
2004-02-20 21:08 ` John A. Sullivan III
2003-01-27 19:46 Jean-Rene Cormier
2002-10-31 12:18 mailinglists

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=1095454108.2522.27.camel@localhost \
    --to=jsullivan@opensourcedevelopmentcorp.com \
    --cc=darmianm@yahoo.com.ar \
    --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