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

    Rule with schedule showing "s:<big-number>" as description

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 375 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
      fsr
      last edited by fsr

      Hi,

      I wanted to share something that i found in pfsense community 2.6.0-RELEASE (amd64).

      When a rule has a schedule configured, instead of showing the user-created description in the firewall log, it shows something like "s:61b56f3d0a9b4" as description. If i remove the schedule, all is normal.

      Two nearly-identical rules (only difference is that one has a schedule) show like this in pfctl:

      pfctl -vvsr | grep -i "permitir todo de lan a external"

      @51(0) pass in log quick on hn1 inet from 192.168.120.0/24 to ! 192.168.120.0/24 flags S/SA keep state label "s:<edited>" label "USER_RULE: Permitir Todo de LAN a EXTERNAL (con limiter y sc..." dnpipe(4, 3) ridentifier <edited>

      @52(0) pass in log quick on hn1 inet from 192.168.120.0/24 to ! 192.168.120.0/24 flags S/SA keep state label "USER_RULE: 2Permitir Todo de LAN a EXTERNAL (con limiter y s..." dnpipe(4, 3) ridentifier <edited>

      It seems to me like the schedule adds an additional label to the rule, and the firewall log is showing that label instead of the one with the user-defined description, because the "schedule label" is the first one.

      Is anyone else getting this kind of behaviour, or is it something about this particular installation?

      Regards

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That's a side effect of how schedules are handled these days. The methods of fetching rule labels are not quite right there, but it's fixed on snapshots:

        https://redmine.pfsense.org/issues/13155 -- that alone wouldn't apply to 2.6.0 since there are a lot of other changes around after 2.6.0 there. Though schedules are not mentioned it's the same root problem since schedules are handled through an additional rule labels on 2.6.x.

        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 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.