NATing
Carlo Henrico
CarloH at perago.com
Tue Mar 7 14:48:31 CET 2006
Hi All
I am new to all this but here goes.
I have read the docs on NAT'ing etc but am still lost.
I have a linux box with 2 NIC's, one on the public network and one on the
LAN.
The public side has a public IP address but we also have 4 more IP addresses
routed by the ISP down that line.
I would like to "reroute" the traffic from one of those IP addresses to a
web server (port 80) on the LAN.
What I have tried is :
Iptables -t nat PREROUTING -I 1.2.3.4 -j DNAT --to 5.6.7.8
Where 1.2.3.4 is the public IP address and 5.6.7.8 is the LAN address of the
web server.
Please help, what am I doing wrong?
Thanks
Carlo
More information about the netfilter
mailing list