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

    TCP:PA not following firewall rule?

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 302 Views 1 Watching
    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.
    • B Offline
      bchan
      last edited by bchan

      I wanted to ban all outbound traffic to Russia except for the Kaspersky network. I have a dual WAN setup.

      I set up rules on LAN interface like this:
      FW Rules.png

      Kaspersky is a network alias:
      FW Alias.png

      Strange enough I found in the firewall logs a lot of TCP:PA and TCP:A entries that was meant for the Kaspersky network. In other words, the first rule does not catch TCP:PA and TCP:A.
      FW Logs.png

      I have also tried a few things but none of them work:

      1. marking the "Any" TCP flags checkbox in the first rule so the rule is supposed to catch everything.
      2. Leave the Gateway to default
      3. Change the protocol from Any to TCP/UDP

      Is it a bug in pfsense 2.5? How can I get rid of the noise in Ban rule.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ Online
        johnpoz LAYER 8 Global Moderator @bchan
        last edited by johnpoz

        @bchan said in TCP:PA not following firewall rule?:

        the first rule does not catch TCP:PA and TCP:A.

        No what that means is there no state for those.. If firewall never sees a syn to create a state, or the state gets removed (say a loss of gateway, and you have flush states on that).. etc..

        https://docs.netgate.com/pfsense/en/latest/troubleshooting/log-filter-blocked.html

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07 | Lab VMs 2.8, 25.07

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