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

    IP-Blocklist

    pfSense Packages
    86
    496
    492.9k
    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.
    • M
      m4rcu5
      last edited by

      @Atlanta-Mike:

      I have looked through this tread and can't seem to find it, how do you keep IP-Block list running?  I can hit save and it will run for a little while but then when I check a few minutes later it is not running again.  I have tried uninstalling and reinstalling and am getting the same results.  I am also getting the same results with Country Block.  However using the cron job below, I can at least get it going again automatically.  It does make me wonder if these two packages spend more time not running than running, just how much use I am getting out of them.

      */5 * * * * root /usr/local/etc/rc.d/countryblock.sh

      I should say, my assumption is always that I did something wrong, I just need a little help solving this one.

      I guess this is due to another process reloading the filters. If i am correct this will remove the ipblocklist from the rules and therefore disable it.

      @Tom,
      Can't you add a link to '/usr/local/pkg/pf/' qouting from http://remcobressers.nl/2009/08/configuring-native-ipv6-pfsense/:

      After some searching on the box, i noticed that after changing things in the GUI the function filter_configure_sync() is called and the rules will be flushed.
      This function can be found in /etc/inc/filter.inc (line 78). In the function, there’s a hook to a plugin directory. When the function filter_configure_sync() is called, the function will look in the /usr/local/pkg/pf directory for scripts, which will be executed. This only happens if scripts end with “.sh” as the extension.

      -m4rcu5

      1 Reply Last reply Reply Quote 0
      • F
        focalguy
        last edited by

        @larathydo:

        Hey All,

        Just installed PFSense (2.0-RC1 (i386), built on Wed Apr 6 23:30:13 EDT 2011) and tried to install the IP-Blocklist package through the GUI package installer.

        No matter what I do, it always is showing "You are blocking 0 Networks/IPs". I've tried using the official 'level' lists which are mentioned on the configuration page:

        -snip-

        I've tried uninstalling, reinstalling again, reinstalling the package & GUI components (from the package management page). All the while, logging is enabled and yet under Status > System Logs, i see no issues or warnings being generated by the package. Every time I check the status of the package (I.E. "You are blocking 0 Networks/IPs") the package is always listed as being in a "Running" state.

        Any suggestions / help? I have no idea what is wrong…

        +1. I had this working about a month or two ago but now it does not work. I just updated to the latest snapshot today and tried reinstalling the package but I get the "you are blocking 0 Networks".

        1 Reply Last reply Reply Quote 0
        • T
          tommyboy180
          last edited by

          @focalguy:

          @larathydo:

          Hey All,

          Just installed PFSense (2.0-RC1 (i386), built on Wed Apr 6 23:30:13 EDT 2011) and tried to install the IP-Blocklist package through the GUI package installer.

          No matter what I do, it always is showing "You are blocking 0 Networks/IPs". I've tried using the official 'level' lists which are mentioned on the configuration page:

          -snip-

          I've tried uninstalling, reinstalling again, reinstalling the package & GUI components (from the package management page). All the while, logging is enabled and yet under Status > System Logs, i see no issues or warnings being generated by the package. Every time I check the status of the package (I.E. "You are blocking 0 Networks/IPs") the package is always listed as being in a "Running" state.

          Any suggestions / help? I have no idea what is wrong…

          +1. I had this working about a month or two ago but now it does not work. I just updated to the latest snapshot today and tried reinstalling the package but I get the "you are blocking 0 Networks".

          The BETA 2.0 shouldn't change anything with the package compatibility but it seems to change for some people. My support for BETA 2 is limited since there are new snapshots all the time and, well, it's still BETA. I will do my best to keep up with the latest but please keep in mind that if you may run into problems on BETA software.

          -Tom Schaefer
          SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

          Please support pfBlocker | File Browser | Strikeback

          1 Reply Last reply Reply Quote 0
          • F
            focalguy
            last edited by

            Thanks Tom,

            I understand you are doing this as time permits and you have other things to do. I also understand it is Beta. I was hoping it was just something I was missing and it would be an easy fix.

            I'm not really sure if there are any logs I can capture or anything I can do to dig deeper as to why it is not working. If I can be of any help, please let me know. This is a nice package and I appreciate the work you put into it!

            1 Reply Last reply Reply Quote 0
            • T
              tommyboy180
              last edited by

              @focalguy:

              Thanks Tom,

              I understand you are doing this as time permits and you have other things to do. I also understand it is Beta. I was hoping it was just something I was missing and it would be an easy fix.

              I'm not really sure if there are any logs I can capture or anything I can do to dig deeper as to why it is not working. If I can be of any help, please let me know. This is a nice package and I appreciate the work you put into it!

              You can follow the process by running convert-execute.sh via the command line and watching the stdout. I will update my BETA 2.0 to the latest and check it it works. What other packages do you have installed?

              -Tom Schaefer
              SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

              Please support pfBlocker | File Browser | Strikeback

              1 Reply Last reply Reply Quote 0
              • T
                tommyboy180
                last edited by

                @m4rcu5:

                @Atlanta-Mike:

                I have looked through this tread and can't seem to find it, how do you keep IP-Block list running?  I can hit save and it will run for a little while but then when I check a few minutes later it is not running again.  I have tried uninstalling and reinstalling and am getting the same results.  I am also getting the same results with Country Block.  However using the cron job below, I can at least get it going again automatically.  It does make me wonder if these two packages spend more time not running than running, just how much use I am getting out of them.

                */5 * * * * root /usr/local/etc/rc.d/countryblock.sh

                I should say, my assumption is always that I did something wrong, I just need a little help solving this one.

                I guess this is due to another process reloading the filters. If i am correct this will remove the ipblocklist from the rules and therefore disable it.

                @Tom,
                Can't you add a link to '/usr/local/pkg/pf/' qouting from http://remcobressers.nl/2009/08/configuring-native-ipv6-pfsense/:

                After some searching on the box, i noticed that after changing things in the GUI the function filter_configure_sync() is called and the rules will be flushed.
                This function can be found in /etc/inc/filter.inc (line 78). In the function, there’s a hook to a plugin directory. When the function filter_configure_sync() is called, the function will look in the /usr/local/pkg/pf directory for scripts, which will be executed. This only happens if scripts end with “.sh” as the extension.

                -m4rcu5

                You are a freaking genius! This is exactly what I was looking for! Everyone is going to be so happy once I commit these changes!
                Thank you again m4rcu5!

                -Tom Schaefer
                SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                Please support pfBlocker | File Browser | Strikeback

                1 Reply Last reply Reply Quote 0
                • A
                  Atlanta-Mike
                  last edited by

                  @tommyboy180:

                  You are a freaking genius! This is exactly what I was looking for! Everyone is going to be so happy once I commit these changes!
                  Thank you again m4rcu5!

                  Tom, do you think this change will fix my issue?

                  1 Reply Last reply Reply Quote 0
                  • T
                    tommyboy180
                    last edited by

                    @Atlanta-Mike:

                    @tommyboy180:

                    You are a freaking genius! This is exactly what I was looking for! Everyone is going to be so happy once I commit these changes!
                    Thank you again m4rcu5!

                    Tom, do you think this change will fix my issue?

                    It should. The only reason why the package stop working is because the firewall reloaded it's rules, either because of a change you made, reboot, or the system did it.
                    So what this changes does it when ever there is a firewall reload the package will automatically be reloaded as well.

                    Therefore you should have no down time and thus eliminating the need for the cron job completely. I'm still testing right now and someone else is testing embedded for me. Hopefully we get positive results.

                    -Tom Schaefer
                    SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                    Please support pfBlocker | File Browser | Strikeback

                    1 Reply Last reply Reply Quote 0
                    • M
                      m4rcu5
                      last edited by

                      @tommyboy180:

                      You are a freaking genius! This is exactly what I was looking for! Everyone is going to be so happy once I commit these changes!
                      Thank you again m4rcu5!

                      Your welcome. I actually wanted to mail it to you a few weeks ago but totally forgot :-( Sorry!

                      -m4rcu5

                      1 Reply Last reply Reply Quote 0
                      • A
                        Atlanta-Mike
                        last edited by

                        I noticed their were new packages out available a couple of nights ago and  re-installed both Country Block and IP-Blocklist, but both still stop running.  Do I need to do something different to keep them running (ie, uninstall and then re-install vs just choosing the re-install option)?

                        1 Reply Last reply Reply Quote 0
                        • T
                          tommyboy180
                          last edited by

                          @Atlanta-Mike:

                          I noticed their were new packages out available a couple of nights ago and  re-installed both Country Block and IP-Blocklist, but both still stop running.  Do I need to do something different to keep them running (ie, uninstall and then re-install vs just choosing the re-install option)?

                          To upgrade you need to uninstall and re-install. The re-install option does nothing.

                          -Tom Schaefer
                          SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                          Please support pfBlocker | File Browser | Strikeback

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

                            @tommyboy180:

                            To upgrade you need to uninstall and re-install. The re-install option does nothing.

                            Hi Tom …is the fix for the filter reload problem now in the new version? Thanks...

                            1 Reply Last reply Reply Quote 0
                            • T
                              tommyboy180
                              last edited by

                              @Slab:

                              @tommyboy180:

                              To upgrade you need to uninstall and re-install. The re-install option does nothing.

                              Hi Tom …is the fix for the filter reload problem now in the new version? Thanks...

                              Yes it is.

                              -Tom Schaefer
                              SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                              Please support pfBlocker | File Browser | Strikeback

                              1 Reply Last reply Reply Quote 0
                              • A
                                Atlanta-Mike
                                last edited by

                                Thanks so much.  Both Country Block and I-Blocklist are running fine now.  Thanks again!!

                                1 Reply Last reply Reply Quote 0
                                • F
                                  focalguy
                                  last edited by

                                  @tommyboy180:

                                  @focalguy:

                                  Thanks Tom,

                                  I understand you are doing this as time permits and you have other things to do. I also understand it is Beta. I was hoping it was just something I was missing and it would be an easy fix.

                                  I'm not really sure if there are any logs I can capture or anything I can do to dig deeper as to why it is not working. If I can be of any help, please let me know. This is a nice package and I appreciate the work you put into it!

                                  You can follow the process by running convert-execute.sh via the command line and watching the stdout. I will update my BETA 2.0 to the latest and check it it works. What other packages do you have installed?

                                  Thanks. I have no other packages installed although I did have the Open-VM Tools installed since this is running in VMWare ESXi 4.1 but since that package is not working right now I removed it. I did remove this package and then install it again to make sure I am on the latest.

                                  This is what I get below: is it having trouble finding perl? Yea, I just checked and /usr/bin/perl doesn't exist.

                                  [2.0-RC1][admin@removedname]/usr/local/www/packages/ipblocklist(5): ./convert-execute.sh
                                  1 table deleted.
                                  1 table deleted.
                                  ./convert-execute.sh: /usr/bin/perl: not found
                                  ./convert-execute.sh: /usr/bin/perl: not found
                                  ./convert-execute.sh: /usr/bin/perl: not found
                                  rm: /usr/local/www/packages/ipblocklist/lists/ipfw.ipfwTEMP: No such file or directory
                                  rm: Wlists/whitelistTEMP: No such file or directory
                                  rm: /tmp/rules.debug.tmp: No such file or directory
                                  rm: /tmp/rules.debug.tmp: No such file or directory
                                  0
                                  1
                                  2
                                  3
                                  4
                                  5
                                  --snip--
                                  .
                                  .
                                  .
                                  142
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tommyboy180
                                    last edited by

                                    @focalguy:

                                    @tommyboy180:

                                    @focalguy:

                                    Thanks Tom,

                                    I understand you are doing this as time permits and you have other things to do. I also understand it is Beta. I was hoping it was just something I was missing and it would be an easy fix.

                                    I'm not really sure if there are any logs I can capture or anything I can do to dig deeper as to why it is not working. If I can be of any help, please let me know. This is a nice package and I appreciate the work you put into it!

                                    You can follow the process by running convert-execute.sh via the command line and watching the stdout. I will update my BETA 2.0 to the latest and check it it works. What other packages do you have installed?

                                    Thanks. I have no other packages installed although I did have the Open-VM Tools installed since this is running in VMWare ESXi 4.1 but since that package is not working right now I removed it. I did remove this package and then install it again to make sure I am on the latest.

                                    This is what I get below: is it having trouble finding perl? Yea, I just checked and /usr/bin/perl doesn't exist.

                                    [2.0-RC1][admin@removedname]/usr/local/www/packages/ipblocklist(5): ./convert-execute.sh
                                    1 table deleted.
                                    1 table deleted.
                                    ./convert-execute.sh: /usr/bin/perl: not found
                                    ./convert-execute.sh: /usr/bin/perl: not found
                                    ./convert-execute.sh: /usr/bin/perl: not found
                                    rm: /usr/local/www/packages/ipblocklist/lists/ipfw.ipfwTEMP: No such file or directory
                                    rm: Wlists/whitelistTEMP: No such file or directory
                                    rm: /tmp/rules.debug.tmp: No such file or directory
                                    rm: /tmp/rules.debug.tmp: No such file or directory
                                    0
                                    1
                                    2
                                    3
                                    4
                                    5
                                    --snip--
                                    .
                                    .
                                    .
                                    142
                                    
                                    

                                    Perl get's installed with the compatability package in BETA 2.0. It looks like you're missing perl. Try pkg add -r perl.

                                    -Tom Schaefer
                                    SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                    Please support pfBlocker | File Browser | Strikeback

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      focalguy
                                      last edited by

                                      Yes! That did it. For others, it's actually "pkg_add -r perl".

                                      Thank you for the help! Any idea why my system didn't get it?

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tommyboy180
                                        last edited by

                                        @focalguy:

                                        Yes! That did it. For others, it's actually "pkg_add -r perl".

                                        Thank you for the help! Any idea why my system didn't get it?

                                        Not sure. Line 58 of the install script should have done it.
                                        http://redmine.pfsense.org/projects/pfsense-packages/repository/revisions/master/entry/config/ipblocklist/8/ipblocklist.inc

                                        Good question.

                                        -Tom Schaefer
                                        SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

                                        Please support pfBlocker | File Browser | Strikeback

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          Macom2007
                                          last edited by

                                          I am on the latest snapshot and i am getting this error while trying to start Country Block :

                                          /tmp/rules.debug:189: cannot load "/usr/local/www/packages/ipblocklist/lists/ipfw.ipfw": No such file or directory

                                          I removed the package and installed it again already.

                                          Any suggestions ?

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            Macom2007
                                            last edited by

                                            No one ?

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