port forwarding in NAT NETWORK doesn't work

Discussions about using Linux guests in VirtualBox.
Post Reply
Jummy Zhu
Posts: 2
Joined: 7. Nov 2013, 04:54

port forwarding in NAT NETWORK doesn't work

Post by Jummy Zhu »

Dear all,

I'm using virtualbox 4.3.0 r89960 on Windows 7 64bit host, and I plan to intercommunicate between Linux guest hosts, I set the network type as NAT Network, the procedure to set the nat network is as below:

Code: Select all

VBoxManage natnetwork add -t Management -n "10.7.78.0/24" -e
VBoxManage natnetwork modify -t Management -h on
VBoxManage natnetwork start -t Management
VBoxManage natnetwork modify -t Management -p "ssh:tcp:[]:10022:[10.7.78.15]:22"
I enabled the port forwarding, I wish to ssh to the guest linux os 22 port via my host port 10022, but when I try to connect using putty, it shows connection refused. Firewall is not running and sshd service is ok in guest os.

If I changed the network type from NAT network to NAT, then the port forward is working.

Do you have the same situation?

Many thanks.
Jummy
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: port forwarding in NAT NETWORK doesn't work

Post by noteirak »

Try upgrading to 4.3.2 and check if there is any improvement.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Jummy Zhu
Posts: 2
Joined: 7. Nov 2013, 04:54

Re: port forwarding in NAT NETWORK doesn't work

Post by Jummy Zhu »

Aha, :D this new version works fine. Thanks very much!!!

Best Regards,
Jummy
Post Reply