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

Country Block

Scheduled Pinned Locked Moved
pfSense Packages
79
691
629.4k
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.
  • P
    psotnic
    last edited by Jun 27, 2010, 5:56 PM

    RRD Summary and snort

    1 Reply Last reply Reply Quote 0
    • S
      Supermule Banned
      last edited by Jun 27, 2010, 6:00 PM

      Make a backup and then uninstall Snort. Test again.

      1 Reply Last reply Reply Quote 0
      • P
        psotnic
        last edited by Jun 27, 2010, 6:14 PM

        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 Jun 27, 2010, 7:00 PM

          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 Jun 27, 2010, 8:02 PM

            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 Jun 27, 2010, 8:23 PM

              ;)

              1 Reply Last reply Reply Quote 0
              • R
                Rune
                last edited by Jul 3, 2010, 4:20 AM

                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 Jul 3, 2010, 5:44 AM

                  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 Jul 3, 2010, 7:41 AM

                    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 Jul 3, 2010, 5:07 PM

                      @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 Jul 5, 2010, 5:23 AM

                        @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
                        • N
                          netritious
                          last edited by Jul 8, 2010, 2:03 PM Jul 8, 2010, 1:53 PM

                          Nice package and great addition to pfSense!

                          I did have some trouble with the package starting, and after a little research found the problem in execute.sh:

                          This line:

                          export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]'`
                          

                          I changed to:

                          export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]\{1,2\}'`
                          

                          The service would fail to start otherwise. Running execute.sh (/usr/local/etc/rc.d/countryblock.sh) manually from CLI produced the error:

                          export: 0: bad variable name
                          

                          and that's because the line number is actually 10 in my /tmp/rules.debug, but due to the regular expression grep was returning 1\n0 (one newline zero), so $t was being assigned "0" instead of "10."

                          EDIT: Are my changes to execute.sh persistent? Eg, if I reboot will I need to edit again?

                          On another note the countryipblock.net web site states that no automated process may be used to download the list and may not be redistributed. (see Policies Affecting Access and Use of the Website and Database) Not that it's really any of my business and I am not affiliated with countryipblocks.net, but I thought I would mention it since it's not exactly visible on the web site unless you look for it. I don't know if this affects the package or not. (I hope not!)

                          Anyway, thanks Tom for this awesome package!

                          -Rich

                          1 Reply Last reply Reply Quote 0
                          • 7 days later
                          • M
                            motersho
                            last edited by Jul 15, 2010, 7:38 PM

                            Nice package and great addition to pfSense!

                            I did have some trouble with the package starting, and after a little research found the problem in execute.sh:

                            This line:
                            Code:
                            export t=grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]'

                            I changed to:
                            Code:
                            export t=grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]\{1,2\}'

                            The service would fail to start otherwise. Running execute.sh (/usr/local/etc/rc.d/countryblock.sh) manually from CLI produced the error:

                            Code:
                            export: 0: bad variable name

                            and that's because the line number is actually 10 in my /tmp/rules.debug, but due to the regular expression grep was returning 1\n0 (one newline zero), so $t was being assigned "0" instead of "10."

                            EDIT: Are my changes to execute.sh persistent? Eg, if I reboot will I need to edit again?

                            On another note the countryipblock.net web site states that no automated process may be used to download the list and may not be redistributed. (see Policies Affecting Access and Use of the Website and Database) Not that it's really any of my business and I am not affiliated with countryipblocks.net, but I thought I would mention it since it's not exactly visible on the web site unless you look for it. I don't know if this affects the package or not. (I hope not!)

                            Anyway, thanks Tom for this awesome package!

                            -Rich

                            I had the same issue as netritious and his fix worked for me.

                            1 Reply Last reply Reply Quote 0
                            • N
                              NoahVail
                              last edited by Jul 16, 2010, 2:12 AM

                              Same issue as as motersho and netritious, the grep rewrite fixed me as well.

                              VERY grateful.  You got me past a head banging problem.

                              NV

                              1 Reply Last reply Reply Quote 0
                              • T
                                tommyboy180
                                last edited by Jul 18, 2010, 10:34 AM

                                @netritious:

                                Nice package and great addition to pfSense!

                                I did have some trouble with the package starting, and after a little research found the problem in execute.sh:

                                This line:

                                export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]'`
                                

                                I changed to:

                                export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]\{1,2\}'`
                                

                                The service would fail to start otherwise. Running execute.sh (/usr/local/etc/rc.d/countryblock.sh) manually from CLI produced the error:

                                export: 0: bad variable name
                                

                                and that's because the line number is actually 10 in my /tmp/rules.debug, but due to the regular expression grep was returning 1\n0 (one newline zero), so $t was being assigned "0" instead of "10."

                                EDIT: Are my changes to execute.sh persistent? Eg, if I reboot will I need to edit again?

                                On another note the countryipblock.net web site states that no automated process may be used to download the list and may not be redistributed. (see Policies Affecting Access and Use of the Website and Database) Not that it's really any of my business and I am not affiliated with countryipblocks.net, but I thought I would mention it since it's not exactly visible on the web site unless you look for it. I don't know if this affects the package or not. (I hope not!)

                                Anyway, thanks Tom for this awesome package!

                                -Rich

                                Excellent! I have been working on some fixes and you have saved me some time. This will be in my next commit. Your changes to the script will be persistent.

                                Thank you for pointing out the notice that I was not aware of. I will do some work in the next couple of days (hopefully) and make this package independent.

                                Thanks Rich!

                                -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
                                • 7 days later
                                • T
                                  tommyboy180
                                  last edited by Jul 25, 2010, 7:40 PM Jul 25, 2010, 7:32 PM

                                  New Version released. Version 1.3 is out!

                                  Fixed GUI menu tile images
                                  Working on pfsense BETA 2 x86 and x64 now
                                  Fixed a rare glitch - Thank you netritious!
                                  Added a whitelist feature
                                  also removed 'bogon' from the list to prevent this ->http://forum.pfsense.org/index.php/topic,26226.0.html from happening

                                  Thanks for your support all.

                                  -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 Jul 25, 2010, 8:10 PM

                                    /tmp/rules.debug:117: cannot load "/usr/local/www/packages/countryblock/countries-white.txt": No such file or directory

                                    I get this after update….

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Supermule Banned
                                      last edited by Jul 25, 2010, 9:11 PM

                                      Whitelist.php not found….. Who the hell has fucked up this package??? GRRRRRRRRRRRR!!!!#¤%&

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tommyboy180
                                        last edited by Jul 26, 2010, 2:38 AM

                                        Hey Supermule,
                                        I think you grabbed the update a little to fast. When I updated the package two files were not uploaded right away. Completely uninstall the package and re-install it for me please.

                                        I think you will be pleased.

                                        -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
                                          DigitalJer
                                          last edited by Jul 26, 2010, 4:29 AM

                                          Looking great tommyboy180!

                                          ty :)

                                          –------------------------------------------------
                                          2.4.3-RELEASE (amd64)
                                          built on Mon Mar 26 18:02:04 CDT 2018
                                          FreeBSD 11.1-RELEASE-p7
                                          VM in ESXi 5.5
                                          1 x 1000baseTX (WAN)
                                          1 x 1000baseTX (LAN)

                                          1 Reply Last reply Reply Quote 0
                                          80 out of 691
                                          • First post
                                            80/691
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received