• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 21.3k Views 3 Watching
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 Offline
    ezvink @ezvink
    last edited by Jun 27, 2022, 12:12 AM

    @ezvink
    if i use network settings like this one i can't access the web gui from pfsense sir.
    the host-only interface must be on adapter 2 and the internal network must be on adapter 3 @stephenw10

    P 1 Reply Last reply Jun 27, 2022, 1:59 AM Reply Quote 0
    • P Offline
      Patch @ezvink
      last edited by Patch Jun 27, 2022, 2:04 AM Jun 27, 2022, 1:59 AM

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

      i can't access the web gui from pfsense

      pfsense should be accessed from a LAN.
      The default settings with anti- lockout protection allows access from the default / fist LAN. For other internal LANs you need to explicitly add a firewall rule to allow GUI access to pfsense (port 443 from that lan to pfsense).

      If you need WAN access to pfsense set up a secure link (VPN) first then use that.

      See https://docs.netgate.com/pfsense/en/latest/config/advanced-admin.html

      E 1 Reply Last reply Jun 27, 2022, 2:39 AM Reply Quote 0
      • E Offline
        ezvink @Patch
        last edited by Jun 27, 2022, 2:39 AM

        @patch
        so I have to use a vpn so that the client can connect to pfsense? is that so sir?

        P 1 Reply Last reply Jun 27, 2022, 3:23 AM Reply Quote 0
        • P Offline
          Patch @ezvink
          last edited by Patch Jun 27, 2022, 12:29 PM Jun 27, 2022, 3:23 AM

          @ezvink
          Exposing pfsense GUI to the internet is a bad idea. If you need WAN access to pfsense GUI do it via a secure means such as VPN to the LAN side then use that.

          To access the GUI from an interface other than the default LAN you need to add a firewall rule to allow such access.

          E 1 Reply Last reply Jun 27, 2022, 3:27 AM Reply Quote 0
          • E Offline
            ezvink @Patch
            last edited by Jun 27, 2022, 3:27 AM

            @patch
            means I have to add a firewall rule on the LAN so that I can secure the client network in pfsense?

            1 Reply Last reply Reply Quote 0
            • S Online
              stephenw10 Netgate Administrator
              last edited by Jun 27, 2022, 11:47 AM

              This is just a test setup so I would simply add a firewall rule on WAN to allow access to the webgui from the local WAN subnet.

              I expect to see three VMs there and only pfSense VM to have two Network adapters.
              But you appear to have 2 VMs only and 'lubuntu' has two Network Adapters. Is that the server or attacker?

              Steve

              E 1 Reply Last reply Jun 27, 2022, 2:06 PM Reply Quote 0
              • E Offline
                ezvink @stephenw10
                last edited by Jun 27, 2022, 2:06 PM

                @stephenw10
                I was wrong sir, I will only add 1 adapter in the lubuntu VM

                1 Reply Last reply Reply Quote 0
                • S Online
                  stephenw10 Netgate Administrator
                  last edited by Jun 27, 2022, 2:41 PM

                  And is that 'Lubuntu' VM the server or the attacker?

                  Where is the other host?

                  E 1 Reply Last reply Jun 27, 2022, 2:59 PM Reply Quote 0
                  • E Offline
                    ezvink @stephenw10
                    last edited by Jun 27, 2022, 2:59 PM

                    @stephenw10
                    VM lubuntu as server sir
                    my initial goal is for this lubuntu VM to be connected to pfsense first, sir so that i can secure the server using snort/suricata in pfsense

                    1 Reply Last reply Reply Quote 0
                    • S Online
                      stephenw10 Netgate Administrator
                      last edited by Jun 27, 2022, 3:13 PM

                      OK, so the attacker is somewhere external? Another host on your local network?

                      That should be fine. The attacker in the diagram I drew is also a VM in VBox but connected via the bridged interface appears like any other host on the local network.

                      Steve

                      E 2 Replies Last reply Jun 27, 2022, 3:23 PM Reply Quote 0
                      • E Offline
                        ezvink @stephenw10
                        last edited by Jun 27, 2022, 3:23 PM

                        @stephenw10
                        I followed the topology you made, sir, but the client and pfsense can't connect

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          ezvink @stephenw10
                          last edited by Jun 27, 2022, 3:25 PM

                          @stephenw10
                          I'm confused there, why the client and pfsense can't connect, I'm confused there.
                          what i want is i want client and pfsense to connect so sir.

                          how to get client and pfsense connected?

                          1 Reply Last reply Reply Quote 0
                          • S Online
                            stephenw10 Netgate Administrator
                            last edited by Jun 27, 2022, 3:53 PM

                            By client you mean the 'lubuntu' VM?

                            That now has just one NIC and it's setup as internal network?

                            And the pfSense VM only has two NICs and the LAN NIC is configured as internal network also?

                            E 1 Reply Last reply Jun 27, 2022, 3:58 PM Reply Quote 0
                            • E Offline
                              ezvink @stephenw10
                              last edited by Jun 27, 2022, 3:58 PM

                              @stephenw10
                              Yes, sir, it's an Lubuntu VM.

                              yes, that's right, the lubuntu VM I set up only has 1 adapter

                              for VM pfsense has 3, 1 Bridge adapter, 2 Host-Only adapters, 3 Internal Network adapters

                              1 Reply Last reply Reply Quote 0
                              • S Online
                                stephenw10 Netgate Administrator
                                last edited by Jun 27, 2022, 6:01 PM

                                And which one is LAN? The LAN NIC must be the Internal Network adapter.

                                I would just remove the host only adapter. I can see no reason to include it at this point.

                                E 1 Reply Last reply Jun 28, 2022, 3:52 AM Reply Quote 0
                                • E Offline
                                  ezvink @stephenw10
                                  last edited by Jun 28, 2022, 3:52 AM

                                  @stephenw10
                                  which LAN adapter sir? I didn't set the LAN adapter but in pfsense it's already there automatically
                                  WhatsApp Image 2022-06-28 at 10.51.23 AM.jpeg

                                  1 Reply Last reply Reply Quote 0
                                  • S Online
                                    stephenw10 Netgate Administrator
                                    last edited by Jun 28, 2022, 11:43 AM

                                    You have 3 interfaces in the pfSense VM. Are they all assigned?

                                    I would expect to see WAN, LAN and OPT1 but only LAN will allow connections to the webgui by default.

                                    That is probably adapter 2 which you currently have set as host only.

                                    If your Lubuntu VM is connected via the Internal Network to the pfSense adapter 3 (OPT1) then you will need to add firewall rules on OPT1 to allow it to connect.

                                    Steve

                                    E 1 Reply Last reply Jun 28, 2022, 1:17 PM Reply Quote 0
                                    • E Offline
                                      ezvink @stephenw10
                                      last edited by Jun 28, 2022, 1:17 PM

                                      @stephenw10
                                      Yes, that's right, sir, because if adapter 2 isn't loaded with a host-only web gui, it won't work.

                                      What are the firewall rules, sir?

                                      S 1 Reply Last reply Jun 28, 2022, 6:52 PM Reply Quote 0
                                      • S Online
                                        stephenw10 Netgate Administrator @ezvink
                                        last edited by Jun 28, 2022, 6:52 PM

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

                                        if adapter 2 isn't loaded with a host-only web gui, it won't work.

                                        Won't work how?

                                        Host-Only adapters only allow access from the VBox host. It won't allow access from the Lubuntu VM.

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

                                        What are the firewall rules

                                        I would start off by adding a rule on WAN allowing access from the WAN subnet:
                                        https://docs.netgate.com/pfsense/en/latest/recipes/remote-firewall-administration.html#restricted-firewall-access

                                        Steve

                                        E 2 Replies Last reply Jun 29, 2022, 1:50 AM Reply Quote 0
                                        • P Offline
                                          Patch @ezvink
                                          last edited by Jun 28, 2022, 9:46 PM

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

                                          The project that I will make is about IDS Suricata and Snort.
                                          I need 1 client as server 1 client for attacker then pfsense as firewall.

                                          What is the context of this project?
                                          Why are you doing it?
                                          Who is funding it?
                                          When completed what will it be used for?

                                          E 1 Reply Last reply Jun 29, 2022, 2:00 AM Reply Quote 1
                                          45 out of 99
                                          • First post
                                            45/99
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received