Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 11-25-2013, 09:27 PM   #1
LQ Newbie
Registered: Jun 2013
Distribution: linux mint debian
Posts: 24

Rep: Reputation: Disabled
virtualbox portable firewall/proxy

Using virtualbox under Windows is there a way to configure a firewall/proxy Linux distro such as CentOS so that all Windows web traffic first goes through the firewall and then out to the network using just a single wireless NIC?
In other word, I'd like to use my portable on public wifi and carry the proxy with me in a virtual machine. This way my laptop can enjoy the benefits of a web proxy and firewall anywhere. I suspect the solution is to have two NICs in the VM one for bridged so that CentOS can communicate directly with the wireless NIC and one for NAT so that the Windows host can communicate into the VM then through the VM to the Internet.
I appreciate any thoughts.
Old 11-26-2013, 05:28 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,465

Rep: Reputation: Disabled
Rather than using one NAT NIC and one Bridged Adapter NIC, you could use one NAT NIC and one Host-Only Adapter NIC. You could use the first (NAT) to access the Internet, while the other would end up in the internal VirtualBox network, and would be reachable via the VirtualBox Host-Only Adapter in Windows (which defaults to

The advantage with this approach is that the VM does not depend on any external service. If you use a bridged adapter, the VM will need to obtain an IP address via DHCP, and you won't be able to tell in advance what that IP address will be.
1 members found this post helpful.
Old 11-26-2013, 09:08 PM   #3
LQ Newbie
Registered: Jun 2013
Distribution: linux mint debian
Posts: 24

Original Poster
Rep: Reputation: Disabled
Excellent. Your solution is simpler and equally effective. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
firewall and virtualbox qrange Linux - Software 3 09-20-2011 08:54 PM
Endian Firewall in VirtualBox VM unreachable jonaskellens Linux - Networking 1 06-10-2009 07:05 AM
need a portable linux distro to bring on portable usb hard drive... pippo17 Linux - Distributions 3 10-20-2008 06:41 AM
firewall config to allow traffic from/to a VirtualBox bridge marozsas Linux - Networking 3 07-26-2008 05:46 PM
Firewall and Proxy sreedhartp Linux - Security 2 06-16-2006 12:43 PM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration