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

    Country Block

    Scheduled Pinned Locked Moved pfSense Packages
    691 Posts 79 Posters 699.9k 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.
    • B
      Bummer
      last edited by

      I know that it's blocked, because when the country is blocked, so is the IP. The only way I can allow the IP to work is by unblocking country India. So when the country of India is blocked, the people using that Ip can't get in, even after I white-list it.

      The only way I can allow them access is to not block the country India.

      1 Reply Last reply Reply Quote 0
      • Q
        Quasar
        last edited by

        @Bummer:

        On my version of pfSense it never has done anything. As long as Couinty Block says it's active, it is. I know that it blocks the countries, I just haven't been able to set it up to whitelist certain IPs. In that respect, it doesn't work.

        I mean, I can't start Country Block. Pressing "save/update" doesn't start CB.
        And how can I solve this problem (I see it every first time I visit 'Country Block' section web-interface):
        '/tmp/rules.debug:79: cannot load "/usr/local/www/packages/countryblock/lists/countries.txt": No such file or directory'

        Status of CB is always "not running".

        Sorry for my english..

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

          @Bummer:

          The only way I can allow them access is to not block the country India.

          Yes the list is not perfect - I just had a case where a German IP got blocked, had to allow European Union to let it access. Reverse IP Check clearly said it's a German IP. Works for me but shows that the lists may have some errors (blocks moving I guess).

          1 Reply Last reply Reply Quote 0
          • Spy AleloS
            Spy Alelo
            last edited by

            Anyone having issues when saving/committing countries? I had a write error and I was able to login to the shell and run 'mount -u -w /' to get country block to save the settings.

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

              @Spy:

              Anyone having issues when saving/committing countries? I had a write error and I was able to login to the shell and run 'mount -u -w /' to get country block to save the settings.

              Are you using embedded?

              -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
              • Spy AleloS
                Spy Alelo
                last edited by

                yeah, but it always worked fine until now.

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

                  Should be good!

                  -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
                  • chpalmerC
                    chpalmer
                    last edited by

                    CIDR.php wont load this evening so the install fails for me…

                    Ill try again later.

                    Triggering snowflakes one by one..
                    Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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

                      @chpalmer:

                      CIDR.php wont load this evening so the install fails for me…

                      Ill try again later.

                      Thank you. I'm having issue with the host. Pfsense does not host binary files anymore so it must be hosted somewhere.
                      Check back in 2 hours.

                      -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
                      • chpalmerC
                        chpalmer
                        last edited by

                        Thanks Tom!  Working now.    :)

                        Triggering snowflakes one by one..
                        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          Tom, you can just send me or Jim P. binaries and we'll get them uploaded.

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

                            @cmb:

                            Tom, you can just send me or Jim P. binaries and we'll get them uploaded.

                            Awesome!
                            I update the binary every so often. I hope that won't be an issue.

                            -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
                            • JSmoradaJ
                              JSmorada
                              last edited by

                              I'm having problems getting Country Block to run. I keep getting the error Current Status = NOT running
                              /tmp/rules.debug:102: cannot load "/usr/local/www/packages/ipblocklist/lists/ipfw.ipfw": No such file or directory
                              You are blocking 0 Networks.

                              PfSense 2.0-RC3 (i386)
                              built on Thu Jul 7 22:58:43 EDT 2011.

                              One country selected and I tried the suggested workarounds (edited a single rule without changing it, saving, etc.). I also rebooted the firewall box…

                              country_block.jpg
                              country_block.jpg_thumb

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

                                I had a simalure issue. I did a simple reinstall of the package and everything worked from that point forward. Also did this issue start after a firmware update? I always have to reinstall Country Block after a firmware update.

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

                                  it was the only package i installed after upgrading to 2.0. i did try reinstalling the package but get the same error.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    cmb
                                    last edited by

                                    @tommyboy180:

                                    Awesome!
                                    I update the binary every so often. I hope that won't be an issue.

                                    No problem.

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

                                      There were a couple of Times I had to uninstall the package, reboot, and then reinstall.

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

                                        http://forum.pfsense.org/index.php/topic,25732.msg173839.html#msg173839

                                        I have a similar problem. I have done a fresh install of 2.0 rc3 and installed country block. On the country block page it says that it is running and blocking networks and when I run /usr/local/etc/rc.d/countryblock.sh from the shell it says that it is running. I tried to ping some ips in the blocked ranges and it is definitely working. But in the syslog it says that it is not running.

                                        root: Countryblock was found not running

                                        1 Reply Last reply Reply Quote 0
                                        • chpalmerC
                                          chpalmer
                                          last edited by

                                          I keep getting this whether countryblock is installed or not on one of my firewalls… and whether or not its running...

                                          php: : The command '/usr/local/pkg/pf/countryblock.sh start' returned exit code '2', the output was 'not running root: Countryblock was found not running Status: 404 Not Found Content-type: text/html No input file specified. 0 table deleted. 87 18 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 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 cat: /usr/local/www/packages/countryblock/interfaces.txt: No such file or directory 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 /usr/local/pkg/pf/countryblock.sh: cannot create /usr/loc

                                          Looks like something left behind from an earlier install…  Any clue how to fix it??      :)

                                          Triggering snowflakes one by one..
                                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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

                                            I'm the same thing but it seems more of an annoyance and doesn't seem to affect the firewall itself.

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