• 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 18.7k 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
    last edited by Jun 17, 2022, 2:46 AM

    I'm confused how to connect it

    1 Reply Last reply Reply Quote 0
    • S stephenw10 moved this topic from Routing and Multi WAN on Jun 20, 2022, 1:49 PM
    • S
      stephenw10 Netgate Administrator
      last edited by Jun 20, 2022, 1:59 PM

      You only need to make sure the client VM Network Adapter and the pfSense VM LAN Network Adapter are on the same virtual network.

      Steve

      E 4 Replies Last reply Jun 20, 2022, 2:50 PM Reply Quote 0
      • E
        ezvink @stephenw10
        last edited by Jun 20, 2022, 2:50 PM

        @stephenw10
        I've done it, but I'm still pfsense and the client can't connect

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

          @stephenw10

          can you give an example? I'm confused sir. because the pfsense and the client that I made are always not connected
          or you can just see an example of the network

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

            @stephenw10
            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.
            client server can't connect with pfsense I don't know what to do sir

            P 1 Reply Last reply Jun 28, 2022, 9:46 PM Reply Quote 0
            • E
              ezvink @stephenw10
              last edited by Jun 20, 2022, 3:02 PM

              @stephenw10
              this is the network settings for the client server
              52030e5b-96be-4573-a809-03b2887347d7-image.png
              1f0a5bf7-a121-49cd-9197-41deda112388-image.png

              and this is the network settings for pfsense
              51e7b7fc-6e43-4a55-812f-a3662ba49c8d-image.png
              190cea08-4d2d-47ad-90bd-259ebaf98887-image.png
              0ab9259e-6db2-4145-a1ed-49c5ccc41f71-image.png

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Jun 20, 2022, 8:33 PM

                So I would expect the pfSense 'Adapter 3' to be the LAN there. The Host Only adapter, 2, might be a management interface.
                How exactly are you trying to connect? How does it fail?
                Are you using pfSense for DHCP?

                Steve

                E 1 Reply Last reply Jun 21, 2022, 10:17 AM Reply Quote 0
                • E
                  ezvink @stephenw10
                  last edited by Jun 21, 2022, 10:17 AM

                  @stephenw10
                  I want this client server and pfsense to be connected so that I can do security on the client server network.
                  failed what I mean is that I tried to test ping the client server ip but did not connect and vice versa.
                  ip pfsense for DHCP WAN network, and ip for LAN I use static.
                  90357863-7295-4133-9054-b44aaafb97e9-image.png

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

                    Your host-only adapter is the LAN?

                    Is the host here the client you are trying to ping from?

                    What exactly are you trying to ping?

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

                      @stephenw10
                      Yes, my host-only is LAN, and what I ping is the IP of the client.

                      after I tried to change the network interface to a bridge in both Snort and the client it worked. but what works is only ping from snort to client, ping from client to snort can't.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Jun 22, 2022, 10:20 PM

                        You are trying to run Snort in pfSense between client and a server, yes?

                        But where is the client and where is the server? They are in different subnets? Does pfSense have an interface in those subnet?

                        LAN as host-only means either the server of client must running on the VBox host. But if it also has other interfaces that traffic might not go through pfSense.

                        Steve

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

                          @stephenw10
                          so the vm Client network interface must be host-only? won't it collide? I have set host-only with static ip

                          if i change static ip to dhcp web gui pfsense it won't run sir, i don't know why it won't work if my host-only LAN is setting dhcp.
                          do you have a way to get the pfsense web gui to run without me setting the host-only to a static IP?

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