Forward port with Nat don't work but my config seem good
Posted: 23. Apr 2009, 16:44
Hi,
On a Windows Xp pro host, I 've installed the VirtualBox 2.2.0 (update of 2.1.4).
I have four guest Os, two Debian Etch and One Lenny. The lenny one is just to see the not so new version of Debian.
One of the Etch, lets name it guestClone came from an image of a physical machine (I must have do some trick to install it on a virtual disk smaller but it work). And it's on this one that I try to forward ssh service.
I try to putty my guestClone from my host or another machine on same network. none reach the guestClone
On the guestClone, openssh daemon listen to all network.
I have setting the forward port with VBoxmanage for my guestClone (I used the name of the guest, UUId complain so I hope its ok and not set on snapshot) like this, extrac of virtual xml config :
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/GuestPort" value="22"/>
Pcnet is the correct network card, guestssh a arbritary name only used in this place and 2222 is not used on windows.
I 've tried putty with this parametre
localhost:2222
127.0.0.1:2222
10.0.2.2:2222
10.0.2.15:2222(which the ip of the guest)
and the ip of the host too.
No network connection, and with the private ip 10.0.2.x, paquet are sent to my gateway.
Host do not firewall on. I have tested without the antivirus too. Still don't work.
Putty work because I connect to my other machine. Network on the guest work because I connect to internet from it.
So why VirtualBox engine don't intercept my query ? What I have done wrong ?
On host, netstat command don't give 2222 in listen state, but I think it's ok if VirtualBox intercept connection rather than listen to network, no ?
I 'll try later other setting for the network's guest like bridge or something but I need to read the doc for that.
Nat seem better for my purpose, only forward needed service and separate network feat my need. So, I wish it could run.
Thanks for you help,
Debian User
On a Windows Xp pro host, I 've installed the VirtualBox 2.2.0 (update of 2.1.4).
I have four guest Os, two Debian Etch and One Lenny. The lenny one is just to see the not so new version of Debian.
One of the Etch, lets name it guestClone came from an image of a physical machine (I must have do some trick to install it on a virtual disk smaller but it work). And it's on this one that I try to forward ssh service.
I try to putty my guestClone from my host or another machine on same network. none reach the guestClone
On the guestClone, openssh daemon listen to all network.
I have setting the forward port with VBoxmanage for my guestClone (I used the name of the guest, UUId complain so I hope its ok and not set on snapshot) like this, extrac of virtual xml config :
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/devices/pcnet/0/Lun#0/Config/guestssh/GuestPort" value="22"/>
Pcnet is the correct network card, guestssh a arbritary name only used in this place and 2222 is not used on windows.
I 've tried putty with this parametre
localhost:2222
127.0.0.1:2222
10.0.2.2:2222
10.0.2.15:2222(which the ip of the guest)
and the ip of the host too.
No network connection, and with the private ip 10.0.2.x, paquet are sent to my gateway.
Host do not firewall on. I have tested without the antivirus too. Still don't work.
Putty work because I connect to my other machine. Network on the guest work because I connect to internet from it.
So why VirtualBox engine don't intercept my query ? What I have done wrong ?
On host, netstat command don't give 2222 in listen state, but I think it's ok if VirtualBox intercept connection rather than listen to network, no ?
I 'll try later other setting for the network's guest like bridge or something but I need to read the doc for that.
Nat seem better for my purpose, only forward needed service and separate network feat my need. So, I wish it could run.
Thanks for you help,
Debian User