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

    Country Block

    pfSense Packages
    79
    691
    663.3k
    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

      Version 1.5 Released

      Changes:

      • Added embedded compatibility.

      • Verified working with traffic shaping settings

      • Added interface choices - just for you jward!

      • Fixed bug with country Barbados - Thank you tci!

      Warning: You need to select the interfaces that this will apply to before you run it. I Highly Recommend selecting all interfaces.
      If you run into a problems let me know.
      deltaend: I fixed the 404 problem and tested pfsense w/ traffic shaping. I was able to have it working w/ traffic shaping enabled so let me know if you run into any problems.

      Thank you all for your patience with updates.

      1.5.jpg
      1.5.jpg_thumb

      -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
      • J
        jward
        last edited by

        Thanks Tommy, will take a look.

        Jonathan Ward
        pfSense 1.2.3 - HP DL360 G4

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

          Aint this a wrong path for the new 0.1.5 edition of Country block??

          /usr/local/etc/rc.d/countryblock.sh

          I use this…

          /usr/local/www/packages/countryblock/countryblock.sh

          @darklogic:

          Thanks for all your help. :)

          I did your suggestion with the uncheck Bogon and added the cron package and applied the command you specified. All seems to be working well with the Country Block package now. I rebooted my firewall and all came up ok. I did notice I could access some Chinese websites with extensions of .cn

          Does the Country Block work for both IP's and DNS naming or just IP?

          A On the cron job I made the new job entry with this criteria and maybe you have some suggestions or minor tweaks to it.

          Cron Job:

          Minute: 0
          Hour: *
          Mday: *
          Month: *
          Wday: *
          Who: root
          Command:  /usr/local/etc/rc.d/countryblock.sh

          1 Reply Last reply Reply Quote 0
          • B
            Bai Shen
            last edited by

            How does one update a package in pfSense?  Is it automatic or do I need to do something?

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

              @tommyboy180:

              Version 1.5 Released

              Changes:

              • Added embedded compatibility.

              • Verified working with traffic shaping settings

              • Added interface choices - just for you jward!

              • Fixed bug with country Barbados - Thank you tci!

              Warning: You need to select the interfaces that this will apply to before you run it. I Highly Recommend selecting all interfaces.
              If you run into a problems let me know.
              deltaend: I fixed the 404 problem and tested pfsense w/ traffic shaping. I was able to have it working w/ traffic shaping enabled so let me know if you run into any problems.

              Thank you all for your patience with updates.

              Hmm.  I updated and now it won't start.  I do have a red error message stating "Warning! No Interfaces Selected Click" and yet when I click the box I get a 404 requesting a link to hxxp://xxx.xxx.xxx.xxx/packages/countryblock/countryblock_if.php which doesn't exist..  Is there a different page I go to select which interface?  Like you recommended, I'm fine with all of them for now.  I just checked the directory packages\countryblock and I do not see a countryblock_if.php file listed there.

              Having an individual log just for this would be awesome though some day - no rush - volunteer work is always outstanding.  Thanks dude - this package really has been well worth the pfsense experience.

              1 Reply Last reply Reply Quote 0
              • X
                XIII
                last edited by

                +1 on the interface issue, does it still work without selecting one?

                Thanks for the work tommyboy180

                -Chris Stutzman
                Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
                Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
                freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
                Check out the pfSense Wiki

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

                  Supermule

                  • It's "/usr/local/etc/rc.d/countryblock.sh"  "countryblock/countryblock.sh" does not exist. If you are making a cron job then use "/usr/local/etc/rc.d/countryblock.sh"

                  To update the package

                  • Go to installed packages and uninstall countryblock

                  • Now go to the main packages page and install countryblock

                  mgc6288

                  • uninstall countryblock completely and re-install

                  XIII

                  • Thank you!

                  • It does not work without selecting your interfaces, I will be pushing 1.6 tonight to tomorrow morning to address this

                  -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

                    Version 1.6 is now available!

                    Changes:

                    • All interfaces are selected/applied by default (no action required by users)

                    • Modified Usage description to be more verbose

                    To upgrade uninstall countryblock and re-install.

                    -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

                      Just an idea…..

                      Why not sort the countries in their respective part of the world instead?

                      Like Europe, North America, South America, Asia asf....The 7 continents. Thereby making it a lot easier to search and block.

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

                        @Supermule:

                        Just an idea…..

                        Why not sort the countries in their respective part of the world instead?

                        Like Europe, North America, South America, Asia asf....The 7 continents. Thereby making it a lot easier to search and block.

                        Thank you for the suggestion! Alphabetically is the most efficient way to sort a huge list, it's sort of a defacto standardization that I think everyone has become accustomed to. It's also easier to maintain a large list like this in this order. I will note this for a future release.
                        Keep the suggestions coming!

                        -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
                        • J
                          jward
                          last edited by

                          Hi Tommy,

                          I've got some ideas for the UI and process flow that might help - let me know if you're interested and I'll put some mock-up screens together.

                          Jon.

                          Jonathan Ward
                          pfSense 1.2.3 - HP DL360 G4

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

                            @jward:

                            Hi Tommy,

                            I've got some ideas for the UI and process flow that might help - let me know if you're interested and I'll put some mock-up screens together.

                            Jon.

                            I am very interested, let's see what you have in mind.

                            -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
                            • N
                              NoahVail
                              last edited by

                              mgc6288

                              • uninstall countryblock completely and re-install

                              That fixed it for me.
                              Thanks.
                              NV

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

                                @tommyboy180:

                                Version 1.6 is now available!

                                Changes:

                                • All interfaces are selected/applied by default (no action required by users)

                                • Modified Usage description to be more verbose

                                To upgrade uninstall countryblock and re-install.

                                thanks for the patience.  Duh, I should have realized maybe uninstalling should have been done first.  Works like a charm now.

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

                                  Just an FYI. Since version 1.5 I have been having trouble with keeping Country Block running. I am running cron and have not made any changes to firewall rules. I uninstall the package numerous times and restarted the system. I can get CountryBlock to start ok, but it will only run for a few hours and then shut down. I have also uninstalled and reinstalled cron.

                                  Is anybody else getting this? I noticed started happeing when I install 1.5 and now 1.6.

                                  Thanks,

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

                                    Not reporting anything of that kind :)

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

                                      @darklogic:

                                      Just an FYI. Since version 1.5 I have been having trouble with keeping Country Block running. I am running cron and have not made any changes to firewall rules. I uninstall the package numerous times and restarted the system. I can get CountryBlock to start ok, but it will only run for a few hours and then shut down. I have also uninstalled and reinstalled cron.

                                      Is anybody else getting this? I noticed started happeing when I install 1.5 and now 1.6.

                                      Thanks,

                                      The only real difference between 1.5 and 1.6 is a new file is included. The file is interfaces.txt and it contains "any" by default.
                                      The difference between 1.4 and 1.5 is the interfaces can be specified.
                                      Nothing has changed with how the package is run or how it starts.

                                      Are you getting any errors?

                                      -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
                                        darklogic
                                        last edited by

                                        no errors, that is why it is odd. It will start just fine and then shut down for no reason. I will try to uninstall and reboot and reinstall again and see if that helps. I have tried this a few times now. I will try again,

                                        Thanks,

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

                                          @darklogic:

                                          Just an FYI. Since version 1.5 I have been having trouble with keeping Country Block running. I am running cron and have not made any changes to firewall rules. I uninstall the package numerous times and restarted the system. I can get CountryBlock to start ok, but it will only run for a few hours and then shut down. I have also uninstalled and reinstalled cron.

                                          Is anybody else getting this? I noticed started happeing when I install 1.5 and now 1.6.

                                          Thanks,

                                          I've been having the same issue.  I removed countryblock from cron and now it runs…I just check every once in a while.  What I did is after I installed the Cron package, I created an auto start like this:

                                          minute: 0
                                          hour: *
                                          mday: *
                                          month: *
                                          wday: *
                                          who: root
                                          command: /usr/local/etc/rc.d/countryblock.sh

                                          Now 1.6 (can't confirm 1.5 as the update was too quick) will say "NOT running" after a while...

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

                                            @mgc6288:

                                            I've been having the same issue.  I removed countryblock from cron and now it runs…I just check every once in a while.  What I did is after I installed the Cron package, I created an auto start like this:

                                            minute: 0
                                            hour: *
                                            mday: *
                                            month: *
                                            wday: *
                                            who: root
                                            command: /usr/local/etc/rc.d/countryblock.sh

                                            Now 1.6 (can't confirm 1.5 as the update was too quick) will say "NOT running" after a while...

                                            Ditto  and 1.5 did this to me also…    ;)

                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.