OpenVZ Forum


Home » General » Support » how to redirect vps port to host
how to redirect vps port to host [message #611] Tue, 27 December 2005 08:39 Go to previous message
peian is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem installing kernel
Next Topic: I need help and will PAID $$$ for it
Goto Forum:
  


Current Time: Sat Nov 16 02:05:08 GMT 2024

Total time taken to generate the page: 0.04032 seconds