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

    2.3 firewall rule state entry bug

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 2.3k 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.
    • X
      xbipin
      last edited by

      in 2.3 when u try to add max state value for match rules u get a php error, the part where it says u cant do that for match rules is fine

      The following input errors were detected:
      
          The maximum state entries (advanced option) can only be specified for Pass type rules.
      
      Warning: explode() expects parameter 2 to be string, array given in /usr/local/www/firewall_rules_edit.php on line 1208 Call Stack: 0.0013 133980 1\. {main}() /usr/local/www/firewall_rules_edit.php:0 0.9376 1183020 2\. explode() /usr/local/www/firewall_rules_edit.php:1208 
      
      1 Reply Last reply
      Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        I can't seem to reproduce this as-is. What did you have selected exactly on the rule? That line is complaining about the interface selection. What was selected there?

        Was this a new rule, or editing an existing rule?

        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
        • H
          heper
          last edited by

          @jimp:

          I can't seem to reproduce this as-is. What did you have selected exactly on the rule? That line is complaining about the interface selection. What was selected there?

          Was this a new rule, or editing an existing rule?

          can be reproduced like this:
          -create floating rule

          • set to "match'
            -select at least 1 interface
          • fill in a max state value (works on others input violations aswel)
          • hit save

          https://redmine.pfsense.org/issues/6175
          PR needs to be looked at closely for bugs

          1 Reply Last reply
          Reply Quote 0
          • X
            xbipin
            last edited by

            i was editing a floating rule with the following things in it

            • match
            • apply immediately
            • LAN interface
            • direction in
            • ipv4
            • tcp/udp
            • source lan ip alias
            • destination invert match with  remote server ip alias
            • in/out pipe for traffic shaping

            these r the things set in the rule

            1 Reply Last reply
            Reply Quote 0
            • H
              heper
              last edited by

              @xbipin it was fixed by Jorge M. Oliveira & steve_b

              please confirm by gitsync or waiting for the next round of snapshots
              https://redmine.pfsense.org/issues/6175

              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