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

    virtualbox pfsense

    Virtualization
    2
    6
    1.1k
    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.
    • L
      lmh1
      last edited by

      Hi how did you set up pfsense in virtualbox?
      Idid not get 192.168.2.1/24 to works outside virtualbox.
      So what did i need to set up to get its works?

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

        192.168.2.1/24 means what??? That is not a network, that is a host address.. So you put that on your lan? Your wan? What?

        I would suggest you read through the virtualization doc for the other hypervisors.. Its all pretty much the same thing..

        https://docs.netgate.com/pfsense/en/latest/virtualization/index.html

        You connect your pfsense vm to a wan network, and a lan network normally via "vswitches" in the VM software.

        If I had to guess I would say you are using a natting network in VB vs a bridged network to your real world?

        Are you trying to create a vlan with this 192.168.2.0/24 network, or did you give pfsense another virtual nic? Did you connect that to a different vswitch? Or are you trying to change the default lan of pfsense from 192.168.1 to 192.168.2?

        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 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 1
        • L
          lmh1
          last edited by lmh1

          192.168.1.1 is used before with my asus router.

          But that documents did not show Virtualbox or VMware player that is the only software is installed.
          Yes i try to use bridge networks, but its 3 card Virtual host only ethernet adapter.

          Issue here, is to understand port and vlan tag, because look PFsense use vlan istead of port.
          That make this hard to get to works.

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

            If your current local network is 192.168.1/24 (pfsense wan), then yeah your going to want to change pfsense lan network.. So change it.. Or your local network to something other than pfsense default lan network.

            Yes you could change pfsense lan address to be 192.168.2.1/24 - now any device connected to this lan network you created will be on the 192.168.2/24 network and use .1 as its gateway and dns.. Seems like your wanting to use a host only network - which is fine for the lan of pfsense, that you put other vms on..

            Out of the box pfsense will try and resolve for dns - you need to make sure your physical local network, and or internet allow for that - or you will need to switch pfsense to forwarding mode for dns.

            Yup that will work right out of the box.. Validate your vm on this lan (host only network) get their IPs from pfsense dhcpd and away you go.

            I understand that the guides do not list VB - but the concepts are ALL THE SAME!!! doesn't matter what hypervisor you use.

            On how to get vlans to work with your hypervisor networking -- your going to want to look to their docs or their forums for help with that... To pfsense that is just all agnostic.. Pfsense is tagging on vlans or not on native..

            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 24.11 | Lab VMs 2.7.2, 24.11

            L 1 Reply Last reply Reply Quote 0
            • L
              lmh1 @johnpoz
              last edited by lmh1

              @johnpoz But how did you select port : http://192.168.2.2:2/

              Its a way to select card you want to use? Its that a way if i want to select from card, to other?

              I did not have much expenence to set up VPN and remote desktop, and edit direction of card, without to lost connection with VPN.

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

                @lmh1 said in virtualbox pfsense:

                http://192.168.2.2:2/

                What?? Select port 2??? Why and the hell would you think you need to select port 2? If your trying to get pfsense gui to listen on port 2, that is a HORRIBLE idea... I would suggest you just leave that at default.. Or use a more common port for web gui.. Not port 2

                As to what card you use in VB - I suggest you look to their docs.. This is not a support forum for virtualbox..
                https://www.virtualbox.org/wiki/Documentation

                I think your list of stuff you don't have much experience with would fill a library ;)

                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 24.11 | Lab VMs 2.7.2, 24.11

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