Re: ICMP NAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx <pablo.1.munoz@xxxxxx> 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@xxxxxxxxx



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux