Country Block
-
Yeah, execute.sh had the problem too. :) After fixing it everything worked again. In pfSense 1.2.3 that is
-
Hey Tommy. It says
Current Status = Running
You are blocking 0 Networks
yet says Currently 251 of 252 selected.
Kind of funny if you ask me :)
Edit:
Looked into it a little more.pfctl -T show -t countryblock |grep -v -c Z
pfctl: Table does not exist.After looking which tables existed in pfctl mine showed only
countryblockW
-
Okay. It should be fixed. I just verified it working on 1.2.3 and 2.0BETA 5.
Go ahead and uninstall your current package and then install the package. If it isn't working when you re-install then reboot. I had to do that for 1.2.3 for some reason.
Thanks for notifying me it wasn't working.
-
**Current Status = Running
You are blocking 71147 Networks**
Looks like your magic has worked!!!!!! Installed and running good on 2.0 beta 5
Thanks for the quick update!!!!!!!! Awesome!!!!!!!
-
Mine still has same issue.
Current Status = Running
You are blocking 0 Networks
I have uninstalled it and reinstalled it and rebooted
-
Ok I found out why I was having problems and others were not. I am running pfSense webGUI on an non-standard port.
This line of code is the culprit to my problem.
exec("fetch -o lists/temp http://127.0.0.1/packages/countryblock/CIDR/{$line}_cidr.txt");
Using this method will also cause problems with people using https with the webgui as well.
I changed it to this to fix it
exec("cat CIDR/{$line}_cidr.txt >> lists/countries.txt");
Using fetch to get a local file was kind of ridiculous anyways but I know why you did it ;D
-
It is much quicker loading Tom :)
Thx mate!
-
Ok I found out why I was having problems and others were not. I am running pfSense webGUI on an non-standard port.
This line of code is the culprit to my problem.
exec("fetch -o lists/temp http://127.0.0.1/packages/countryblock/CIDR/{$line}_cidr.txt");
Using this method will also cause problems with people using https with the webgui as well.
I changed it to this to fix it
exec("cat CIDR/{$line}_cidr.txt >> lists/countries.txt");
Using fetch to get a local file was kind of ridiculous anyways but I know why you did it ;D
Yeah, I did that to cut down on bandwidth usage for countryipblocks but I never thought about https. I will update the package when I get home to correct this issue. Thank you for posting the fix.
-
No problem! I enjoyed figuring it out. ;)
-
I pushed the update and tested on 2.0BETA 5. I left a little something in the source for you g4m3c4ck.
-
Thanks man I appreciate it. Hopefully I can find more time to be more active in the community.
-
Thanks man I appreciate it. Hopefully I can find more time to be more active in the community.
It's a lot of fun. You get to create packages that are used to help other people. All credit goes to you but other people also get to build off of your work.
Right now I'm working on a dspam package. If you want you could write the GUI for it while I do the back end. I can start you off with what I have. Let me know if you want to.
-
Right now I'm working on a dspam package. If you want you could write the GUI for it while I do the back end. I can start you off with what I have. Let me know if you want to.
Is that the same as the spamd package that's already in the list?
-
@Bai:
Right now I'm working on a dspam package. If you want you could write the GUI for it while I do the back end. I can start you off with what I have. Let me know if you want to.
Is that the same as the spamd package that's already in the list?
No, they are different products.
-
What's the difference?
How will yours work?
-
I just looked over the package a bit and it seems like it could be useful to some. However, I have move all my mail use to the cloud so I am not sure how I could test anything.
Do you have a 2.0 Developer VM I could copy?
-
I just looked over the package a bit and it seems like it could be useful to some. However, I have move all my mail use to the cloud so I am not sure how I could test anything.
Do you have a 2.0 Developer VM I could copy?
I just develop on regular 2.0 BETA5.
-
Figured I would give this package try on the latest 2.0beta5 build. Package says its running and i can confirm ip networks using pfctl. In my system log, I'm seeing the below errors tho:
Feb 4 16:14:53 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' Feb 4 16:14:41 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' Feb 4 16:14:41 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'
the files and directories are there, wondering if its because how the path is setup for the commands
BTW, great work on this package!
-
I wanted to report that following the instructions in this thread, I was successfully able to install Country Block in 1.2.3. and the system is currently 14,384 networks (20 countries).
I also wanted to say "thank you" because pfSense with Country Block stopped a problem that I'd been having for quite some time. I run a bulletin board system (yep, we're still out there) that is available via telnet and my poor BBS was just getting absolutely hammered by systems from all over the world such as Egypt, Turkey, UAE, Peru, India, Korea, China, and Russia just to name a few. Since I installed pfSense and Country Block, things have been "normal".
Thanks for all the hard work you've put into Country Block. It's made a world of difference here!
-
I wanted to report that following the instructions in this thread, I was successfully able to install Country Block in 1.2.3. and the system is currently 14,384 networks (20 countries).
I also wanted to say "thank you" because pfSense with Country Block stopped a problem that I'd been having for quite some time. I run a bulletin board system (yep, we're still out there) that is available via telnet and my poor BBS was just getting absolutely hammered by systems from all over the world such as Egypt, Turkey, UAE, Peru, India, Korea, China, and Russia just to name a few. Since I installed pfSense and Country Block, things have been "normal".
Thanks for all the hard work you've put into Country Block. It's made a world of difference here!
I'm glad to hear it. That's exactly what countryblock is for, reducing SPAM and unwanted traffic. Thank you for your support!