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 19.1k 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
      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
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        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 Reply Quote 0
        • E
          ezvink @stephenw10
          last edited by

          @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?

          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?:

            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 Reply Quote 0
            • P
              Patch @ezvink
              last edited by

              @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 Reply Quote 1
              • E
                ezvink @stephenw10
                last edited by

                @stephenw10
                Yes, the web gui can't be accessed, sir, I don't know why if I change adapter 2 other than the host-only web gui it always can't be accessed.

                which material should i take sir
                17add1c7-a015-4758-aff6-9b6a20da18bf-image.png 41923074-a5b2-45e2-a1fe-1f69f70b357c-image.png

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

                  @patch

                  this is a project for my final project sir.

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

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

                    my final project

                    So it is part of an IT training course?

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

                      @patch
                      Yes, that's right, sir, I took a networking class and took the title.

                      do you want to help me sir? step by step to connect client and pfsens

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

                        @stephenw10

                        which one should i edit sir?
                        a2b0896a-80d5-4da3-a230-718e93e9b1f0-image.png

                        stephenw10S 1 Reply Last reply Reply Quote 0
                        • P
                          Patch @ezvink
                          last edited by

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

                          I took a networking class and took the title.
                          do you want to help me sir

                          To help you be a good network engineer you do not want a step by step guide of how to do your final year project.

                          What books have you read and found useful?
                          What projects have YOU done so far (excluding things you have needed considerable help to do)?

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

                            @ezvink Add a new rule on WAN to allow traffic from the WAN subnet to the WAN address on the webgui port.
                            Anything on the bridged subnet should then be able to access the webgui which is fine in a test setup like this.

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

                              @stephenw10
                              What kind of settings should I have, sir?, I see the module you provided from the netgate site is not the same as the picture I provided
                              e4189bd9-c81f-48ed-a036-03305061e3cb-image.png
                              a5ac76c4-d728-42ff-b18a-aca4466c77fd-image.png
                              b7e552e0-28ba-4321-9c91-ca7da650535e-image.png

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

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

                                Add a new rule on WAN to allow traffic from the WAN subnet to the WAN address on the webgui port.

                                So use:

                                Source: WAN net
                                Destination: WAN address
                                Destination Port: https (assuming your webgui is on the default port)

                                Steve

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

                                  @stephenw10
                                  what next sir? is this correct?
                                  e26d6a24-00a1-4a40-aee3-90f40a1ae011-image.png

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

                                    Yes. That should allow other devices in your local network to login to the pfSense via it's WAN IP. Including the host if needed.

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

                                      @stephenw10
                                      so in lubuntu VM must use adapter 1 bridge sir? is that so sir? then the client can access the pfsense

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

                                        @stephenw10
                                        I always have problems pinging from pfsense to the client it connects but when I try to ping from the client to pfsense it still doesn't connect sir.
                                        even though I've used the rules you gave.

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

                                          No the Lubuntu VM should be connected to the Internal Network adapter and that should already have access to the pfSense GUI as long as the NIC you're using for the pfSense LAN is also an Internal Network adapter.

                                          You removed the 3rd NIC from the pfSense VM right?

                                          E 2 Replies Last reply Reply Quote 0
                                          • P
                                            Patch
                                            last edited by

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

                                            I took a networking class

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

                                            this is a project for my final project

                                            @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.

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

                                            I'm confused how to connect it

                                            Then you need to develop your networking skill if you are ever going to be employed for your network skills.

                                            How all engineering task are done, is you develop ability with the basic building blocks then combine multiple building blocks to achieve more complex tasks.

                                            You were set this project not because anyone cares about the end result, what matters is the skill you develop in doing a Network engineering task. For you to actually have the competence to do your project you need skills in

                                            1. Hypervisor virtual machine configuration
                                            2. How to configure a virtual network within the Hypervisor
                                            3. Firewall installation and network configuration
                                            4. How to configure the basic firewall features within your chosen firewall application
                                            5. Installation of advanced firewall capabilities to support IDS (eg Suricata or Snort)
                                            6. Configuration of the IDS package
                                            7. Designing & building a firewall test station including a simulated attacking computer, a firewall under test, and a defended work station.
                                            8. Testing the effectiveness of the of your Firewall with IDS
                                            9. Understanding and reporting on the limitations of your choosen threat protection approach (eg encrypted messaging).

                                            Your start this engineering task by getting the basic stuff working first. Your questions indicate you have not got a firm understanding of step 2. yet, so do just that and get just that working. After which you should be able to create a VM and have it network reliably with what ever other VM or NIC you choose.

                                            After which you can learn about step 3. Which is best done by reading the manual and experimenting. Asking others to build your project for you deprives you of the learning opportunity and will prevent you from becoming a competent network engineer. If you want a successful career there is no other way.

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