From: Glaucius Djalma Pereira Junior <glaucius@gmail.com>
To: "pablo.1.munoz@bt.com" <pablo.1.munoz@bt.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: ICMP NAT
Date: Mon, 13 Jun 2005 13:36:29 -0300 [thread overview]
Message-ID: <f48e768e050613093644b07fa6@mail.gmail.com> (raw)
In-Reply-To: <9D598A34672DF24F89FF4F851A41619511F3CA44@i2km08-ukbr.domain1.systemhost.net>
iptables -t nat -A PREROUTING -d PUBLIC_IP -p icmp -j DNAT --to PRIVATE_IP
iptables -t nat -A POSTROUTING -s PRIVATE_IP -p icmp -j SNAT --to PUBLIC_IP
and if you want packets from source local :
iptables -t nat -A OUTPUT -d PUBLIC_IP -p icmp -j DNAT --to PRIVATE_IP
best regards
On 6/13/05, pablo.1.munoz@bt.com <pablo.1.munoz@bt.com> wrote:
>
> Hi all, Can someone tell me how can I implement a SNAT POSTROUTING and a
> DNAT PREROUTING of an ICMP packet?
>
> Regards, Pablo.
>
>
--
Glaucius Djalma Pereira Junior
glaucius@gmail.com
next prev parent reply other threads:[~2005-06-13 16:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-13 15:22 ICMP NAT pablo.1.munoz
2005-06-13 16:36 ` Glaucius Djalma Pereira Junior [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-02-02 11:57 ICMP nat Victor A. Bykov
2006-02-02 12:35 ` Cedric Blancher
2006-02-02 14:54 ` Victor A. Bykov
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=f48e768e050613093644b07fa6@mail.gmail.com \
--to=glaucius@gmail.com \
--cc=netfilter@lists.netfilter.org \
--cc=pablo.1.munoz@bt.com \
/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