Country Block
-
Thanks for the tip. I'll look at that today. Any thoughts on the reboot problem?
-
@yaw:
Thanks for the tip. I'll look at that today. Any thoughts on the reboot problem?
Check that /usr/local/etc/rc.d/countryblock.sh exists. This is the script that starts the package on boot.
-
It exists. Any more ideas?
-
@yaw:
It exists. Any more ideas?
It sounds like something is changing your FW rules. You may have a package installed that is doing that.
I have extensively tested this package on pfsense 1.2.3 and I consider it stable. Try to eliminate packages or traffic shaping to see if that corrects the issue. -
It must be something to do with the 2.0 beta. I think you're right about the firewall rules. Whenever they change it kills country block. Something must be changing it after country block is running upon reboot.
No more time to work on it, I'll try again some other day.
Thanks!
-
I did some testing on 2.0BETA not that long ago. I was able to keep it running. I should be receiving a laptop here soon. When I get that I can conduct much better testing on the package and perhaps help keep it stable.
-
Sounds good. I'll give it another go once it's been tested a bit more on 2.0.
-
Background:
I installed recently(3 weeks back) pfsense v1.2.3 and installed Country Block 0.1.9 Beta. It was working fine and top spammers were blocked. I added Cron package and it was still working fine. I added few more countries into the list after that and worked fine.
Issue Start:
Two days ago, all of a sudden, I see this Messag on the bottom
"Current Status = RunningYou are blocking 0 Networks
"
and on the top:
"Check the country that you would like to block completely. Currently 15 of 246 selected."
What I have done to date:
1. As of now, it has only Country Block pacakage installed and nothing else.
2. I followed advice in the thread, removed the package, rebooted, reinstalled, rebooted and selected the countries again, committed the countries and enabled it. After that I did Save/Update. I still get the same message:
"
Current Status = RunningYou are blocking 0 Networks
"Any help is greatly appreciated.
looked at the countries.txt file in this folder - /usr/local/www/packages/countryblock/lists and it is empty file. -
First are you running version 1.2.3 or 2.0BETA? Are you running Traffic shaping or a proxy?
What you can do to troubleshoot more is run /usr/local/www/packages/countryblock/execute.sh in a shell and see if there are any errors produced.
Since you had the package working correctly at one point and now you can't get it to run, I would speculate that something changed. Perhaps a setting or adding a program. Something changed.
If you want you could send me your config to my email and I can dig into it more.
-
Tom
Thank you for your quick response. I am running v1.2.3 and not running traffic shaper, proxy or any other package. I ran the script and here is the output
/usr/local/www/packages/countryblock/execute.sh
1 table deleted.
87
10
rm: /tmp/rules.debug.tmp: No such file or directory
rm: /tmp/rules.debug.tmp: No such file or directory
0
… to
200Outside of adding more countries, I have not installed any packages or other changes.
Which file do you want me to send it to you and I will send it you.
-
Email me your backup config file. Go to Diagnostics -> Backup/Restore and download your config.
I will look at your system config and determine why the package is not working for you.
-
Thanks Tom, I have emailed the config file to you.
-
Thanks Tom, I have emailed the config file to you.
I received your config file. I created a new install of pfsense 1.2.3 and used your config. The countryblock package installed right away. After that I slected Korea and pressed commit countries. Then I clicked Enable CountryBlock and clicked Save/Update.
The package worked fine. I wasn't able to find anything wrong with your config or anything.
-
Troubleshooting guide:
Some people have been having issues getting the package to run. Before you think you need to rebuild pfsense try a simple test first.
Go to Firewall -> Rules and pick a random entry. Click the edit button. Don't make any changes! Now click save.
Go back to your package. Click commit countries. Now Ensure Enable is checked and Click Save.It should be running now.
-
Anybody seeing freezes in PFSense 2.0 when committing countries in Country Block???
This is what occurs in the system logs
After a reboot when WebGui freezes…..
Jan 24 08:32:43 php: : Resyncing configuration for all packages.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled.
Jan 24 08:32:43 php: : The Country Block package is missing required dependencies and must be reinstalled. -
Furthermore after I reinstalled Country Block:
Jan 24 09:07:57 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'
Despite seeing this in the logs, Country Block says it is running….
-
BETA 2.0 is hard to work on. It's changing often and I don't have the resources right now to actively work on it. Someone was supposed to send me a laptop for completing a bounty but that never happened.
-
Why dont you spit it out then??
What do you need for working on this?
-
pfsense 2.0
when trying to start countryblock list it just sits there
php: /packages/countryblock/countryblock.php: The command 'rm lists/temp' returned exit code '1', the output was 'rm: lists/temp: No such file or directory'
php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '1', the output was '0 table deleted. 98 17 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 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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205'
Tommy was just wondering could you split the update and start button so that once you download the ipblocklist and the Countryblock list and just need to start the packages it wont connect to the list servers it will just start and use current list.
-
pfsense 2.0
when trying to start countryblock list it just sits there
php: /packages/countryblock/countryblock.php: The command 'rm lists/temp' returned exit code '1', the output was 'rm: lists/temp: No such file or directory'
php: /packages/countryblock/countryblock.php: The command 'sh execute.sh' returned exit code '1', the output was '0 table deleted. 98 17 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 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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205'
Tommy was just wondering could you split the update and start button so that once you download the ipblocklist and the Countryblock list and just need to start the packages it wont connect to the list servers it will just start and use current list.
That's in my next version. I started working on that this weekend. Hopefully I will have the update out soon. I have BETA2.0 loaded on vmware server right now so development is running smoothly right now.