*SOLVED* IP forwarding [message #8461] |
Mon, 20 November 2006 13:37 |
jimq
Messages: 3 Registered: November 2006
|
Junior Member |
|
|
Hello all,
I am new to this forum, and to VZ.
My host node was setup with forzza-installer-1.4.2_i386.iso and has Ip 192.168.21.10 and name vm01.
I have created a VE whose IP is 10.0.1.1 and name is test110.
I have been trying to use IP forwarding to connect to the VE through ssh from the outside, using another port (50022), following the explanations provided on http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
All I can get is :
debian@debiandb1:~$ ssh root@192.168.21.10 -p 50022
ssh: connect to host 192.168.21.10 port 50022: Connection refused
while the connection to the host works:
debian@debiandb1:~$ ssh root@192.168.21.10 -p 22
Password:
Last login: Sat Nov 18 21:43:41 2006 from 192.168.21.110
**************************************
vm01:/var# more /etc/network/options
ip_forward=yes
spoofprotect=yes
syncookies=no
*****************************************
vm01:/etc# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere vm01 tcp dpt:50022 to:10.0.1.1:22
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- test110 anywhere to:192.168.21.10
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
If somebody can tell me what is wrong or missing, I would greatly appreciate.
Thanks in advance
Jim
[Updated on: Thu, 23 November 2006 11:36] by Moderator Report message to a moderator
|
|
|