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

    DMZ for VMs with VM pfSense

    Scheduled Pinned Locked Moved Virtualization
    32 Posts 5 Posters 5.6k 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.
    • V
      viragomann
      last edited by viragomann

      Your rule allows TCP only! Ping needs ICMP.

      L 1 Reply Last reply Reply Quote 0
      • L
        luckyzor @viragomann
        last edited by

        @viragomann said in DMZ for VMs with VM pfSense:

        Your rule allows TCP only! Ping needs ICMP.

        0_1541663321652_589b3071-c434-4d90-86dd-0f11bb31fc67-image.png

        Still the same.

        @Grimson I will read what you send me and try to understand this.

        I'm facing a problem more "urgent" and I hope do be guide on how to troubleshoot this so I can try to fix it.
        everything works (not the DMZ, but that is not urgent) as expected with my host and other VMs in the LAN side.
        For the first time I plugged-in a switch in the LAN physical interface and my desktop to the switch.
        Unfortunately, I can't get IP from the DHCP, tried to put a ip manually and nothing.
        I don't know where to start to check where is the problem.

        I really need some help for this. Hope you can help me. Thanks in advance

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          @luckyzor said in DMZ for VMs with VM pfSense:

          Unfortunately, I can't get IP from the DHCP

          Then you have a layer 2 problem.. Or you did not enable dhcp on that interface..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          L 1 Reply Last reply Reply Quote 0
          • L
            luckyzor @johnpoz
            last edited by

            @johnpoz said in DMZ for VMs with VM pfSense:

            @luckyzor said in DMZ for VMs with VM pfSense:

            Unfortunately, I can't get IP from the DHCP

            Then you have a layer 2 problem.. Or you did not enable dhcp on that interface..

            I found the problem. I don't know why but my configuration file for the 2nd NIC disappeared.
            I created a new one. restart network solved.

            Now I'm back to the DMZ zone:
            I create the isolate VN as @viragomann said.
            When add this interface as OPT in pfSense with no rules, I have access to LAN net.
            I started to go to rules -> DMZ -> Create Rule.
            Created a rule to block everything. surprise, I still have access from LAN net to DMZ and vice-versa. is it normal?

            Thanks for your help

            1 Reply Last reply Reply Quote 0
            • V
              viragomann
              last edited by

              No, an isolated network has no connection to anywhere as long as there is no device connected to it which passes the traffic.

              If you can't find the leak use traeceroute to investigate which node let the packets pass to LAN.

              L 1 Reply Last reply Reply Quote 0
              • L
                luckyzor @viragomann
                last edited by

                @viragomann said in DMZ for VMs with VM pfSense:

                No, an isolated network has no connection to anywhere as long as there is no device connected to it which passes the traffic.

                If you can't find the leak use traeceroute to investigate which node let the packets pass to LAN.

                @viragomann I created the vDMZ (isolated / no DHCP / ip 192.168.2.0/24)

                Attached this network to the VM-http and the VM-pfSense.

                Created the DMZ interface with the vDMZ.

                Until here is like that I need to do in KVM?

                1 Reply Last reply Reply Quote 0
                • V
                  viragomann
                  last edited by

                  The vDMZ must also have no static routes activated. Apart from that, it should be fine.

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    luckyzor @viragomann
                    last edited by

                    @viragomann said in DMZ for VMs with VM pfSense:

                    The vDMZ must also have no static routes activated. Apart from that, it should be fine.

                    I've just added the vDMZ to the VM-http and I can ping the host and the host can ping the VM. how can I block this?

                    1 Reply Last reply Reply Quote 0
                    • V
                      viragomann
                      last edited by

                      Can you also ping the host if you disconnect the pfSense from vDMZ in VMM?

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        luckyzor @viragomann
                        last edited by

                        @viragomann said in DMZ for VMs with VM pfSense:

                        Can you also ping the host if you disconnect the pfSense from vDMZ in VMM?

                        Yes. the vDMZ is not added to the VM-pfSense.
                        So the problem is in the Host machine I guess, but don't know what to do.

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          luckyzor @luckyzor
                          last edited by

                          @luckyzor said in DMZ for VMs with VM pfSense:

                          @viragomann said in DMZ for VMs with VM pfSense:

                          Can you also ping the host if you disconnect the pfSense from vDMZ in VMM?

                          Yes. the vDMZ is not added to the VM-pfSense.
                          So the problem is in the Host machine I guess, but don't know what to do.

                          I found this route in the Host :
                          192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

                          I deleted and now ping doens't work anymore. Is this the solution? thanks for the help

                          1 Reply Last reply Reply Quote 0
                          • V
                            viragomann
                            last edited by

                            That route should have no effect, since there is no router specified. It only defines the network on vibr0 (vDMZ?).

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              luckyzor @viragomann
                              last edited by

                              @viragomann said in DMZ for VMs with VM pfSense:

                              That route should have no effect, since there is no router specified. It only defines the network on vibr0 (vDMZ?).

                              Yes vibr0 is the vDMZ, apparently this route is automatically created when creating the vDMZ with virt-manager.

                              After deleting this rule. everything works perfectly.

                              One last question about rules in pfSense:
                              Is this a good way to configure the rules?
                              0_1541685047279_232516f5-d609-42d2-9e75-065bff1d234a-image.png

                              thanks a lot for your help

                              1 Reply Last reply Reply Quote 0
                              • V
                                viragomann
                                last edited by

                                If you enter a network when creating a virtual isolated network in VMM, the host gets automatically the first IP out of it. So if you want it to isolate the vNet also from the host, don't set a network.

                                I use to add an alias included all RFC1918 networks to block devices from any internal access.
                                Consider that you will need an additional pass rule to allow access to pfSense itself if you use it as DNS server for the DMZ.

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