VirtualBox as "Internal" Router/Firewall?

Discussion in 'Linux Networking' started by Videodrome, Dec 29, 2013.

  1. Videodrome

    Videodrome Active Member

    Messages:
    159
    Likes Received:
    63
    Trophy Points:
    28
    I'm researching this as a security experiment for a college related project. I would like to have VirtualBox running a system such as Pfsense, IPcop, OpenBSD, or some other good OS dedicated to security as a kind Super Firewall. I figure this should run in Bridged so the computer could work on a main network.


    The second half of this I'm not quite sure how to do. I would want the Host to turn off the direct connection to the NIC card and instead connect to the Virtual Machine Firewall. This way the VM would be a big security buffer between the Host and the outside network. If it was hacked, than maybe the VM would be taken out which would cause the connection to the Host to be lost. Also, if the VM was compromised, it could be restored with a Snapshot.
    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,150
    Likes Received:
    979
    Trophy Points:
    113
    Are you saying you want a virtual machine to be the firewall for the physical host? I never thought of doing that. That is an interesting idea. Unfortunately, I do not know how to set up such a system. Good luck!
    Haider92 likes this.
  3. Videodrome

    Videodrome Active Member

    Messages:
    159
    Likes Received:
    63
    Trophy Points:
    28
    Yeah that's the idea. The Host would connect to the Virtual Router which would be bridged to the real NIC.

    I think there is a way to create a Loopback Adapter, and I've been able to connect VirtualBox to this interface, but it's not quite working or I'm missing a step. I'm able to install Pfsense, but I can't get to the Web GUI console.
    Last edited: Dec 29, 2013
  4. Glenmore Vinoya

    Glenmore Vinoya New Member

    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    1
    Google this: protect-your-windows-laptop-with-pfsense-and-virtualbox-part-1-preamble
    DevynCJohnson likes this.
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,150
    Likes Received:
    979
    Trophy Points:
    113
    Haider92 likes this.

Share This Page