IP-Blocklist
-
Some of the popular blacklists on the internet change very often. Is it possible to add a setting for IP-Blocklist to reload the blacklists automatically at a period specified by the user?
This has already been answered within this Topic. Please search the topic for the answer you are looking for.
-
I was thinking more along the line of user-friendly web-based GUI setting. With that said, setting up a cron job will works for me.
Thanks
-
I was thinking more along the line of user-friendly web-based GUI setting. With that said, setting up a cron job will works for me.
Thanks
I could build a GUI for it but the work is already done for me by the Cron Job package. Perhaps I could integrate. Not sure where I want to go with that. We'll see.
-
I'm running an embedded install of 2.0Beta5 and tried to make the changes listed in this thread in order to get it to work. However, I accidentally forgot a semicolon after the first line I added (require_once('config.inc')) and when I went to refresh the IP-Blocklist page I got the following error in the textbox:
Parse error: syntax error, unexpected T_ECHO in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 5
Since then, I've tried everything I can to get back to a cleanly-installed state: I've undone the edits I made to that file, and I've even uninstalled and reinstalled the IP-Blacklist package, but whatever I do, I now always get that error. How can I get back to a clean slate without completely reinstalling pfsense?
-
I'm running an embedded install of 2.0Beta5 and tried to make the changes listed in this thread in order to get it to work. However, I accidentally forgot a semicolon after the first line I added (require_once('config.inc')) and when I went to refresh the IP-Blocklist page I got the following error in the textbox:
Parse error: syntax error, unexpected T_ECHO in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 5
Since then, I've tried everything I can to get back to a cleanly-installed state: I've undone the edits I made to that file, and I've even uninstalled and reinstalled the IP-Blacklist package, but whatever I do, I now always get that error. How can I get back to a clean slate without completely reinstalling pfsense?
My best advice is to uninstall the package, check the file system (/usr/local/www/ipblocklist) and delete it, and then reboot. That should help you start from a clean slate.
-
I'm running an embedded install of 2.0Beta5 and tried to make the changes listed in this thread in order to get it to work. However, I accidentally forgot a semicolon after the first line I added (require_once('config.inc')) and when I went to refresh the IP-Blocklist page I got the following error in the textbox:
Parse error: syntax error, unexpected T_ECHO in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 5
Since then, I've tried everything I can to get back to a cleanly-installed state: I've undone the edits I made to that file, and I've even uninstalled and reinstalled the IP-Blacklist package, but whatever I do, I now always get that error. How can I get back to a clean slate without completely reinstalling pfsense?
My best advice is to uninstall the package, check the file system (/usr/local/www/ipblocklist) and delete it, and then reboot. That should help you start from a clean slate.
Hmm, after uninstalling I looked in /usr/local/www/ and there was no file or directory ipblocklist. I then rebooted, and reinstalled the package. Same exact error as before. The strange thing, is that if I look at the file /usr/local/www/packages/ipblocklist/ipblocklist_list.php, it's the stock, unmodified form (i.e., correct syntax)!? I'm very confused as to what's going on.
-
I'm running an embedded install of 2.0Beta5 and tried to make the changes listed in this thread in order to get it to work. However, I accidentally forgot a semicolon after the first line I added (require_once('config.inc')) and when I went to refresh the IP-Blocklist page I got the following error in the textbox:
Parse error: syntax error, unexpected T_ECHO in /usr/local/www/packages/ipblocklist/ipblocklist_list.php on line 5
Since then, I've tried everything I can to get back to a cleanly-installed state: I've undone the edits I made to that file, and I've even uninstalled and reinstalled the IP-Blacklist package, but whatever I do, I now always get that error. How can I get back to a clean slate without completely reinstalling pfsense?
My best advice is to uninstall the package, check the file system (/usr/local/www/ipblocklist) and delete it, and then reboot. That should help you start from a clean slate.
Hmm, after uninstalling I looked in /usr/local/www/ and there was no file or directory ipblocklist. I then rebooted, and reinstalled the package. Same exact error as before. The strange thing, is that if I look at the file /usr/local/www/packages/ipblocklist/ipblocklist_list.php, it's the stock, unmodified form (i.e., correct syntax)!? I'm very confused as to what's going on.
Sorry. The directory is /usr/local/www/packages/ipblocklist/
Uninstall and check to make sure that it's deleted.
Try executing the .sh manually in your console if you get the same error again. -
Did we ever resolve the IP Blocklist service having this:
Current Status = NOT running
You are blocking 0 Networks/IPs
Even though the "Enable IP-Blocklist" is checked? It seems to happen after some period of time… haven't figured out how long, usually I check each day and it seems consistent.
I'm using embedded, don't know if its specific to this. (1.2.3-release)
-
Did we ever resolve the IP Blocklist service having this:
Current Status = NOT running
You are blocking 0 Networks/IPs
Even though the "Enable IP-Blocklist" is checked? It seems to happen after some period of time… haven't figured out how long, usually I check each day and it seems consistent.
I'm using embedded, don't know if its specific to this.
embedded doesn't like my package for some reason. Let me take some time to get an embedded environment running to get a fix for you here soon. Thanks.
-
Tommyboy we luv ya man. ;D
Did we ever resolve the IP Blocklist service having this:
Current Status = NOT running
You are blocking 0 Networks/IPs
Even though the "Enable IP-Blocklist" is checked? It seems to happen after some period of time… haven't figured out how long, usually I check each day and it seems consistent.
I'm using embedded, don't know if its specific to this.
embedded doesn't like my package for some reason. Let me take some time to get an embedded environment running to get a fix for you here soon. Thanks.
-
Tommyboy we luv ya man. ;D
Did we ever resolve the IP Blocklist service having this:
Current Status = NOT running
You are blocking 0 Networks/IPs
Even though the "Enable IP-Blocklist" is checked? It seems to happen after some period of time… haven't figured out how long, usually I check each day and it seems consistent.
I'm using embedded, don't know if its specific to this.
embedded doesn't like my package for some reason. Let me take some time to get an embedded environment running to get a fix for you here soon. Thanks.
I'm having trouble getting an embedded vm running. Is there an easy way to get embedded going within vmware?
-
Tommyboy, because the embedded is an image file, I use physdiskwrite to slap the .img file onto a flash disk. I always reference this howto as well:
http://pfsense.phoenixkv.net///tutorials/wrap_install/wrap_install.htm
You would probably have to mount the virtual disk made by vmware as a drive on your PC for physdiskwrite to detect it as a drive/partition. Or something of this nature. I am assuming you're trying to mount it like you would an ISO image and that won't fly. Or maybe you're farther ahead than this. I am not sure.
Tommyboy we luv ya man. ;D
Did we ever resolve the IP Blocklist service having this:
Current Status = NOT running
You are blocking 0 Networks/IPs
Even though the "Enable IP-Blocklist" is checked? It seems to happen after some period of time… haven't figured out how long, usually I check each day and it seems consistent.
I'm using embedded, don't know if its specific to this.
embedded doesn't like my package for some reason. Let me take some time to get an embedded environment running to get a fix for you here soon. Thanks.
I'm having trouble getting an embedded vm running. Is there an easy way to get embedded going within vmware?
-
Hello,
I have install Ip-Blocklist package ver:0.3.1 on my pfsense ver: 1.2.3-RELEASE
I have setting more ip list ( http://iblocklist.charlieprice.org/files/bt_spyware.gz , http://iblocklist.charlieprice.org/files/tbg_bogon.gz etc etc.. )All it's OK from the gui interface install and update.
The problem it's for automic list update :
i have comment out lines 3-14 of this file : /usr/local/etc/rc.d/IP-Blocklist.sh
i have do a cron to execute daly : /usr/local/etc/rc.d/IP-Blocklist.shThe problem is when i execute this batch : /usr/local/etc/rc.d/IP-Blocklist.sh it juste update firewall rules and note my list.
This script not downlad all .gz file and not take a list live update.
Only this script update all lists : ipblocklist.php
And i have add this line to not have memory error : ini_set("memory_limit","128M");Do you have a solution to automatic realy uptade the lists ?
Without solution, i have think to execute the ipblocklist.php with php command line.
Excuse my english .Best regards.
-
Hello,
I have install Ip-Blocklist package ver:0.3.1 on my pfsense ver: 1.2.3-RELEASE
I have setting more ip list ( http://iblocklist.charlieprice.org/files/bt_spyware.gz , http://iblocklist.charlieprice.org/files/tbg_bogon.gz etc etc.. )All it's OK from the gui interface install and update.
The problem it's for automic list update :
i have comment out lines 3-14 of this file : /usr/local/etc/rc.d/IP-Blocklist.sh
i have do a cron to execute daly : /usr/local/etc/rc.d/IP-Blocklist.shThe problem is when i execute this batch : /usr/local/etc/rc.d/IP-Blocklist.sh it juste update firewall rules and note my list.
This script not downlad all .gz file and not take a list live update.
Only this script update all lists : ipblocklist.php
And i have add this line to not have memory error : ini_set("memory_limit","128M");Do you have a solution to automatic realy uptade the lists ?
Without solution, i have think to execute the ipblocklist.php with php command line.
Excuse my english .Best regards.
I think you have a couple options. You can invoke the php via command line with or you can put the fetch code into the .sh on your own. The php code downloads the lists since it's easy to use a loop in php, but by all means put the fetch loop into the shell code.
The memory error is normal. You can safely ignore it. It only happens when you use large lists. You can cut down the size of your lists, increase your php mem size, or just ignore it. Even with the error the script will still execute properly.
-
Hello,
I have the error: /usr/bin/perl: not found when you execute : /usr/local/etc/rc.d/IP-Blocklist.sh ( Or Save/update by webGui )
i have find a simply solution :
ln -s /usr/local/bin/perl /usr/bin/perl
Regards.
-
Hello,
Another little bug:
If you want downlaod a list file as : http://list.iblocklist.com/?list=rynxmrknfjysesjtjlxy&id=xxxxxxx&pin=xxxxxxxxx does not work !
Exemple if you are a http://www.iblocklist.com/ subscriber you have the same url for your block list.Solution:
File : /usr/local/www/packages/ipblocklist/ipblocklist.php
exec("/usr/bin/fetch -o lists $line"); –-> replace by --> exec("/usr/bin/fetch -o lists "$line"");Best reagards.
-
Hello,
Another little bug:
If you want downlaod a list file as : http://list.iblocklist.com/?list=rynxmrknfjysesjtjlxy&id=xxxxxxx&pin=xxxxxxxxx does not work !
Exemple if you are a http://www.iblocklist.com/ subscriber you have the same url for your block list.Solution:
File : /usr/local/www/packages/ipblocklist/ipblocklist.php
exec("/usr/bin/fetch -o lists $line"); –-> replace by --> exec("/usr/bin/fetch -o lists "$line"");Best reagards.
Awesome! I will update ASAP. As far as the perl location, some people have this problem, most don't. I guess I can add both locations for compatability but that's not ideal. Did you get it working?
-
Tommyboy,
Is getting the embedded running in a VM a bi$#h? If it is… Ill loan you a box to test on. Let me know.
-
Tommyboy,
Is getting the embedded running in a VM a bi$#h? If it is… Ill loan you a box to test on. Let me know.
I got it running in VMware but it doesn't detect my virtual NICs for some reason. User NoahVail was supposed to send me a laptop for dev but he hasn't.
I still have plans for fix the package for embedded users so don't worry. -
Tommyboy, I have been using IP-Blocklist for a few weeks and it works great. BTW, I am also using your file manager and country blocker package. All awesome programs. I have one issue, it appears that the level1 lists block banking sites (for me it is tnx.banking.pcfinancial.ca) as well as meta data retrieval from tMDB.org and theTVDB.com for meta <browser>for my mediabrowser in win7 media center. They all work fine if I turn off IP-Blocklist. I tried to create a whitelist with the ip addresses of these sites but still no luck. Can you please give me a little more detail on how to create a whitelist, the format, and which directory to place it in. Also how to see if it is working.
Thanks</browser>