Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Checking my DMZ for any security issues.

    Scheduled Pinned Locked Moved Firewalling
    7 Posts 2 Posters 1.2k 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.
    • T Offline
      tmacka88
      last edited by

      Hi,

      I have finally setup my DMZ where I can access the internet, however, I am not sure it entirely secure yet. Any help would be great.

      LAN 192.168.1.1/24
      DMZ 192.168.2.1/24

      Currently I can ping DMZ from LAN and also I can still ping LAN from DMZ (I obviously need to fix this.)

      I am using NAT outbound rule to gain internet access on my DMZ is this ok? I have seen a tutorial that made a virtual ip linked to dmz and used NAT 1:1.

      Rules as per attached images.

      Basically, I just want a secure DMZ where I can access the DMZ from LAN BUT NOT access the LAN from DMZ.

      Thanks

      Any advice would be great.

      ![Screenshot 2015-02-20 14.08.05.png](/public/imported_attachments/1/Screenshot 2015-02-20 14.08.05.png)
      ![Screenshot 2015-02-20 14.03.43.png](/public/imported_attachments/1/Screenshot 2015-02-20 14.03.43.png)
      ![Screenshot 2015-02-20 14.04.23.png](/public/imported_attachments/1/Screenshot 2015-02-20 14.04.23.png)
      ![Screenshot 2015-02-20 14.08.05.png_thumb](/public/imported_attachments/1/Screenshot 2015-02-20 14.08.05.png_thumb)
      ![Screenshot 2015-02-20 14.03.43.png_thumb](/public/imported_attachments/1/Screenshot 2015-02-20 14.03.43.png_thumb)
      ![Screenshot 2015-02-20 14.04.23.png_thumb](/public/imported_attachments/1/Screenshot 2015-02-20 14.04.23.png_thumb)

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        You are only blocking TCP traffic from DMZ to LAN.

        I would also add a rule blocking IPv4 any to This Firewall (self) below some pass rules for anything on pfSense that you want DMZ to be able to access (like DNS, perhaps)

        You probably want to limit DNS to specific DNS servers.  You can make an alias like dmz_dns_servers to make this easier to maintain and use it as the destination for your rule.

        General rule: pass specifically what you want then block all.

        And using reject instead of block can make connections fail immediately instead of having to wait for them to time out.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • T Offline
          tmacka88
          last edited by

          @Derelict:

          You are only blocking TCP traffic from DMZ to LAN.

          I would also add a rule blocking IPv4 any to This Firewall (self) below some pass rules for anything on pfSense that you want DMZ to be able to access (like DNS, perhaps)

          Done all the things you said

          @Derelict:

          You probably want to limit DNS to specific DNS servers.  You can make an alias like dmz_dns_servers to make this easier to maintain and use it as the destination for your rule.

          So with this make a Host alias with both my DNS IPs and then set the destination in the DNS rule to the alias?

          Cheers

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            That's what I would do.  Depends on how much you want to limit what the DMZ hosts can do.  Seems pretty harmless to limit them to known DHCP DNS Servers, though I was assuming you were telling them to use servers maybe on LAN or pfSense itself.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • T Offline
              tmacka88
              last edited by

              @Derelict:

              That's what I would do.  Depends on how much you want to limit what the DMZ hosts can do.  Seems pretty harmless to limit them to known DHCP Servers, though I was assuming you were telling them to use servers maybe on LAN or pfSense itself.

              Did what you recommended. Does that also mean I have to point to my DNS on every machine on my DMZ? cause my machine on the DMZ would not work until I did (though I think that was before I did this step)?

              Is there anything else I can do to lock down my DMZ even more without restricting SSH, HTTP, HTTPS and DNS?

              Cheers

              1 Reply Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate
                last edited by

                Yes, if you block access to DNS servers except a specific set, your hosts need to be using passed addresses for DNS, yes.

                In general: only pass traffic you need to have passed to destinations it needs to pass to and block everything else.

                Post up another screenshot of the DMZ rules so we can see your handiwork.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tmacka88
                  last edited by

                  @Derelict:

                  Post up another screenshot of the DMZ rules so we can see your handiwork.

                  Here is the latest.

                  Also my NAT port forwarding is attached. I only have HTTP & HTTPS forwarded to the server.

                  Cheers

                  ![Screenshot 2015-02-27 12.05.31.png](/public/imported_attachments/1/Screenshot 2015-02-27 12.05.31.png)
                  ![Screenshot 2015-02-27 12.07.01.png](/public/imported_attachments/1/Screenshot 2015-02-27 12.07.01.png)
                  ![Screenshot 2015-02-27 12.05.31.png_thumb](/public/imported_attachments/1/Screenshot 2015-02-27 12.05.31.png_thumb)
                  ![Screenshot 2015-02-27 12.07.01.png_thumb](/public/imported_attachments/1/Screenshot 2015-02-27 12.07.01.png_thumb)

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