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

    PROBLEM! Inconsistency in the rules

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.8k 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.
    • F
      fredmdl
      last edited by

      Hi all,

      I try to build a new firewall with new rules and but I´m stuck with an strange error.
      How its possible that pfsense allow and seconds after that deny a same conection?

      The second rule allow networks 192.168.10.0/24 20.0/24 and 30.0/24 to conect by TCP/UDP any source and destination port. But don´t work

      Jul  1 13:28:46 shtfw01 pf: 00:00:00.537514 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24165, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:28:46 shtfw01 pf:     192.168.30.201.2079 > 192.168.10.105.445: Flags [s], cksum 0x1baf (correct), seq 531142776, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      Jul  1 13:28:46 shtfw01 pf: 00:00:00.000151 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24166, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:28:46 shtfw01 pf:     192.168.30.201.2080 > 192.168.10.105.139: Flags [s], cksum 0x0999 (correct), seq 3500866236, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      --
      Jul  1 13:28:50 shtfw01 pf: 00:00:01.379292 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24322, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:28:50 shtfw01 pf:     192.168.30.201.2081 > 192.168.20.7.1900: Flags [s], cksum 0xb8ad (correct), seq 1943377917, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      --
      Jul  1 13:28:56 shtfw01 pf: 00:00:00.179253 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24325, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:28:56 shtfw01 pf:     192.168.30.201.2082 > 192.168.20.9.1900: Flags [s], cksum 0xe2f3 (correct), seq 1163369522, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      --
      Jul  1 13:29:16 shtfw01 pf: 00:00:02.946019 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24335, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:29:16 shtfw01 pf:     192.168.30.201.2083 > 192.168.20.9.1900: Flags [s], cksum 0x83ce (correct), seq 1148451898, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      --
      Jul  1 13:29:38 shtfw01 pf: 00:00:01.434567 rule 50/0(match): pass in on bge0: (tos 0x0, ttl 128, id 24342, offset 0, flags [DF], proto TCP (6), length 48)
      Jul  1 13:29:38 shtfw01 pf:     192.168.30.201.2085 > 192.168.20.9.1900: Flags [s], cksum 0x9d08 (correct), seq 2196415623, win 64240, options [mss 1460,nop,nop,sackOK], length 0
      --
      Jul  1 13:29:47 shtfw01 pf: 00:00:00.520415 rule 1/0(match): block in on bge0: (tos 0x0, ttl 128, id 24345, offset 0, flags [DF], proto TCP (6), length 206)
      Jul  1 13:29:47 shtfw01 pf:     192.168.30.201.2079 > 192.168.10.105.445: Flags [P.], ack 457951509, win 63073, length 166WARNING: Short packet. Try increasing the snap length by 14
      
      I try after reboot and Resetting the state too and same problem
      Sorry but I´m new with pfsense.
      
      Thank you.[/s][/s][/s][/s][/s][/s]
      
      1 Reply Last reply
      Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The blocked packet is a "Push/ACK" not a "SYN" – it was not making a new connection, it was part of an existing connection but the firewall had no knowledge of that connection. Either the state was removed, or there is asymmetric routing and the connection was opened outside of pfSense somehow.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply
        Reply Quote 0
        • F
          fredmdl
          last edited by

          @jimp:

          The blocked packet is a "Push/ACK" not a "SYN" – it was not making a new connection, it was part of an existing connection but the firewall had no knowledge of that connection. Either the state was removed, or there is asymmetric routing and the connection was opened outside of pfSense somehow.

          tks for answer.
          The gateway of machine is the pfsense. I´m use pfsense to routing the 3 networks.
          Can be it a problem or have to work same way?

          bge0: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
                  options=8009b <rxcsum,txcsum,vlan_mtu,vlan_hwtagging,vlan_hwcsum,linkstate>ether 00:19:bb:50:92:1f
                  inet 192.168.10.252 netmask 0xffffff00 broadcast 192.168.10.255
                  inet6 fe80::219:bbff:fe50:921f%bge0 prefixlen 64 scopeid 0x3
                  inet 192.168.30.2 netmask 0xffffff00 broadcast 192.168.30.255
                  inet 192.168.20.2 netmask 0xffffff00 broadcast 192.168.20.255
                  nd6 options=43 <performnud,accept_rtadv>media: Ethernet autoselect (1000baseT <full-duplex>)
                  status: active</full-duplex></performnud,accept_rtadv></rxcsum,txcsum,vlan_mtu,vlan_hwtagging,vlan_hwcsum,linkstate></up,broadcast,running,simplex,multicast>
          
          1 Reply Last reply
          Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            It's not actually indicating a blocked connection, and it may not even be indicating a problem worth worrying about.

            http://doc.pfsense.org/index.php/Logs_show_%22blocked%22_for_traffic_from_a_legitimate_connection,_why%3F

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy