NAT port forwarding, local only
-
diolu
- Posts: 5
- Joined: 7. Jul 2011, 12:13
- Primary OS: Linux other
- VBox Version: OSE other
- Guest OSses: WindowsXP
NAT port forwarding, local only
I have setup Virtualbox on Windows XP host (linux guest). I use the NAT port forwarding (natpf option of vboxmanage) in order to connect to the Virtualbox machine from within the host (I ssh in it, I run a X server on the host, etc...). What I would like is that only local connection from the host are forwarded; I would like that connection from the outside world are blocked. Is there a possibility to manage that from within virtualbox? The only solution I have found now is to configure the firewall on the host (windows XP) in order to prevent any connection from the outside to connect to Virtualbox.
-
abcuser
- Volunteer
- Posts: 595
- Joined: 10. May 2007, 20:03
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows XP
Re: NAT port forwarding, local only
That is exactly what I would do. Don't think this is VirtualBox problem. NAT forwarding enables communication between host and guest. It does not control connection from outer network to your host, this is responsibility of firewall. If you have problems configuring Windows firewall, then download some free firewall instead and configure it.diolu wrote: configure the firewall on the host (windows XP) in order to prevent any connection from the outside to connect to Virtualbox.
-
Leak
- Posts: 242
- Joined: 31. Mar 2009, 13:00
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Debian Testing, Windows XP, Windows Server 2003/2008 R2
Re: NAT port forwarding, local only
As with everything else - use 127.0.0.1 as the host IP when forwarding? Works for me.diolu wrote:What I would like is that only local connection from the host are forwarded; I would like that connection from the outside world are blocked. Is there a possibility to manage that from within virtualbox?
-
mschwartz
- Posts: 92
- Joined: 18. Oct 2010, 21:01
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: ubuntu
Re: NAT port forwarding, local only
See the link in my signature.