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

    IP-Blocklist

    Scheduled Pinned Locked Moved pfSense Packages
    496 Posts 86 Posters 498.7k 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.
    • T
      tommyboy180
      last edited by

      @Spock75:

      Is it possible to add description after the link in "Current List(s):" ?

      I use iblocklist.com and many of the links look like this "ghlzqtqxnzctvvajwwag.gz"

      Thanks for the idea! It's now in my to-do list.

      -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
      • P
        p-root
        last edited by

        @rajkedda:

        Hi countryipblocks,
          I am trying to access your site to download the country ip blocks.  I keep getting forbidden, but i access your site from different location, it works fine.  By any chance my WAN IP is blocked on your network?

        Link I am trying is http://www.countryipblocks.net/networking/pg2-formatted-acess-control-lists/

        Same thing, i can't access to countryblocks.net

        Countryblock status :

        Current Status = running
        
        You are blocking 0 Networks
        
        
        1 Reply Last reply Reply Quote 0
        • T
          tommyboy180
          last edited by

          Countryipblocks contacted me about this a couple days ago. I am working on a solution right now.

          -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
          • P
            p-root
            last edited by

            @tommyboy180:

            Countryipblocks contacted me about this a couple days ago. I am working on a solution right now.

            Thank you tommyboy180 and countryipblocks  :)

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

              @p-root:

              @tommyboy180:

              Countryipblocks contacted me about this a couple days ago. I am working on a solution right now.

              Thank you tommyboy180 and countryipblocks   :)

              For the countryipblocks PG2 format list you have to link directly to the .txt file. For example, for AFGHANISTAN add the direct link like: https://www.countryipblocks.net/e_country_data/AF_pg2.txt

              Try that and see if your lists will now work.

              -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
              • D
                darxmurf
                last edited by

                Hi there,

                Quick question, I tried to install IP-Blocklist on my 1.2.3 Embedded system.
                The installation is ok (tooks few seconds on : Executing custom_php_install_command()…) and then I'v got this message in the config page

                Warning: fopen(lists.txt): failed to open stream: Read-only file system in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 69 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 70 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 75 Warning: filesize(): Stat failed for lists.txt (errno=2 - No such file or directory) in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 79

                When I try to add a list, it displays this

                Warning: fopen(lists.txt): failed to open stream: Read-only file system in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 69 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 70 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 72 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 75 Warning: filesize(): Stat failed for lists.txt (errno=2 - No such file or directory) in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 79

                I tried to uninstall/reinstall but same error.
                I tried with and without the *Enable IP-Blocklist" box checked
                I tried with and without country-block

                Cheers

                Darx

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

                  @darxmurf:

                  Hi there,

                  Quick question, I tried to install IP-Blocklist on my 1.2.3 Embedded system.
                  The installation is ok (tooks few seconds on : Executing custom_php_install_command()…) and then I'v got this message in the config page

                  Warning: fopen(lists.txt): failed to open stream: Read-only file system in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 69 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 70 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 75 Warning: filesize(): Stat failed for lists.txt (errno=2 - No such file or directory) in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 79

                  When I try to add a list, it displays this

                  Warning: fopen(lists.txt): failed to open stream: Read-only file system in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 69 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 70 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 72 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 75 Warning: filesize(): Stat failed for lists.txt (errno=2 - No such file or directory) in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 79

                  I tried to uninstall/reinstall but same error.
                  I tried with and without the *Enable IP-Blocklist" box checked
                  I tried with and without country-block

                  Cheers

                  Darx

                  It's because you're running embedded. I don't have the time right now to work on embedded (sorry). If you know PHP I can take your fixes and update my package.

                  -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
                  • G
                    g4m3c4ck
                    last edited by

                    All he would have to do is use /tmp instead right? Since the list is pretty much volatile anyways. Not sure where the static parts would go in an embedded system though. Maybe I can throw together an embedded vm and work on it.

                    1 Reply Last reply Reply Quote 0
                    • G
                      g4m3c4ck
                      last edited by

                      @darxmurf:

                      Hi there,

                      Quick question, I tried to install IP-Blocklist on my 1.2.3 Embedded system.

                      Which embedded image are you using?

                      1 Reply Last reply Reply Quote 0
                      • D
                        darxmurf
                        last edited by

                        @tommyboy180:

                        It's because you're running embedded. I don't have the time right now to work on embedded (sorry). If you know PHP I can take your fixes and update my package.

                        Okay no problem. I can have a look to modify it.
                        I was thinking about to run the mount_rw script somewhere and then load the list.
                        I'll let you know if I found the solution without crashing my system :)

                        1 Reply Last reply Reply Quote 0
                        • D
                          darxmurf
                          last edited by

                          @g4m3c4ck:

                          @darxmurf:

                          Hi there,

                          Quick question, I tried to install IP-Blocklist on my 1.2.3 Embedded system.

                          Which embedded image are you using?

                          The 1GB Embeded on a CF Card
                          1.2.3-RELEASE
                          built on Mon Dec 7 18:11:25 EST 2009

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

                            @darxmurf:

                            @g4m3c4ck:

                            @darxmurf:

                            Hi there,

                            Quick question, I tried to install IP-Blocklist on my 1.2.3 Embedded system.

                            Which embedded image are you using?

                            The 1GB Embeded on a CF Card
                            1.2.3-RELEASE
                            built on Mon Dec 7 18:11:25 EST 2009

                            Let me get a custom script for you to test. PM me your email.

                            -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
                            • D
                              darxmurf
                              last edited by

                              Well, if I add a : conf_mount_rw(); in the script before the list creation, it should works isn't it ?

                              1 Reply Last reply Reply Quote 0
                              • JSmoradaJ
                                JSmorada
                                last edited by

                                I tried ip-blocklist and could never get it to work. It shows that it's running but is always showing that is is blocking 0 Networks/IPs. Currrntly I'm using the CN and IN pg2.txt lists. I tried uninstalling/rebooting and reinstalling and the behavior didn't change. There isn't anything in the system log either:
                                Feb 2 08:28:16 check_reload_status: syncing firewall
                                Feb 2 08:27:05 check_reload_status: syncing firewall
                                Feb 2 08:26:36 syslogd: kernel boot file is /boot/kernel/kernel
                                Feb 2 08:26:36 syslogd: exiting on signal 15
                                Feb 2 08:26:25 syslogd: kernel boot file is /boot/kernel/kernel

                                1 Reply Last reply Reply Quote 0
                                • D
                                  darxmurf
                                  last edited by

                                  okay,

                                  I edited the file ipblocklist_list.php

                                  • added : require_once('config.inc');
                                  • added : conf_mount_rw(); and conf_mount_ro(); around the block line 69.

                                  I can now start and add lists in the ip-blocklist settings but it still displays

                                  Current Status = Running
                                  You are blocking 0 Networks/IPs

                                  Any idea ?

                                  EDIT : When I try to delete a list, it reloads the config page in the iframe in the page  ???

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

                                    @darxmurf:

                                    okay,

                                    I edited the file ipblocklist_list.php

                                    • added : require_once('config.inc');
                                    • added : conf_mount_rw(); and conf_mount_ro(); around the block line 69.

                                    I can now start and add lists in the ip-blocklist settings but it still displays

                                    Current Status = Running
                                    You are blocking 0 Networks/IPs

                                    Any idea ?

                                    EDIT : When I try to delete a list, it reloads the config page in the iframe in the page  ???

                                    Are you using Firefox or Chrome?

                                    -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
                                    • G
                                      g4m3c4ck
                                      last edited by

                                      I got Blocking 0 Networks/IP because it was not actually retrieving the lists and putting into the tables at all. Check pfctl -sa | more and see if the table even exists. If not I would check if it is referencing the path properly.

                                      1 Reply Last reply Reply Quote 0
                                      • JSmoradaJ
                                        JSmorada
                                        last edited by

                                        @nipstech:

                                        I tried ip-blocklist and could never get it to work. It shows that it's running but is always showing that is is blocking 0 Networks/IPs. Currrntly I'm using the CN and IN pg2.txt lists. I tried uninstalling/rebooting and reinstalling and the behavior didn't change. There isn't anything in the system log either:
                                        Feb 2 08:28:16 check_reload_status: syncing firewall
                                        Feb 2 08:27:05 check_reload_status: syncing firewall
                                        Feb 2 08:26:36 syslogd: kernel boot file is /boot/kernel/kernel
                                        Feb 2 08:26:36 syslogd: exiting on signal 15
                                        Feb 2 08:26:25 syslogd: kernel boot file is /boot/kernel/kernel

                                        I updated to the latest 2.0 snapshot and was able to get this from the system log:

                                        Feb 2 19:27:58 check_reload_status: syncing firewall
                                        Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                        Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'rm -R /usr/local/www/packages/ipblocklist/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/ipblocklist/lists: No such file or directory'
                                        Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'ipfw -f flush' returned exit code '69', the output was 'ipfw: setsockopt(IP_FW_FLUSH): Protocol not available'

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

                                          @nipstech:

                                          @nipstech:

                                          I tried ip-blocklist and could never get it to work. It shows that it's running but is always showing that is is blocking 0 Networks/IPs. Currrntly I'm using the CN and IN pg2.txt lists. I tried uninstalling/rebooting and reinstalling and the behavior didn't change. There isn't anything in the system log either:
                                          Feb 2 08:28:16 check_reload_status: syncing firewall
                                          Feb 2 08:27:05 check_reload_status: syncing firewall
                                          Feb 2 08:26:36 syslogd: kernel boot file is /boot/kernel/kernel
                                          Feb 2 08:26:36 syslogd: exiting on signal 15
                                          Feb 2 08:26:25 syslogd: kernel boot file is /boot/kernel/kernel

                                          I updated to the latest 2.0 snapshot and was able to get this from the system log:

                                          Feb 2 19:27:58 check_reload_status: syncing firewall
                                          Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                          Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'rm -R /usr/local/www/packages/ipblocklist/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/ipblocklist/lists: No such file or directory'
                                          Feb 2 19:27:58 php: /packages/ipblocklist/ipblocklist.php: The command 'ipfw -f flush' returned exit code '69', the output was 'ipfw: setsockopt(IP_FW_FLUSH): Protocol not available'

                                          That looks like logs left from re-moving the package. Did you uninstall to try and troubleshoot. I don't use ipfw anymore, I must have left that in the uninstall script. You can safely ignore those errors since ipblocklist uses pcftl for blocking IP ranges.

                                          Here's what you can do to narrow down the problem. SSH into your box and navigate to /usr/local/www/packages/ipblocklist/  and run convert-execute.sh.
                                          Make sure your list is working by pasting in the browser. I just checked the level1 example in the package and it seems like the host is now gone. Try http://iblocklist.rlcassidy.net/files/bt_level1.gz as a lvl1 list and see if this works.

                                          -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
                                          • D
                                            darxmurf
                                            last edited by

                                            @tommyboy180:

                                            Are you using Firefox or Chrome?

                                            Tested with chrome and firefox.
                                            Also I tried to mount the CF card in RW mode via ssh. I don't have any warning, I can load lists but still have 0 ip blocked

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