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

    can I connect the client that I created using the vm to the pfsense interface in virtualbox?

    Scheduled Pinned Locked Moved Virtualization
    99 Posts 3 Posters 18.8k 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.
    • E
      ezvink @stephenw10
      last edited by

      @stephenw10
      I've followed what you suggested, but the web gui doesn't even work, sir?
      f8afa7f2-ed24-4160-ac7a-caa066703caf-image.png
      e54d8ce9-255a-48e2-ae04-9cb843046fb7-image.png

      E 1 Reply Last reply Reply Quote 0
      • E
        ezvink @stephenw10
        last edited by

        @stephenw10
        and if i change adapter2 to host-only the web runs sir
        74d47158-dc8a-4be1-8280-fd31a05c51ac-image.png
        71c54d63-207f-4150-aa82-baaf2b8af4e5-image.png

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Looks like you are trying to connect from the host but using the internal subnet IP address. Which I expect to fail!

          With adapter 2 set as internal network the Lubuntu VM should be to access pfSense at 192.168.1.1.

          From the host you should be using the WAN IP, 192.168.18.48. That will work as long as you have added the firewall rule on WAN.

          Steve

          1 Reply Last reply Reply Quote 0
          • E
            ezvink @ezvink
            last edited by

            @ezvink @stephenw10
            So where should I do the test, sir? i have to check the web gui on the lubuntu vm with network settings like this? sorry sir i don't really understand

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              You can connect from either but you have to use the correct IP address.

              The Lubuntu VM is connected to LAN so it can access any IP address in pfSense.

              The VBox host cannot access the internal network so if you are trying to access it from there you need to use the pfSense WAN IP.

              Steve

              E 1 Reply Last reply Reply Quote 0
              • E
                ezvink @stephenw10
                last edited by

                @stephenw10
                a3171845-4dc8-4906-a9d8-66aa5ed67267-image.png
                I'm still confused with the word "host" so please correct me sir.
                so you mean "host" which network sir? LAN IP? because I've tried the network settings you suggested and when I try to run the web gui from google using the WAN IP on my pc it doesn't run.
                but when i restore the network settings to the original adapter 2 is filled with "host-only" and adapter 3 is filled with "internal network" the web gui running on my pc is running sir.

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  By 'host' I mean the computer that is hosting VirtualBox. That's why the 'host only' adapter can only work from there.

                  If you have added the WAN firewall rule as we discussed earlier you should be able to connect to 192.168.18.48 from any other machine in the WAN subnet. And that includes the VBox host as it also had an IP there.

                  You can run it as you have shown above. You will just need to add appropriate firewall rules on OPT to allow the Lubuntu VM to connect out.

                  Steve

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    ezvink @stephenw10
                    last edited by

                    @stephenw10
                    but i'm not calling WAN IP from my PC sir, it's not working to call web gui if I use the network settings you suggest sir.

                    Then how do I configure the OPT?

                    stephenw10S 1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator @ezvink
                      last edited by

                      @ezvink said in can I connect the client that I created using the vm to the pfsense interface in virtualbox?:

                      but i'm not calling WAN IP from my PC

                      Why not? You need to do that to access the pfSense webgui from other devices in the WAN subnet.

                      Get that working first, then look at configuring OPT. I strongly recommend setting the Lubuntu VM as a DHCP client and enabling the DHCP server on OPT.
                      On LAN it's enabled by default which is why I suggested you use that as the internet network but you seem to want to use the host-only NIC as LAN so....

                      Steve

                      E 2 Replies Last reply Reply Quote 0
                      • E
                        ezvink @stephenw10
                        last edited by

                        @stephenw10
                        I don't know sir, I followed the tutorial from my lecturer and he added the IP on the "host-only" network then the web gui could run.
                        if i don't add IP on the "host-only" network and don't use host-only as adapter 2 the web gui won't run.
                        do you have any suggestions so it won't be like this again?

                        1 Reply Last reply Reply Quote 0
                        • E
                          ezvink @stephenw10
                          last edited by

                          @stephenw10
                          https://www.youtube.com/watch?v=bghny1P4uUU

                          I have followed the tutorial from this link, but the weg gui still cannot be accessed, sir, even though the web gui link can be accessed

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            There are many ways you could set this up. If you are following some tutorial/course then do it that way but you must tell us what you are trying to do otherwise we are guessing!

                            That youtube video you linked to is exactly how I would do it and what I was suggesting you do previously.
                            Note that when he connects to the pfSense webgui using the internal address he is doing it from an Ubuntu VM and not the VBox host, which is Windows. Because the Ubuntu VM is on the 'Internal Network' and that is assigned as LAN he is able to connect.

                            Steve

                            E 1 Reply Last reply Reply Quote 0
                            • E
                              ezvink @stephenw10
                              last edited by

                              @stephenw10

                              I followed the video link that I gave, sir, and the result is still not running the web gui.
                              in the lubuntu VM, what should the network settings be like sir? I tried DHCP but it didn't work, I tried only the local link, it doesn't work, sir
                              8d0f2094-f7b3-48c3-b81b-2528113161ef-image.png

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                I strongly recommend having everything using DHCP to avoid configuration issues. At least initially.
                                Do you still have three NICs on the pfSense VM? Are you sure the one you have assigned as LAN is the adapter connected to 'Internal Network'? Check the MAC addresses to confirm.

                                Steve

                                E 1 Reply Last reply Reply Quote 0
                                • E
                                  ezvink @stephenw10
                                  last edited by

                                  @stephenw10
                                  I have all settings DHCP sir, but still the web gui can't run on the lubuntu VM even on the host it can't

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Is it pulling a DHCP lease?

                                    Does the pfSense LAN MAC address show it's using the correct NIC? The one configured as Internal Network.

                                    E 2 Replies Last reply Reply Quote 0
                                    • E
                                      ezvink @stephenw10
                                      last edited by

                                      @stephenw10
                                      Sorry sir, before I answer your question. I want to ask, does the WI-FI network have an effect on running this pfsense? because what I see on youtube most people use ethernet instead of wi-fi

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        It could affect connectivity from other hosts if the wifi network you're on has client isolation enabled.
                                        It would not affect connection to pfSense from internal VMs.

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          ezvink @stephenw10
                                          last edited by

                                          @stephenw10
                                          Sorry sir, what do you mean by lease?

                                          it should be correct sir, because I set it to default.
                                          How to check MAC address in pfsense, sir? because I can't enter the web gui

                                          stephenw10S 1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator @ezvink
                                            last edited by

                                            @ezvink said in can I connect the client that I created using the vm to the pfsense interface in virtualbox?:

                                            @stephenw10
                                            Sorry sir, what do you mean by lease?

                                            The DHCP server leases IP addresses to clients. The Lubuntu VM should get an IP address from pfSense if the interfaces are configured correctly.

                                            How to check MAC address in pfsense

                                            At the command line in the console run: ifconfig -a
                                            That will show you the MAC address of each interface along with the IP address and description.
                                            Compare that with the MACs in VBox to be be sure they are configured in the correct order.

                                            Steve

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