Restricted network access for VirtualBox 2.1+/3.0 guests
Posted: 4. Aug 2009, 14:59
Hi all, I am looking for the preferred way to restrict the network access for VirtualBox guests. Although I know that terms like NAT and bridge and iptables are highly relevant google keywords for this one, I am stuck with the following HOWTOs:
- http://www.tolaris.com/2009/03/05/using ... irtualbox/
- http://www.cyberciti.biz/tips/linux-ipt ... affic.html
- http://www.scottro.net/vboxbridge.html
Although these give me some rough idea about setting up a virtual interface and attaching some iptables rules for that, I'm not sure whether they are still up-to-date for that latest VirtualBox version.
In the end, I'd like to set up my guest networks such that it is possible to browse the internet, use apt, dropbox, etc to download files *in* the guest systems, upgrade the guest OSs, etc BUT it should be impossible to transfer content from the guest systems to the outside world...
Should I edit /etc/network/interfaces manually or use a tool like brctl? Any practical advice is very welcome.
Best regards,
Pieter
- http://www.tolaris.com/2009/03/05/using ... irtualbox/
- http://www.cyberciti.biz/tips/linux-ipt ... affic.html
- http://www.scottro.net/vboxbridge.html
Although these give me some rough idea about setting up a virtual interface and attaching some iptables rules for that, I'm not sure whether they are still up-to-date for that latest VirtualBox version.
In the end, I'd like to set up my guest networks such that it is possible to browse the internet, use apt, dropbox, etc to download files *in* the guest systems, upgrade the guest OSs, etc BUT it should be impossible to transfer content from the guest systems to the outside world...
Should I edit /etc/network/interfaces manually or use a tool like brctl? Any practical advice is very welcome.
Best regards,
Pieter