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

      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.