• 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 @stephenw10
    last edited by Jun 23, 2022, 2:56 AM

    @stephenw10
    5887aab0-5ef4-4516-9401-b74b4e1cf59f-image.png
    The topology I use is like this, sir.
    so the client server will connect to snort/suricata, when the attacker attacks snort/suricata it will protect the client server

    so the concept of the topology that I made is like that, which makes me confused about how to make the network interface of the client server secure by snort/suricata

    P 1 Reply Last reply Jun 26, 2022, 2:38 AM Reply Quote 0
    • S Online
      stephenw10 Netgate Administrator
      last edited by Jun 23, 2022, 9:36 AM

      OK, so pfSense is running Snort there? Which interface is which?

      The host-only interface is only accessible from the VBox host. So if you are running that as LAN either the 'client-server' or the attacker must also be running there.

      If I was setting this up I would not use a host-only interface at all.

      Steve

      E 2 Replies Last reply Jun 24, 2022, 1:56 AM Reply Quote 0
      • E Offline
        ezvink @stephenw10
        last edited by Jun 24, 2022, 1:56 AM

        @stephenw10
        yes sir, if i set the vbox host-only network interface to dhcp web gui for pfsense it won't work sir.

        so what kind of network interface do I have to set up, sir, so that I can run the topology concept that I'm using?

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

          @stephenw10
          I'm confused about the network settings, sir, because it always doesn't connect between pfsense and the client-server.

          1 Reply Last reply Reply Quote 0
          • S Online
            stephenw10 Netgate Administrator
            last edited by Jun 24, 2022, 8:48 AM

            It depends where your 'client-server' and attacker hosts are. Are those also VMs in VBox? Is one of them the host itself? There are lots of ways you could set this up.

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

              @stephenw10
              I made all of them on the VM sir

              1 Reply Last reply Reply Quote 0
              • S Online
                stephenw10 Netgate Administrator
                last edited by Jun 25, 2022, 12:06 AM

                OK so what I expect is to have each of those VMs in a separate internal network and pfSense have an interface in each. It will then route between them with Snort.
                So to do that you need to define at least two internal networks in VBox then use internal interface NICs to connect to them.

                E 2 Replies Last reply Jun 26, 2022, 1:43 AM Reply Quote 0
                • E Offline
                  ezvink @stephenw10
                  last edited by Jun 26, 2022, 1:43 AM

                  @stephenw10

                  can you give an example of the VM project, sir? I'm still confused to understand what you explained sir.

                  excuse me sir

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

                    @stephenw10
                    from the screenshot I gave about my VM project, what should be changed sir? if you mind giving an example please tell me sir what to change from my VM project

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Patch @ezvink
                      last edited by Patch Jun 26, 2022, 2:41 AM Jun 26, 2022, 2:38 AM

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

                      The topology I use is like this, sir.

                      Your network topology looks strange to me

                      • Why have you shown the cloud / internet coming directly to the client server?

                      • Typically an attacker is internet based so both normal friendly and hostile internet access both go through the firewall.

                      • Firewall rules and services such as snort / Suricate / pfBlockerNG are then used to separate friend from foe

                      • Externally accessible servers may also be put on a separate (V)LAN to further control access from the relatively expose / at risk computers

                      E 1 Reply Last reply Jun 27, 2022, 12:08 AM Reply Quote 0
                      • S Online
                        stephenw10 Netgate Administrator
                        last edited by Jun 26, 2022, 9:08 PM

                        I expect to see something like this:

                        Screenshot from 2022-06-26 22-08-02.png

                        Steve

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

                          @stephenw10
                          the network settings like this sir?

                          d63b0369-db64-49e6-9d36-a2b66b8c12e3-image.png
                          2774716d-77ab-41e2-b306-46b0e6afe947-image.png
                          6c9204a7-9854-40e7-8b4d-7937c690e6d7-image.png
                          0e6fb8da-9a3c-45a5-8a2f-cb270c322718-image.png
                          221abcdb-9ceb-4998-92f5-df3da51ba395-image.png

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

                            @patch

                            looks like I put it wrong, the internet/cloud should be above the firewall.
                            if so how sir?

                            1 Reply Last reply Reply Quote 0
                            • 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
                                          32 out of 99
                                          • First post
                                            32/99
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received