Unnecessary rules

  • pfSense utilizes a default deny philosophy, yet I've seen a number of guide online that explicitly define reject rules.

    Here is an example of a guest VLAN showing a number of reject rules.


    Are these rules unnecessary?

  • Netgate Administrator

    Reject for internal clients is a good option. It replies reject specifically to the client which means it immediately closes the connection rather than having to timeout.
    Be aware though that unless you enable logging on those rules you won't see it in the firewall log, unlike default blocked traffic. That can make troubleshooting harder.


  • Rebel Alliance Developer Netgate

    As @stephenw10 mentioned, using Reject internally is one good reason, but there are also other reasons someone might want explicit block/reject rules, such as:

    • To fine-tune which blocked traffic gets logged / not logged
    • In combination with policy routing rules and the "Skip rules when gateway is down" option so that policy routed traffic will fall through to specific block rules if a gateway is offline
    • To make the ruleset easier to read for less experienced admins who are not familiar with the default block behavior

Log in to reply