From: Aleksandar Milivojevic <amilivojevic@pbl.ca>
To: netfilter@lists.netfilter.org
Subject: Re: ICMP Connections ...
Date: Tue, 24 Aug 2004 16:24:41 -0500 [thread overview]
Message-ID: <412BB219.7050201@pbl.ca> (raw)
In-Reply-To: <20040824133610.80037.qmail@web14926.mail.yahoo.com>
Chetan Nagaraja wrote:
> To ping a host in a different network, I have configured a dual homed[
> two network interfaces] linux system to act as NAT router.
[snip]
> But I'am unable to understand the fact that the ICMP replies are
> reaching the host in NETWORK A which had generated the requests, without
> adding a DNAT rule for the same.
> How is this possible, does iptables automatically redirect ICMP replies ?
> And How to avoid the same.
Yes, you specify that you want to do SNAT or DNAT in one direction, and
Netfilter will handle returning packets (and only returning packets!)
correctly.
BTW, what would be the purpuse of preventing this??? If the returned
packet wasn't handled automatically, neither the firewall nor the host
in network A would be able to handle it. Firewall wouldn't be able to
handle it since original ping request hasn't originated from it. Host
in network A (if packet managed to miraculasly reach it despite of
incorrect destination IP address) wouldn't be able to handle it (other
than forwarding it back to the firewall, if kernel configuration
permits) since reply would have destination IP address of the firewall
in the headers. So really no point in avoiding this behaviour.
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
next prev parent reply other threads:[~2004-08-24 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 13:36 ICMP Connections Chetan Nagaraja
2004-08-24 21:05 ` Antony Stone
2004-08-24 21:24 ` Aleksandar Milivojevic [this message]
2004-08-24 21:56 ` Deepak Seshadri
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=412BB219.7050201@pbl.ca \
--to=amilivojevic@pbl.ca \
--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 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.