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

    making changes to rules applied only after reboot

    Scheduled Pinned Locked Moved Firewalling
    22 Posts 2 Posters 1.4k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @oren1031
      last edited by

      Did you validate that the state was no longer there, and that the rules actually reloaded.

      You do not need to reboot to apply rules.

      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.8, 24.11

      1 Reply Last reply Reply Quote 0
      • O
        oren1031
        last edited by

        not sure how to do that..
        if you can tell me how to verify it will be great.
        i just go to stats check the reset all. and apply. as i used to do for years and it use to apply immediately the changes...

        johnpozJ 1 Reply Last reply Reply Quote 0
        • O
          oren1031
          last edited by

          i can see under stats that its reloading

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

            For whatever reason the states might not have fully reset?

            You can validate rules reloaded here.

            reload.png

            You could validate rule listed in /tmp/rules.debug via a cat

            Or you could view your rules via

            https://docs.netgate.com/pfsense/en/latest/firewall/pf-ruleset.html

            If rules were not being applied, either there was a state, or the rules didn't actually reload to include the rule.

            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.8, 24.11

            1 Reply Last reply Reply Quote 0
            • O
              oren1031
              last edited by

              ok i think i got it fixed after disable pfblocker and enabling it back.
              thanks for assisting.

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

                maybe something with auto rules in pfblocker? Are you using those? I don't recall seeing any complaints on that - but that would be my educated "guess" to why say the rules might of got hung and didn't full reload. etc..

                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.8, 24.11

                1 Reply Last reply Reply Quote 0
                • O
                  oren1031
                  last edited by

                  yes im using them to block incoming via geolocation.
                  and i started getting some error that i was unable to fix about memory so i kept adding more to
                  Firewall Maximum States
                  and to Firewall Maximum Table Entries

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

                    @oren1031 said in making changes to rules applied only after reboot:

                    error that i was unable to fix

                    What was the specific error - yeah if you had issues with the memory and tables - that for sure could of caused issues with load of rules..

                    Not talking about geoip, I use those in pfblocker - more talking about letting pfblocker auto create rules.. Which I don't use.. I just use it to create native aliases that I put in the rules.

                    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.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • O
                      oren1031
                      last edited by

                      Cannot allocate memory - The line in question reads [48]: table <pfB_NAmerica_v6> persist file "/var/db/aliastables/pfB_NAmerica_v6.txt"

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

                        yeah that list is going to be freaking HUGE ;) NA v6...

                        You need to up the table size.. if your going to use such a list. What do you have yours set to?

                        set.png

                        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.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • O
                          oren1031
                          last edited by

                          now i took it up to 2400000 for now im getting no error.

                          1 Reply Last reply Reply Quote 0
                          • O
                            oren1031
                            last edited by

                            but look like pfblocker is doing its job...
                            cc357ba2-2ac5-4b2e-be00-a46f8560050a-image.png

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

                              Wouldn't it just be easier to allow what you want ;) Out of the box all is blocked anyway. Just use geoip list of what you want to allow to hit your port forward/exposed ports..

                              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.8, 24.11

                              1 Reply Last reply Reply Quote 0
                              • O
                                oren1031
                                last edited by

                                that is what i did. blocked all but what i want to be enabled.

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

                                  Why are you loading the NA list then? Just for your picture of where IPs are from?

                                  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.8, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • O
                                    oren1031
                                    last edited by

                                    im blocking all inbounds. from everywhere but my country.
                                    isnt that the way to go? if i have a service i want to be accessed only from my country to minimize exposer?

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

                                      Again just allow your country on your rule/port forward. All is blocked by default.. There is little reason to load up some table of all NA v6, when ALL is blocked by default. And your allow is only your country list of IP ranges.

                                      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.8, 24.11

                                      1 Reply Last reply Reply Quote 0
                                      • O
                                        oren1031
                                        last edited by

                                        so when allowing only 1 country all others will be blocked by pfblocker?
                                        is that what you mean?
                                        no need for block rules because all that is not allowed is blocked?

                                        1 Reply Last reply Reply Quote 0
                                        • O
                                          oren1031
                                          last edited by

                                          what is the downside? of using it the way i do?
                                          keeping in mind i have i3 with 8 gig ram. so its not really
                                          working that hard.. its a home environment.

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

                                            What trying to load every known IP on the planet to put in a list so you can block it? When ALL ips are blocked by default anyway ;)

                                            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.8, 24.11

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