Re: NAT ICMP

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

 



> Hi, Does someone know how to NAT ICMP from a
>private Network to the internet.
>
> I tried to add a NAT Rule on my firewall but it seems
> that NAT is available only for UDP/TCP??

Uh ?

How about :

$IPT -A FORWARD -i <if_in> -o <if_out> -s <net_lan> -p icmp -j ACCEPT

$IPT -t nat -A POSTROUTING -o <if_out> -s <net_lan> -p icmp -j SNAT
<ip_inet>
or
$IPT -t nat -A POSTROUTING -o <if_out> -s <net_lan> -p icmp -j MASQUERADE


Gr,
Rob



[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