From: Ajith Adapa <adapa.ajith@gmail.com>
To: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: doubt with NAPT on icmp packet
Date: Sun, 9 Oct 2011 14:17:36 +0530 [thread overview]
Message-ID: <CADAe=+Jb-D-dJ++MuPLV5sfUHwj+4RCf2Sv7V2sVpPDPP20wJw@mail.gmail.com> (raw)
In-Reply-To: <CADAe=+LpSVuLUohYUXAV+RJh_p8CUmXhQmLLZ+SM5KQayYWaEg@mail.gmail.com>
Hi,
It seems IP MASQUERADING is not working in the case of icmp packet
same rules for a TCP and UDP packet are working without any issue..
Is there any way to debug in this case ?
Regards,
Ajith
On Sun, Oct 9, 2011 at 12:24 PM, Ajith Adapa <adapa.ajith@gmail.com> wrote:
> Hi,
>
> I have a doubt regarding the NAPT mechanism part of netfilter in linux
> kernel for a ICMP packet. I am using Redhat 5.7 64 bit OS.
>
> In case of ICMP packets basically it is the echoid and source address
> are used as a tuple or a key. So based on the NAPT rules present in
> iptables the echo id
> module in icmp packet has to be modified.
>
> But its not happening so. Echoid in icmp packet remains same. My
> iptable nat rules are shown below. Ideal case icmp echo id has to
> modified to the range as shown below.
> I am sorry if I am wrong .. anyway to debug such a scenarios ?
>
> iptables -t nat -L -nv
> Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
> pkts bytes target prot opt in out source
> destination
> 0 0 DNAT all -- eth1 * 0.0.0.0/0
> 0.0.0.0/0 to:192.168.1.1
> Chain POSTROUTING (policy ACCEPT 104 packets, 6628 bytes)
> pkts bytes target prot opt in out source
> destination
> 0 0 MASQUERADE icmp -- * eth1 192.168.1.0/24
> 0.0.0.0/0 masq ports: 63232-63359
>
> Regards,
> Ajith
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-10-09 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADAe=+LWJQxnuMT2LW4Bm7pJAsHP_PHNpde0Vpue4ULMMj17Wg@mail.gmail.com>
2011-10-09 6:54 ` doubt with NAPT on icmp packet Ajith Adapa
2011-10-09 8:47 ` Ajith Adapa [this message]
2011-10-10 3:24 ` Ajith Adapa
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='CADAe=+Jb-D-dJ++MuPLV5sfUHwj+4RCf2Sv7V2sVpPDPP20wJw@mail.gmail.com' \
--to=adapa.ajith@gmail.com \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).