port forwarding not working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
market100
Posts: 5
Joined: 3. Jan 2009, 20:59

port forwarding not working

Post by market100 »

Hi,

I use xp on host with ppp adapter (mobile) for internet access, and ubuntu 9.10 as guest and vb 2.1, setted up a NAT dhcp connection i'd like to do port forwarding but it's not working.

VBoxManage setextradata "ubuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/Protocol" TCP
VBoxManage setextradata "ubuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/GuestPort" 80
VBoxManage setextradata "ubuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/HostPort" 80

Here's an example i tested with other ports as well eg ssh,ftp.

The netstat -an commands prints well that the configured ports are listening.
So on guest no firewall used, by the host tested with fw turned off.

There isn't any error message by the vb.log, checked some log on xp , ubuntu and still didn't find solution or ideas searching on forums.

Thanks,
MArket
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Hi you should search the Bugtrack system and you will see that this is a known error. Either downgrade to 2.0.6 or use Host IF until 2.1.2 is released.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
market100
Posts: 5
Joined: 3. Jan 2009, 20:59

Post by market100 »

Thanks, using 2.0.6 working good.
Post Reply