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

    Deny vs block

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.4k 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.
    • I Offline
      iamthed
      last edited by

      guys i want to ask.. whats the difference deny and block in firewall rules???
      newbie question..

      i'm dumb.. but i have a desire to learn

      1 Reply Last reply Reply Quote 0
      • K Offline
        ktims
        last edited by

        Block simply discards the packet and returns no response to the source. It will cause a connection timeout on the client.

        Reject sends a TCP RST to the source, which will generate a 'connection refused' message and immediately close the connection on the client.

        It's generally better to use block rules on the WAN side; it will make scans take longer and removes a couple of DoS opportunities. Reject does make sense in some cases though, especially on the LAN side, where you want a quick failure, for example to block outgoing SMTP that doesn't go through your relay.

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