pfSense router under vbox, more control over NICs?
Posted: 2. Apr 2009, 03:08
I have pfSense installed under Virtualbox on a Centos 5 box. The box has 3 NICS.
eth0 = Connected to network switch and set as 192.168.1.100. (this will let me access the CentOS physical box even if pfSense is down)
eth1 = Connected directly to cable modem, is 'WAN' in pfSense. (Physically set to active and to DHCP for now, this is what I want to change.)
eth2 = Connected to network switch, is 'LAN' in pfSense. (Physically set as active and to 10.0.0.1, pfSense changes this to 192.168.1.1 once booted)
Everything is working, except I have to let eth1 get an address on boot, and then I set the "WAN" interface in pfSense to to NAT in virtualbox (which pfSense uses to get a 10.x.x.x address via DHCP).
This gives the host OS (CentOS) direct access to the internet, and bypasses pfSense for the host machine. Leaving my CentOS host machine bare to the internet.
Is there a way to avoid this in virtualbox? Any way to give physical control of a physical NIC to virtualbox?

eth0 = Connected to network switch and set as 192.168.1.100. (this will let me access the CentOS physical box even if pfSense is down)
eth1 = Connected directly to cable modem, is 'WAN' in pfSense. (Physically set to active and to DHCP for now, this is what I want to change.)
eth2 = Connected to network switch, is 'LAN' in pfSense. (Physically set as active and to 10.0.0.1, pfSense changes this to 192.168.1.1 once booted)
Everything is working, except I have to let eth1 get an address on boot, and then I set the "WAN" interface in pfSense to to NAT in virtualbox (which pfSense uses to get a 10.x.x.x address via DHCP).
This gives the host OS (CentOS) direct access to the internet, and bypasses pfSense for the host machine. Leaving my CentOS host machine bare to the internet.
Is there a way to avoid this in virtualbox? Any way to give physical control of a physical NIC to virtualbox?