PfBlocker
-
re: http://www.countryipblocks.net/
April 2nd, 2012
MAJOR ANNOUNCEMENT
Country IP Blocks is excited to announce we are about to release our new paid services model. We are anticipating the completion of our new control panels, for premium members, sometime this week. The only additional programming necessary will be the embedded shopping cart. We are still looking for an appropriate shopping cart and would be grateful to hear your ideas.
Answers to frequently asked questions:
Premium memberships will run $179 a year per license.
Premium members will have access to our daily updated database.
Premium members will be able to generate their access control lists through their control panel and, if they choose to do so, they can store their selections in the Country IP Blocks database and we will auto-generate their specific data each time we update the database. This data will be available each day through a user-specific URL. In other words, you make your country and format choices, set it and forget it, and we create your data for you.We will be offering a 10% discount to the first 100 businesses or individuals who contact us.
For those planning on using our soon to be released API, our expected pricing is $299 a year per license or $39 per month.
We will continue to offer free services. These will include access to network information 30 to 60 days old (upgrade to a premium membership and get access to the most current data).
Free services will no longer include access to format specific text files. But premium members will have the ability to auto-generate their own downloadable files.
Free services will also include access to our searchable IP database.
What will it mean for pfBlocker?
-
I want to thank marcelloc for a wonderful new package and all his hard work.
I wanted to ask do you think it would be possible to add in an option on the Lists tab, when adding a new one, then under Update Frequency, would it be possible to add an option for maybe once a week? For example one thing I use this feature for is to block ads and stuff from the mvps hosts.txt file they have available for download. It isn't really a big deal to get the absolute latest spam blocks for me, so that's why I ask if once a week could be done.
-
Hello. I'm new to this package. I would like to clear something up.
If just select Firewall - pfblocker - North America and only select United States, permit inbound and save.
Will that just allow US IP's to connect and deny every other country ?
That's the way I'm looking at it anyway.
Oh, a follow-up question. Linuxtracker has been talking about other Spammers IP's. The lists section want a local file or URL in .txt or .gz format. Is there a good URL for this that is safe ?
Thanks…great work.
-
The lists from linuxtracker are in gz format.
To allow only us ips on your firewall but not allowing all access to it, change action to alias only and apply it as source alias for your Nat/rules
-
Linuxtracker has been talking about other Spammers IP's. The lists section want a local file or URL in .txt or .gz format. Is there a good URL for this that is safe ?
Marcelloc keeps a copy of the lists here.
http://e-sac.siteseguro.ws/pfBlocker/lists/Since I was skiddish about publishing my personal host, marcelloc stepped up and graciously offered his own.
His links can be used for live updates and he uploads updated versions, when time permits.
My own latest copies are dated 4/12. If you want them, I can attach them here or pasetbin the contents.
Sidenote:
I've discovered that dropbox direct download links work well in pfBlocker.
I've been using one for an auto-generated malware list I'm testing.I may use that to publish the spam lists.
The dropbox app would push out updates, as soon as I make them available.I'll consider it tomorrow, after some sleep.
. -
For anyone who wants live updates to the most recent spam lists, here are dropbox links to them.
pfBlocker should pull right from these links.http://dl.dropbox.com/u/71477228/P2P_0-68.txt.gz
http://dl.dropbox.com/u/71477228/P2P_0-68.txt.gz
http://dl.dropbox.com/u/71477228/P2P_194-255.txt.gz
http://dl.dropbox.com/u/71477228/Non-US_Spam_IPs.txt.gz
http://dl.dropbox.com/u/71477228/Worst_Spammers.txt.gz
http://dl.dropbox.com/u/71477228/CorporateSpam.txt.gzI tend to update my lists about 2x week. The updated lists hit dropbox ~11:30pm EDT.
I'll add some details/comments to the top of the files this week.
I also have a malware list that seems to be behaving.
It targets 0day threats and gets wiped every day at midnight. After that, new IP ranges are added each hour.
I need to review it again. If I feel good about it, I'll post a live update link.
. -
Here are the Malware Lists that I've found to be safe to use.
(This is after testing a ½doz other lists that would blacklist urls for stupid reasons.)I put the addresses in pfBlocker list section and let them update hourly. You may prefer less freq updates.
This one is from Malware Domain List. I began testing it in February against known 0day threats.
At this point I have a lot of confidence in it.
http://www.malwaredomainlist.com/hostslist/ip.txtI also have two botnet lists that I've been running for a month or so.
http://www.abuse.ch/zeustracker/blocklist.php?download=ipblocklist
https://spyeyetracker.abuse.ch/blocklist.php?download=ipblocklistThere are other lists I'm evaluating but am not comfortable releasing them as yet.
-
LinuxTracker,
Thanks for your contributions :)
-
I also use the following and they seem fine:
http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt (this blocks known russian business network, shadowserver command and control servers, dhsield and spamhaus.
http://rules.emergingthreats.net/blockrules/compromised-ips.txt (compromised hosts doing nastiness)If you choose one try the top one. Static blacklists are useful but many setups moving towards a more scored reputation rating for domains, IPs etc.
http://www.damballa.com/downloads/r_pubs/WP_Blacklists_Dynamic_Reputation.pdf
http://www.damballa.com/solutions/damballa_firstalert.phpHere are the Malware Lists that I've found to be safe to use.
(This is after testing a ½doz other lists that would blacklist urls for stupid reasons.)I put the addresses in pfBlocker list section and let them update hourly. You may prefer less freq updates.
This one is from Malware Domain List. I began testing it in February against known 0day threats.
At this point I have a lot of confidence in it.
http://www.malwaredomainlist.com/hostslist/ip.txtI also have two botnet lists that I've been running for a month or so.
http://www.abuse.ch/zeustracker/blocklist.php?download=ipblocklist
https://spyeyetracker.abuse.ch/blocklist.php?download=ipblocklistThere are other lists I'm evaluating but am not comfortable releasing them as yet.
-
Oh and on these lists always set to log just like any countries you block. This makes it easier to identify blocked badness but also determine if something isn't working because of a blocklist (i.e I couldn't get to cuckoobox.org because site was in a country I had blocked at the time and I saw in logs blocked Syn packets trying to get to it).
-
I'm not sure why, but as a test I manually created a run to match one of the aliases and it worked.
Any ideas on what's happening and how to fix it?pfSense 2.0.1 i386 release, clean install with cron being the only other package installed.
Thanks,
Jon -
@nipstech:
I'm not sure why, but as a test I manually created a run to match one of the aliases and it worked.
Any ideas on what's happening and how to fix it?You mean you could reach an ip that is blocked?
If so, check rule action you selected for the list.
Deny inbound is to block access from blocked ip to you site
Deny outbound is to block access from your network to blocked ip.att,
Marcello Coutinho -
I needed a list of Yahoo's US Email Servers.
I'm getting a lot of spam off of Yahoo's networks and want to exclude Yahoo's US Email servers from my auto-gererated blacklists.I found lists of all Yahoo IPs here:
http://public.yahoo.com/~carloc/ymail.htmland lists of Yahoo Email Servers here:
http://public.yahoo.com/~vineet/ip.txt
http://public.yahoo.com/~vineet/subnet.txtI extracted the US addresses from the first list and a copy is here:
http://dl.dropbox.com/u/71477228/YahooIPsUS.txt -
No, pfblocker wasn't creating any rules. I had to manually enter them. Then, for no apparent reason, the automatically created rules appeared. ???
@nipstech:
I'm not sure why, but as a test I manually created a run to match one of the aliases and it worked.
Any ideas on what's happening and how to fix it?You mean you could reach an ip that is blocked?
If so, check rule action you selected for the list.
Deny inbound is to block access from blocked ip to you site
Deny outbound is to block access from your network to blocked ip.att,
Marcello Coutinho -
I also use the following and they seem fine:
http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt (this blocks known russian business network, shadowserver command and control servers, dhsield and spamhaus.
http://rules.emergingthreats.net/blockrules/compromised-ips.txt (compromised hosts doing nastiness)If you choose one try the top one. Static blacklists are useful but many setups moving towards a more scored reputation rating for domains, IPs etc.
http://www.damballa.com/downloads/r_pubs/WP_Blacklists_Dynamic_Reputation.pdf
http://www.damballa.com/solutions/damballa_firstalert.phpThose look promising. I'll plug 'em in over the next week and see how they do.
-
I found a bug in the parsing of lists. If the list in the IP format instead of CIDR (xx.xx.xx.xx without / xx) the first line is lost from the list. If the list contains one row the entire list is ignored.
Tested on text format. -
Interesting. I'm having difficulty replicating. Can you post a sample of the list you're using.
-
The code looks for a space/or <enter>after the ip address, can you check if the list you want to apply has it?
foreach ($url_list as $line){ # CIDR format 192.168.0.0/16 if (preg_match("/(\d+\.\d+\.\d+\.\d+\/\d+)/",$line,$matches)){ ${$alias}.= $matches[1]."\n"; $new_file.= $matches[1]."\n"; } # Single ip addresses if (preg_match("/(\d+\.\d+\.\d+\.\d+)\s+/",$line,$matches)){ ${$alias}.= $matches[1]."/32\n"; $new_file.= $matches[1]."/32\n"; } # Network range 192.168.0.0-192.168.0.254 if (preg_match("/(\d+\.\d+\.\d+\.\d+)-(\d+\.\d+\.\d+\.\d+)/",$line,$matches)){ $cidr= pfblocker_Range2CIDR($matches[1],$matches[2]); if ($cidr != ""){ ${$alias}.= $cidr."\n"; $new_file.= $cidr."\n"; } } } ```</enter>
-
Interesting. I'm having difficulty replicating. Can you post a sample of the list you're using.
I use my own list to ban some IP work within their own network. It generates by script from the SQL database and given over HTTP.
The code looks for a space/or <enter>after the ip address, can you check if the list you want to apply has it?
# Single ip addresses if (preg_match("/(\d+\.\d+\.\d+\.\d+)\s+/",$line,$matches)){ ..... ```</enter>
That's the reason for such behavior. \s+ requires a complete IP-address by space character. My list was originally a form:
192.168.0.1\n
192.168.0.3\n
…
when using
192.168.0.1/32\n
192.168.0.3/32\n
everything works as expected.PS: I was wrong a little bit. Lost is not the first line but last line.
That is, /(\d+.\d+.\d+.\d+)\s+/ does not work on the "192.168.1.1\n<eof>"</eof> -
Michael Sh,
Try to remove the \s+ from that preg_match at /usr/local/pkg/pfblocker.inc file and see if works.
att,
Marcello Coutinho