Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bridged networking in VirtualBox not working on pfSense host

    Scheduled Pinned Locked Moved Virtualization
    11 Posts 5 Posters 10.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ Offline
      jimp Rebel Alliance Developer Netgate
      last edited by

      In VirtualBox, on the firewall's NIC settings, make sure "Promiscuous Mode: Allow All" is set. I seem to recall having issues with vbox bridging on one host until I did that. Though it shouldn't normally be required for standard traffic, some host OS quirks may lead to it being necessary. It is required for CARP to work on virtualbox.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • E Offline
        Ektorus
        last edited by

        Setting the NIC interface option to "Promiscuous Mode: Allow All" didn't make any difference.
        I would assume (without much evidence, though) that it were some sort of internal routing problem. Like sending a request from one interface to itself. But again I could very well be wrong and the problem lies somewhere else.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bryan.paradis
          last edited by

          pFsense on baremetal
          Running Virtual Box
          CentOS is guest
          Guest is using pfsense LAN interface in bridged mode

          Am I understanding correctly?

          Have you tried manually assigning IP addresses?

          Hvae you loaded the vboxnet driver?

          http://www.freebsd.org/doc/handbook/virtualization-host.html

          1 Reply Last reply Reply Quote 0
          • E Offline
            Ektorus
            last edited by

            Yes you are absolutely correct.

            I have tried to manually set the IP address in the CentOS guest and adding the default gateway, but that didn't help either.

            Yes, I have loaded all the required modules:

            # kldstat
            ....
            13    3 0xffffffff8195c000 35b44    vboxdrv.ko
            16    2 0xffffffff81953000 2a00     vboxnetflt.ko
            17    1 0xffffffff81956000 3f90     vboxnetadp.ko
            
            
            1 Reply Last reply Reply Quote 0
            • C Offline
              cdburgess75
              last edited by

              Were you able to get that going?  I am trying something very similar

              1 Reply Last reply Reply Quote 0
              • E Offline
                Ektorus
                last edited by

                Unfortunately I were not able to get it working. So I'm currently waiting for pfSense 2.2 to be released (it is currently in BETA) and hope to get the hypervisor in FreeBSD-10 (which pfSense 2.2 is built upon) to work.

                1 Reply Last reply Reply Quote 0
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  So let me get this right, you installed virtual box on the host pfsense is running bare metal on?  So you installed some freebsd 8.3 virtualbox package on your pfsense box.  And then trying to run another vm in this virtualbox?

                  If you want to run vms on this hardware, why don't you just run a a type 1, say esxi or xenserver or even hyper-v and then run pfsense as vm, and your centos as another vm, etc.

                  I run esxi (free) and pfsense is vm, along with lots of other vms.  Pfsense is the gateway/router/firewall for all the vms along with all the physical boxes on my network.. This pfsense vm also routes traffic between physical and vms on multiple segments.

                  Trying to run pfsense bare on the host and then run some type 2 hypervisor seems like the wrong way to go if you know your going to want to run vms on the host.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 25.07 | Lab VMs 2.8, 25.07

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    Ektorus
                    last edited by

                    Yes that is situation.

                    But you are most likely correct that I should run pfSense as a guest instead of the host system. It just seemed more intuitive to run the main system as the host and just have a few guest systems on top of that.

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ Offline
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      No, if your going to run multiple vms in a production type setup where they are on 24/7 sort of thing.. Then type 1 normally makes more sense.  If your going to need to fire up some play vms now and then then type 2 makes more sense since the host will normally just be doing its main function.

                      If your going to want pfsense and centos running all the time I would look to a type 1 vm setup.  Esxi is free, easy to use and has lots of support for lots of different hardware, etc.  One of the things I love about running pfsense as vm, its easy to take a snapshot before say you update.  Or if you were going to make lot of changes to firewall rules.. Just take a snapshot before, and if something goes haywire you just reboot to the snap.

                      If your running pfsense (freebsd) as the main os and something goes wrong with say a update now what you have to restore baremetal, reinstall pfsense, etc. - while also taking down your other vms, etc.

                      If your pfsense is vm, also gives you freedom to say bring up a 2.2 version.  Bring it up in parallel with your running vm - get it working, and then if you want you can even shut down your original and bring up your 2nd copy with same macs on the interfaces..  So maintain your dhcp from your isp, clients on your lan think its the same box, etc.  Allows you to easy play with a carp setup in pfsense if you want with really only 1 physical box, etc.

                      No I would not suggest pfsense as your host main OS with some type 2 running in that with other vms..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 25.07 | Lab VMs 2.8, 25.07

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        Ektorus
                        last edited by

                        I see, thank you for the explanation. I'll take a look at Esxi.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.