OpenVZ Forum


Home » General » Support » SSH and IPTABLES
SSH and IPTABLES [message #33564] Wed, 22 October 2008 14:56 Go to previous message
alfonsodiecko is currently offline  alfonsodiecko
Messages: 14
Registered: October 2008
Junior Member
Hi,
I have now create my own container with a Debian etch template. My problem is that the communication with ssh doesn’t work. My root server has only one public IP “217.172.182.14” and my OpenVZ container the “192.168.172.50” what in the configuration was added. I have add some rules into my IPtable script

iptables -A INPUT -p tcp --dport 10122 -j AKZEPTIEREN
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -A PREROUTING -d 217.172.182.14 -i eth0 -p tcp --dport 10122 -j DNAT --to-destination  192.168.172.50:22


But the Connection fails when I try to connect the “217.172.182.14:10122”. Are there some other necessary steps after the standard installation (like http://www.howtoforge.de/howto/installation-und-gebrauch-von -openvz-auf-debian-etch/) to make a connection with NAT possible ?
I would be very pleased for further information.

Regards Alfonso
 
Read Message
Read Message
Previous Topic: Problem Upgrade from 2.4.21 to openvz 2.6.18
Next Topic: NATed GRE packets does not reach VETH (NAT,GRE,VETH)
Goto Forum:
  


Current Time: Sun Jul 28 04:21:40 GMT 2024

Total time taken to generate the page: 0.02695 seconds