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

    Country Block

    Scheduled Pinned Locked Moved pfSense Packages
    691 Posts 79 Posters 762.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.
    • D
      darklogic
      last edited by

      g4m3c4ck

      Not sure how to go about doing this? ???

      Thanks,

      Matt

      1 Reply Last reply Reply Quote 0
      • K
        kapara
        last edited by

        Could it be setup so that those rules were applied at the end so that any allows above it in the firewall rules would allow the traffic.  I am ssuming 2 things of course.  1. That the rules apply top down… 2. That the package can be configured as such.

        Great package when I learned a couple of painful lessons....  ;D

        Skype ID:  Marinhd

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

          @darklogic:

          g4m3c4ck

          Not sure how to go about doing this? ???

          Thanks,

          Matt

          Right now there is no really decent way to remove IPs from the countryblock table. I will have to make a whitelist addon for the package. Hopefully I can sit down and do that soon. I just haven't had the time.

          -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
            Supermule Banned
            last edited by

            This package has singlehandedly cut down 99,9% of all attemps to hack my SQL databases…. Now I just need the IE fix. Then I will have to promote Tommy to a godlike status.....:D

            Thx buddy. This is absolutely one of the best features of PFSense !!

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

              The hard way of solving your problem would be to ssh into your router or manually go to the computer and goto shell.

              cd /usr/local/www/packages/countryblock/lists

              cp countries.txt countries.txt.bak

              nano countries.txt

              then find the ip range in question and remove

              Keep in mind changes in the country block package will revert these steps.

              1 Reply Last reply Reply Quote 0
              • P
                psotnic
                last edited by

                Encountered an error in the system logs:

                php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '2', the output was '0 table deleted. export: 4: bad variable name'

                Country Block keeps on saying "Current Status = NOT running", pkg reinstall didnt do the trick.
                (pfSense 2.0-BETA3 built on Fri Jun 25 16:38:53 EDT 2010)

                1 Reply Last reply Reply Quote 0
                • S
                  Supermule Banned
                  last edited by

                  Is this in Firefox or IE?

                  @Novak:

                  Encountered an error in the system logs:

                  php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '2', the output was '0 table deleted. export: 4: bad variable name'

                  Country Block keeps on saying "Current Status = NOT running", pkg reinstall didnt do the trick.
                  (pfSense 2.0-BETA3 built on Fri Jun 25 16:38:53 EDT 2010)

                  1 Reply Last reply Reply Quote 0
                  • P
                    psotnic
                    last edited by

                    Firefox.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Supermule Banned
                      last edited by

                      Are you running any other packages on the box?

                      1 Reply Last reply Reply Quote 0
                      • P
                        psotnic
                        last edited by

                        RRD Summary and snort

                        1 Reply Last reply Reply Quote 0
                        • S
                          Supermule Banned
                          last edited by

                          Make a backup and then uninstall Snort. Test again.

                          1 Reply Last reply Reply Quote 0
                          • P
                            psotnic
                            last edited by

                            after deleting snort and reinstalling country block more errors:

                            Jun 27 20:10:42 php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '2', the output was '0 table deleted. export: 4: bad variable name'
                            Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                            Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                            Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                            Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                            Jun 27 20:07:53 php: /pkg_mgr_install.php: Beginning package installation for Country Block.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Supermule Banned
                              last edited by

                              Can you make a clean install of PFsense and try again??? Just to exclude a corrupted install….

                              1 Reply Last reply Reply Quote 0
                              • P
                                psotnic
                                last edited by

                                Now that you mentioned it, I did a fresh install a few hours ago, BUT I used an old config file from BETA-1 release so this could be the issue. I will reinstall tommorow and try country block before restoring the old config file again.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Supermule Banned
                                  last edited by

                                  ;)

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Rune
                                    last edited by

                                    Tommy - Get your butt moving man. We need to be able to edit the block lists. I know your just slacking at home.  :o

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

                                      lol. I know. It's hard to find time to sit down and get it done when I have other projects that require my attention. I'll sit down tonight and make some progress. Thanks for the motivation.

                                      -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
                                      • R
                                        Rune
                                        last edited by

                                        You know it browski. I really have to wonder if the tree raddled your brains.  :o

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          ryates
                                          last edited by

                                          @Novak:

                                          after deleting snort and reinstalling country block more errors:

                                          Jun 27 20:10:42 php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '2', the output was '0 table deleted. export: 4: bad variable name'
                                          Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                          Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                                          Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                          Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                                          Jun 27 20:07:53 php: /pkg_mgr_install.php: Beginning package installation for Country Block.

                                          New install on updated v 2.0 gives same result as seen by Novak. Reinstalled as check against bad install but no go…

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

                                            @ryates:

                                            @Novak:

                                            after deleting snort and reinstalling country block more errors:

                                            Jun 27 20:10:42 php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '2', the output was '0 table deleted. export: 4: bad variable name'
                                            Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                            Jun 27 20:09:04 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                                            Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm errorOUT.txt' returned exit code '1', the output was 'rm: errorOUT.txt: No such file or directory'
                                            Jun 27 20:08:58 php: /packages/countryblock/countryblock.php: The command 'rm -R /usr/local/www/packages/countryblock/lists' returned exit code '1', the output was 'rm: /usr/local/www/packages/countryblock/lists: No such file or directory'
                                            Jun 27 20:07:53 php: /pkg_mgr_install.php: Beginning package installation for Country Block.

                                            New install on updated v 2.0 gives same result as seen by Novak. Reinstalled as check against bad install but no go…

                                            I have the same problem!! :(

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