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

    Default deny rule question

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 3 Posters 24.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.
    • J
      jason0
      last edited by

      Hello,

      I understand pfsense is set to "default deny" all inbound wan traffic out of the box.  Does this rule explicitly appear in the wan's firewall rules, or is it just implied as a unwritten final rule?

      Perhaps another way to put it is: can I turn off the default deny (by accident, hook, or  crook)?

      Thanks for your information…

      --jason

      1 Reply Last reply Reply Quote 0
      • D
        dszp
        last edited by

        You can simply add an allow all rule to the WAN if you want to allow all, and it will take precedence over the default deny. Of course you will also need to configure NAT forwarding if you want internal hosts to be accessible unless the hosts on the LAN have public IPs.

        David Szpunar

        1 Reply Last reply Reply Quote 0
        • J
          jason0
          last edited by

          So it IS implied.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • D
            dszp
            last edited by

            Yes, deny all (minus some special rules for webconfig access from the LAN, etc.) is implied for all interfaces. That's why there's an explicit default allow all from LAN rule on the LAN :-)

            David Szpunar

            1 Reply Last reply Reply Quote 0
            • J
              jason0
              last edited by

              Perfect!  Thanks!

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                The default deny rule is hard coded and cannot be removed, anything that doesn't match a user-defined rule hits it. Short of modifying the source code to take it out, you cannot disable it. You can override it with user-defined rules, essentially eliminating its purpose if you allow everything on every interface.

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