NATing

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

 



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


[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