Re: port translation

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

 



Antony Stone a écrit :

On Sunday 11 January 2004 1:45 pm, Romain Moyne wrote:



Cedric Blancher a écrit :



iptables -t nat -A POSTROUTING -s $LAN -d $WB -j SNAT --to $ETH0


What must I write instead of $LAN and $ETH0 ?



$LAN is the network range of the machines you might have packets coming from (note it is the source address in the above rule) and $ETH0 is the IP address of the interface on your netfilter machine.


Perhaps $LAN=192.168.0.0/24 and $ETH0=192.168.0.1 for your network?

Antony.



Thanks to everybody ! It works fine now ;)
Thanks you

Romain



[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