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

    Bug Report - Filtered Firewall Log

    General pfSense Questions
    4
    5
    330
    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
      JonH
      last edited by

      Using 2.4.2-RELEASE-p1 (amd64) on SG-2440
      I believe following is a bug, if not my apologies:
      Filter firewall log by source port 67 returns all entries that contain '67' within the port number.
      That is, it will return port 18679 instead of only 67.  I think this worked correctly in earlier versions of pfSense.
      Attached screenshot:

      ![Screen Shot 2017-12-29 at 11.10.46.jpg](/public/imported_attachments/1/Screen Shot 2017-12-29 at 11.10.46.jpg)
      ![Screen Shot 2017-12-29 at 11.10.46.jpg_thumb](/public/imported_attachments/1/Screen Shot 2017-12-29 at 11.10.46.jpg_thumb)

      1 Reply Last reply Reply Quote 0
      • S
        strangegopher
        last edited by

        Post bugs here: https://redmine.pfsense.org/projects/pfsense/issues/new

        1 Reply Last reply Reply Quote 0
        • BBcan177B
          BBcan177 Moderator
          last edited by

          It's not a bug. The filter uses regex.

          Example to match only "67":

          "^67" starts with 67
          "^67$" starts and ends with only 67

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

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

            You need to understand how to use regex ;)

            I only do logs of SYN packets so missing a lot of noise..  But here is example of proper use of regex.. So when I just put in 23 it going to match pretty much anything that has 23 in it.. 2323, 5623, 1423, etc. etc..

            First image.. If use the correct regex for what exactly I want - just port 23.. nothing more nothing less with ^23$ then that is all you get.. See in first post there were 3 hits with hit before at 15:19:49 and hit after at 15:13:33 now in second sniff those are missing..

            multiplehits.png
            multiplehits.png_thumb
            2323doesntmatch.png
            2323doesntmatch.png_thumb

            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 24.11 | Lab VMs 2.7.2, 24.11

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

              nothing more nothing less with ^23$ then that is all you get

              Thanks All.  I don't recall (but my memory is getting worse) this was necessary in earlier version.
              But now that I know I'm all set.

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