Johnno wrote:

How can I forward a port number from eth0 to other ip number (192.168.0.2)

eth0 = internet side
eth1 = network side (192.168.0.1 - 192.168.0.250)

Many Thanks,
                   Johnno



Here is an example of how to do it for http.
Just change the port numbers for the port you wish to forward.

iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT --to 192.168.0.2:80

Adrian

Reply via email to