PfBlocker
-
Trying out your new pfblocker, awesome idea to combine packages.
I've added about 13 iblocklist lists in gz format and I'm getting this error on save.
php: /pkg_edit.php: New alert found: pfBlockerInbound alias table is too large. Reduce Inbound list or increase "Firewall Maximum Table Entries" value to at least 818134 in "system - advanced - Firewall/NAT".
I have 4 gigs RAM and my current Table Entries Size is 100000 so i raised it to 1000000. Enabled pfblocker and hit save and then got this
php: : There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt" Oct 30 02:11:29 php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt" Oct 30 02:11:26 php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'</pfblockerinbound></pfblockerinbound>
Neither IPblocklist nor countryblock were installed when i installed pfblocker. Memory usage is at 19%.
Line 18 in /tmp/rules.debug
table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt"</pfblockerinbound>
-
Did you tried to reaply pfBlocker config, after increasing Firewall Maximum Table Entries to 1000000?
It seems that your change in "Firewall Maximum Table Entries" value did not take effect.
Cannot allocate memory pfctl: Syntax error in config file error is exactly what happens when "Firewall Maximum Table Entries" is lower then applied table size.
EDIT
Last package update was about 08 hours ago without version changing, so try to reinstall package to be sure you are on latest version. -
I'm looking forward to trying the new package, when you'll add configurable update frequency.
I'm currently using a couple of shell scripts, to add pf tables of unwanted IPs to pfsense, e.g.
http://www.spamhaus.org/drop/drop.lasso
DROP (Don't Route Or Peer) is an advisory "drop all traffic" list, consisting of stolen 'hijacked' netblocks and netblocks controlled entirely by professional spammers. DROP is a tiny subset of the SBL designed for use by firewalls and routing equipment.http://feeds.dshield.org/top10-2.txt
DShield's current Most Active Attacking IPs
(Same data as is used on DShield.org Top 10 Most Wanted.)
0 = IP Address, 1 = Resolved domain of IP Addresswhich are both updated on a daily basis.
-
I'm looking forward to trying the new package, when you'll add configurable update frequency.
Maybe today.
I'll also check ips without netmask to be able to include dshield.org lists compatibility.
-
Did you tried to reaply pfBlocker config, after increasing Firewall Maximum Table Entries to 1000000?
It seems that your change in "Firewall Maximum Table Entries" value did not take effect.
Cannot allocate memory pfctl: Syntax error in config file error is exactly what happens when "Firewall Maximum Table Entries" is lower then applied table size.
EDIT
Last package update was about 08 hours ago without version changing, so try to reinstall package to be sure you are on latest version.Double checked Maximum Table Entries in /System/Advanced/Firewall-NAT, uninstalled and reinstalled package, even rebooted box, still same error. Only other packages running are Snort, Unbound and Cron.
-
I'm looking forward to trying the new package, when you'll add configurable update frequency.
I'm currently using a couple of shell scripts, to add pf tables of unwanted IPs to pfsense, e.g.
http://www.spamhaus.org/drop/drop.lasso
DROP (Don't Route Or Peer) is an advisory "drop all traffic" list, consisting of stolen 'hijacked' netblocks and netblocks controlled entirely by professional spammers. DROP is a tiny subset of the SBL designed for use by firewalls and routing equipment.http://feeds.dshield.org/top10-2.txt
DShield's current Most Active Attacking IPs
(Same data as is used on DShield.org Top 10 Most Wanted.)
0 = IP Address, 1 = Resolved domain of IP Addresswhich are both updated on a daily basis.
iblocklist.com has a the DROP list from spamhaus.org URL: http://list.iblocklist.com/?list=sh_drop&fileformat=p2p&archiveformat=gz
iblocklist.com also has the dshield list from Bluetack URL: http://list.iblocklist.com/?list=bt_dshield&fileformat=p2p&archiveformat=gz
iblocklist.com has many lists in p2p format.
-
@onhel:
Double checked Maximum Table Entries in /System/Advanced/Firewall-NAT, uninstalled and reinstalled package, even rebooted box, still same error. Only other packages running are Snort, Unbound and Cron.
send me your lists in PM. I'll try on my vm.
-
Great, I look forward to it.
Actually, I think pfsense would benefit from an enhanced aliastable feature, that would maintain (collect data, process, store) IP ranges of interest as text files in CIDR-notation fomat in /var/db/aliastables and load them into pf tables.
Those would include the usual IP black-list sources (e.g. Spamhaus' drop.lasso, DShield etc), country IP ranges (though I personally don't favor the practice of blocking entire countries) but also IP ranges of popular sites (Amazon EC2, Facebook, Google, Hotmail, SAP) to be black-listed or white-listed.
I think it's a feature that will be increasingly asked for, as more companies move to SaaS http://en.wikipedia.org/wiki/Software_as_a_service provider
In fact I recently suggested it Feature #1901: Maintain IP range tables for popular Internet sites having that in mind.
-
Great, I look forward to it.
Actually, I think pfsense would benefit from an enhanced aliastable feature, that would maintain (collect data, process, store) IP ranges of interest as text files in CIDR-notation fomat in /var/db/aliastables and load them into pf tables.
Those would include the usual IP black-list sources (e.g. Spamhaus' drop.lasso, DShield etc), country IP ranges (though I personally don't favor the practice of blocking entire countries) but also IP ranges of popular sites (Amazon EC2, Facebook, Google, Hotmail, SAP) to be black-listed or white-listed.
I think it's a feature that will be increasingly asked for, as more companies move to SaaS http://en.wikipedia.org/wiki/Software_as_a_service provider
In fact I recently suggested it Feature #1901: Maintain IP range tables for popular Internet sites having that in mind.
Isn't this the main feature of pfBlocker lists??
-
Isn't this the main feature of pfBlocker lists??
Yup. Exactly.
dhatz,
iblocklist.com has all those lists you asked for and more. p2p is a widely used format and is incredibly popular across many websites.…Actually, I think pfsense would benefit from an enhanced aliastable feature, that would maintain (collect data, process, store) IP ranges of interest as text files in CIDR-notation fomat in /var/db/aliastables and load them into pf tables….
That is exactly what is working in pfblocker right now!
….Those would include the usual IP black-list sources (e.g. Spamhaus' drop.lasso, DShield etc), country IP ranges (though I personally don't favor the practice of blocking entire countries) but also IP ranges of popular sites (Amazon EC2, Facebook, Google, Hotmail, SAP) to be black-listed or white-listed….
That is exactly what the ipblocklist feature does in pfblocker. Your lists just have to follow p2p format which iblocklist.com has for the lists that you want!
pfblocker gives users more power when it comes to blocking IP ranges (country sources and list sources), whitelisting IP ranges (country sources and list sources), whitelisting popular IPs of sites like Google, Hotmail, etc, and are updated frequently by the list maintainer.
pfblocker already does everything that you are asking for! -
Well, I haven't tried it yet, but given the name pfBlocker I assumed it was mainly about blocking :D
PS: How "safe" is list.iblocklist.com as a source (site security, DNS hijacking, GPG signing etc) ?
-
Well, I haven't tried it yet, but given the name pfBlocker I assumed it was mainly about blocking :D
lol, so you're asking for features without even testing the software? Thanks.
-
Well, I haven't tried it yet, but given the name pfBlocker I assumed it was mainly about blocking :D
PS: How "safe" is list.iblocklist.com as a source (site security, DNS hijacking, GPG signing etc) ?
I will follow Johnnybe suggestion and increase pfBlocker description for better understanding.
-
-
Well, I haven't tried it yet, but given the name pfBlocker I assumed it was mainly about blocking :D
PS: How "safe" is list.iblocklist.com as a source (site security, DNS hijacking, GPG signing etc) ?
I will follow Johnnybe suggestion and increase pfBlocker description for better understanding.
Sounds good. Do it… do it. Thanks. ;D
-
php: : There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt" Oct 30 02:11:29 php: : New alert found: There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded The line in question reads [18]: table <pfblockerinbound> persist file "/var/db/aliastables/pfBlockerInbound.txt" Oct 30 02:11:26 php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:18: cannot define table pfBlockerInbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'</pfblockerinbound></pfblockerinbound>
I seems to be a table hard limit. Even when setting Firewall Maximum Table Entries higher then 900000, pfctl fails to apply tables larger then this value.EDIT:
There is no hard limit.
I found two issues:-
pfsense Firewall Maximum Table Entries option may require to be 2x table size applied. I'm checking this.
-
To increase a table in pfctl, you must kill it to free old table used and create a new one. patch applied to pfBlocker
pfBlocker 0.1.4 will include these fixes.
-
-
@onhel:
PM sent, thank you.
Take a look on description of lists you selected. Level1 list from iblocklist is not nasty.
List Information
List name: level1
Author: Bluetack
Author's website: bluetack.co.uk
Author's description:
Companies or organizations who are clearly involved with trying to stop filesharing.
Companies which anti-p2p activity has been seen from.
Companies that produce or have a strong financial interest in copyrighted material.
Government ranges or companies that have a strong financial interest in doing work for governments.
Legal industry ranges.
IPs or ranges of ISPs from which anti-p2p activity has been observed. -
Just want to confirm that the current version has resolved the problem that I reported in the country block thread.
I am still unable to deselect a country from the country lists. Once I have clicked in to a list I am unable to select none. If you could add a blank line that does not apply any list that could resolve it. Maybe that problem is browser specific?
-
I am still unable to deselect a country from the country lists. Once I have clicked in to a list I am unable to select none. If you could add a blank line that does not apply any list that could resolve it. Maybe that problem is browser specific?
Just hold CTRL and then unselect country.
-
Just curious – what is actually the point of this? Would not the default block rule just drop packets from these IPs anyway, unless they were in answer to something you requested in the first place.
Why would you be talking to these IPs in the first place, so other than say not logging this traffic Im not quite grasping the point of this package other than say something like running p2p software and you don't want to connect to any of these IPs, etc.