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

    Country Block

    Scheduled Pinned Locked Moved pfSense Packages
    691 Posts 79 Posters 688.1k 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

      This is a message that keeps popping up in system logs. Note Country Block is not installed and I am unable to reinstall it. It looks like chpalmer on the 07/19/2011 has this same issue.

      Jul 21 15:35:41 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. 128 20 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 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 cat: /usr/local/www/packages/countryblock/interfaces.txt: No such file or directory 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 155 156 157 158 159 160 161 162 163 164 165 166 167 168

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

        Ok, so I updated to todays image 07/22/2011 and after the system rebooted I was able to install Country Block. I went and was able to install Country Block on my other system as well after doing the image update to todays as well. Must of been something about the image from 07/21/2011 that Country Block did not like?

        MDP

        1 Reply Last reply Reply Quote 0
        • B
          Bummer
          last edited by

          It's possible, who knows?

          Did you un-install the other packages first? Or did you install County Block on top of the other packages?

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

            I'm having trouble getting the email notifications to work. When I hit the "test" button the firewall throws the following error:

            Warning: fsockopen(): unable to connect to none://smtpout.secureserver.net:80 (Unable to find the socket transport "none" - did you forget to enable it when you configured PHP?) in /usr/local/www/packages/countryblock/class.smtp.php on line 122 Mailer Error: SMTP Error: Could not connect to SMTP host.

            Using 2.0-RC3 (i386)
            built on Fri Jul 22 22:35:57 EDT 2011

            The only other packages I have installed are cron and spamd.

            Thanks,
            Jon

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

              @nipstech:

              I'm having trouble getting the email notifications to work. When I hit the "test" button the firewall throws the following error:

              Warning: fsockopen(): unable to connect to none://smtpout.secureserver.net:80 (Unable to find the socket transport "none" - did you forget to enable it when you configured PHP?) in /usr/local/www/packages/countryblock/class.smtp.php on line 122 Mailer Error: SMTP Error: Could not connect to SMTP host.

              Using 2.0-RC3 (i386)
              built on Fri Jul 22 22:35:57 EDT 2011

              The only other packages I have installed are cron and spamd.

              Thanks,
              Jon

              Try using SSL to connect to your SMTP host.

              -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 tried that. Don't have a self-cert though so if that's necessary I can generate one and try again. I'm trying to smtp through my domain provider who uses authentication and recommends port 80 to get past port blocking when I'm on the road.

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

                  Two issue's

                  1. Having same problem that country block will not install on the latest (Friday 12 August 2011) version of PFsense.  It hangs at :CIDR.php failed.  and then uninstalls the package.  Any solution?

                  2. I have 2 wan connections does Country block work with multi-Wans?

                  Thanks

                  cjb

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

                    Same here. CIDR.php hangs

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

                      Try installing the package again. CIDR.php should not hang this 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
                      • L
                        ljbowdish
                        last edited by

                        I am NEW to this.  We installed pfsense, with no packages.
                        I really need to install country block, because SPAM is killing me.
                        I am running 2.0 - RC1 (i386).
                        It says there is an update available. 
                        Should I install the update before I install country block?
                        How often does the cron job to start country block have to run?
                        I saw the cron job package, is it simple to use??
                        Thank you for your time.

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

                          @ljbowdish:

                          I am NEW to this.  We installed pfsense, with no packages.
                          I really need to install country block, because SPAM is killing me.
                          I am running 2.0 - RC1 (i386).
                          It says there is an update available. 
                          Should I install the update before I install country block?
                          How often does the cron job to start country block have to run?
                          I saw the cron job package, is it simple to use??
                          Thank you for your time.

                          Update your pfsense install. Yours is really outdated. Then install countryblock. No need for a cron job anymore. That was a long time ago.

                          -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
                          • marcellocM
                            marcelloc
                            last edited by

                            @ljbowdish:

                            I really need to install country block, because SPAM is killing me.
                            \

                            try spamd.

                            i'm also porting postfix zombie blocker and spamassassin to pfsense too.

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

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

                              @marcelloc:

                              @ljbowdish:

                              I really need to install country block, because SPAM is killing me.
                              \

                              try spamd.

                              i'm also porting postfix zombie blocker and spamassassin to pfsense too.

                              With countryblock you can cut down on 90% or more of spam. Spam just isn't unsolicited emails, it's also bots on forums, blogs, etc. Countryblock stops all forms of spam at the source rather than a reactive solution. Using IP-Blocklist with countryblock gives pfsense users more spam blocking power as well since I-blocklist.com maintains a spammer 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
                              • B
                                Bummer
                                last edited by

                                Yes, our mail servers already do everything that spamd does, plus more. But after installing Country Block, our spam dropped a lot more, even with the few bugs I've encountered.

                                I'm waiting to update it until I update to the final release of pfSense 2.0, which should be soon. At that point, my spam should drop a lot more.

                                What you don't realise is that a lot of spam comes from good servers that have been hacked as well as computers. Thus spam is always coming from different servers with different bogus email addresses.

                                Believe me, Country Block does work.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  ljbowdish
                                  last edited by

                                  I updated to 2.0 RC3.  I installed the country block package.  I selected the countries to block. 
                                  Did save, update.

                                  now it says

                                  Current Status = NOT running

                                  You are blocking 0 Networks

                                  How do I get it to run??  Do I need to restart teh firewall??

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

                                    @ljbowdish:

                                    I updated to 2.0 RC3.  I installed the country block package.  I selected the countries to block.  
                                    Did save, update.

                                    now it says

                                    Current Status = NOT running

                                    You are blocking 0 Networks

                                    How do I get it to run??  Do I need to restart teh firewall??

                                    I think you rushed to the forums without troubleshooting a little more. Ensure you select your countries and then commit. After you commit Check "Enable Countryblock" and the click Save. That should work for you.

                                    -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
                                    • L
                                      ljbowdish
                                      last edited by

                                      It was the little button that did the trick
                                      I actually didn't see it, until I read your note.
                                      Thank you,

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

                                        No problem. Glad it's working.

                                        -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

                                          Well I am having the same issue with country block again where it hangs on CIDR.php after doing an firmware update. I am at least glad to see other have seen this issue as well.

                                          Anyone still getting this error?

                                          Thanks,

                                          MDP

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

                                            @darklogic:

                                            Well I am having the same issue with country block again where it hangs on CIDR.php after doing an firmware update. I am at least glad to see other have seen this issue as well.

                                            Anyone still getting this error?

                                            Thanks,

                                            MDP

                                            CIDR.php is hosted on my personal web server right now. I am still looking into alternate storage solutions. It may end up getting hosted on pfsense.org here soon.

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