OpenVZ Forum


Home » General » Support » how to redirect vps port to host
Re: how to redirect vps port to host [message #613 is a reply to message #611] Tue, 27 December 2005 14:33 Go to previous messageGo to previous message
scythe is currently offline  scythe
Messages: 22
Registered: December 2005
Location: Hungary
Junior Member
Hi

I have the same problem (except Im trying to forward a port inside the vps from the host and not outside as peian above - port 8080 of host into port 80 of VPS), and I have iptable_nat loaded before vps start, as well as conntrack enabled on ve0. Probably i (we) are missing some module/setting for iptables, but i cant find which one. My config:

192.168.8.128 is the host address (running in vmware, but that shouldnt count)
10.1.1.1 is the vps address - i can ssh into the vps from the host

# iptables -t nat -A PREROUTING -p tcp -d 192.168.8.128 --dport 8080 -j DNAT --to 10.1.1.1:80

after adding this line to iptables, i just get a connection refused on 192.168.8.128:8080. All rules are set to accept, i dont use any other iptables settings currently.

Thanks for any help!

(Edit: typos)

[Updated on: Tue, 27 December 2005 14:38]

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: Mon Sep 09 20:44:06 GMT 2024

Total time taken to generate the page: 0.04560 seconds