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

    Why do "Applying" new rules not actually apply?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.0k 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.
    • U Offline
      unexpectedly
      last edited by

      Hi all,

      Just spent a few hours going around and around trying to configure remote SSH on my shiney new pfsense install. Then I stumbled upon this guide/doc. Went all through it. No help.

      I shouldn't have skipped over the top Google result, though… read down, doesn't apply, doesn't apply, then BAM on Reply #6: Just remember to reset current states after you change a rule on quick tests.

      I was confused in thinking "APPLY" would apply the rules and restart the firewall.

      Maybe we could please take the "Reset" button buried under Diagnostics->States->Reset States tab and copy it to the Firewall->Rules page?
      (see attachments)

      … I'll probably be editing the php to do it for myself, or at least put in a link to diag_resetstate.php there.

      BTW, great firewall… the only thing I could make work after having been spoiled by typical wireless/firewall/gateway routers.

      :D Chris
      reset_button.jpg
      reset_button.jpg_thumb
      fw_rules.jpg
      fw_rules.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • U Offline
        unexpectedly
        last edited by

        I opened up /usr/local/www/firewall_rules.php and around line 799 made these changes:

        
        			After you hit "Apply" above, new rules don't work until [you go here](diag_resetstate.php) and hit Reset button.
        

        Hope this helps the next pfsense newb to google pfsense firewall rules not applying …

        1 Reply Last reply Reply Quote 0
        • P Offline
          phil.davis
          last edited by

          The new rules do apply to new connections that make new states (or are blocked from making a new state). Traffic for clients with existing states will continue to flow according to the state. That minimises or eliminates interruption of service to clients when rules are being added. But yes, it does mean that if you are blocking extra things or testing or… then the changes may not seem to be applied because your test system (or the 'naughty' user you just blocked) already had a state in existence which persists across the rule changes.
          If you are opening up the rules, then I don't expect a problem - a new connection should be allowed a few seconds after "Apply" is pressed.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • U Offline
            unexpectedly
            last edited by

            What? Be nice to the users?  :o

            Ok, so maybe a "apply nice" and "slam `em" option next to it?  8)

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