how to redirect vps port to host [message #611] |
Tue, 27 December 2005 08:39 |
peian
Messages: 2 Registered: December 2005
|
Junior Member |
|
|
I want to redirect traffic towards a vps port to a host port.
e.g. 192.168.1.3 is host IP, 192.168.1.13 is a VPS ip.
I want to redirect 192.168.1.13:3456 to 192.168.1.3:80
How do I do it?
This doesn't work:
iptables -t nat -A PREROUTING -p tcp -d 192.168.1.13 --dport 3456 -j DNAT --to 192.168.1.3:80
Thanks a lot.
[Updated on: Tue, 27 December 2005 15:13] Report message to a moderator
|
|
|