PfBlocker
-
@WarMachine357:
Yeah, they are are the same subnet. The pfsense box hands out dhcp to them. The outbound rule I created comes before the default LAN rule LAN NET. Also, the ntp server in pfsense provides service to the wireless ap.
If wired and wireless machines are on the same subnet and using the same dhcp, I have no idea how pfsense or pfblocker could block one and do not block other. It's weird to me.
-
I have found by moving the rule after the allow rules the wireless clients work. But, that doesn't seem right does it?
-
I agree that it doesn't make sense. What happens to one should happen to the other. But, did you see what I said about moving the rule to the bottom?
-
@WarMachine357:
I have found by moving the rule after the allow rules the wireless clients work. But, that doesn't seem right does it?
No it's not.
An outbound rule blocks access from any to pfblockerAlias.
If you have one rule that permits traffic, the deny rule will have no effect.
-
Maybe level3 list is blocking all your network and the pfsense keep-state for your machine gives you a false diagnostics.
Remove level3 list and see if it works.
-
HI everybody,
Version 0.1.4.5 is out with all planned features coded. 8)
main changes:
-
Dashboard widget includes package hit on applied aliases (10 second update)
-
Change in rule description to allow widget package count
-
Update frequency implemented
Important note for custom rules
keep aliasname in the beggining of rule description and do not end description with 'rule'.
Once again, thank you for testing this amazing new tool for pfsense. ;)
-
-
Just reinstalled.
Strange things happens when you switch to Alias
Description: pfblockerWAN Inbound rule will disappear
Description: pfblockerWAN Inbound will persistStill showing 0 in the widget after 10 minutes
-
I've changed important note for better understanding.
Aliasname something rule will be removed by package.
To test rule packet count, block your own country While you are locally on your office/home.
DO NOT TRY THIS REMOTELY.
A less risky test is:
-
define your own country action as alias only
-
create a rule that deny outbound icmp access on lan.
-
include description as described
-
apply rules
-
Open Dashboard
-
try to Ping someone on your country.
-
-
Still showing 0
I picked one host in the Diagnostics: Tables pfblocker table.
I can ping from LAN or pfsense no problem
Nothing is showed as blocked in the firewall logs !??rules are on WAN only
Reject and log * * * pfBlockerWAN * * none pfBlockerWAN Outbound Block and log * pfBlockerWAN * * * * none pfBlockerWAN Inbound
-
If you are testing from lan, the blocking rule must be on lan.
It's a statefull firewall. All rules are set where communication begins.
-
So I should have
on the LAN
Reject and log * * * pfBlockerWAN * * none pfBlockerWAN LAN - Outbound
on the
WAN Block and log * pfBlockerWAN * * * * none pfBlockerWAN WAN - InboundI see the widget Packet number changes ;o)
How do you block the pfsense box from accessing these aliases?
-
On floating rules, but it may not show in widget.
Floating rules are not impelmented in this version but you can apply pfBlocker alias on it.
-
I just created a rule on the Floating tab…. and the Packets blocked are updated in the widget ;D
However the rule
Reject and log * * * pfBlockerWAN * * none pfBlockerWAN Floating Outbound
disappeared in the Floating tab after a save in pfBlocker …..!!!
same thing with
pfBlockerWAN Floating
pf BlockerWAN Whateverbummer :(
-
As I told you, floating rules are not implemented but i'll try the same test here and see what happens.
-
Hi,
ok, reinstalled on nanobsd and boot is much better. Got a new problem though: While the genaral and top spammers pages look good, I get the below instead of country lists for the others. Example below. Country.txt seems to load at install though, have also reinstalled package and rebooted - no change. Hence the drop down lists are missing.
Thanks!
![2011-11-11 15:00:45.png](/public/imported_attachments/1/2011-11-11 15:00:45.png)
![2011-11-11 15:00:45.png_thumb](/public/imported_attachments/1/2011-11-11 15:00:45.png_thumb) -
The countryipblocks.net removed the lists :-[
I will point it to files.pfsense.[b]EDIT
Just did it.
wait 15 minutes and reinstall package.
-
Probably should not have users directly pull those lists anyhow, but keep them local and update them periodically. I have a feeling that too many people accessing their systems automatically may have been part of their decision to shut the service down.
-
Yeah, I'm doing it now.
-
Just released version 0.1.4.6 with fixes in float rules check and about section in gui.
-
From Countryblocks site…
We have temporarily suspended certain services as our donation stream has suffered a significant decrease here in the fourth quarter. We are pursuing some other financing options to help us focus on providing you with our services. This temporary suspension may last a few hours or a few days. If you would like to help us expedite the process please consider making a donation to Country IP Blocks through the PayPal link (on their site)
-
If you can, please donate to Country IP Blocks
Site: http://www.countryipblocks.net/
We need to support this site.
-
Just released version 0.1.4.6 with fixes in float rules check and about section in gui.
Reinstalled, Floating rules are still there after a pfBlocker save, great ::)
Counter updates when pinging from pfsense box.
Counter is reseted on firewall rule changes.When I select loopback interface, where does it put the rules?
-
When I select loopback interface, where does it put the rules?
Nothing :)
As we only use pfsense's framework components, interface selection includes loopback.
If you select just loopback, pfBlocker send you a warning.
-
On reinstall we always get the Reload status missing alias error: php: : New alert found: # unresolvable dest aliases
This is because pfBlocker is disabled by default on install.if you click ACKNOWLEDGE ALL in the Package Installer window, you ended up with:
Installation of FAILED! ------------------------- Installation halted.
Everything is fine and working after you enable pfBlocker.
-
On reinstall we always get the Reload status missing alias error: php: : New alert found: # unresolvable dest aliases
Please, remove custom alias before removing package.
pfBlocker is just doing what you asked him to do (do not touch my rules).if you click ACKNOWLEDGE ALL in the Package Installer window, you ended up with:
Installation of FAILED! ------------------------- Installation halted.
when you click ACKNOWLEDGE ALL you reload the page, and then get a 'reinstallation' error.
This is not related to pfBlocker.
-
I've pushed a fix in cron call to check if pfBlocker is enabled or not.
if you have installed pfBlocker before now + 15 min, reinstall package.
-
Done.
Everything is running fine. -
Great news, thanks for your feedback.
-
I'm running on Alix 2D13.
Installed pfSense-1.2.3-RELEASE-2g-nanobsd.img.gz on a 2GB card.
Version 2.0-RELEASE (i386) built on Tue Sep 13 18:02:53 EDT 2011
Platform nanobsd (2g)
CPU Type Geode(TM) Integrated Processor by AMD PCS
Uptime 31 days +
I'm running Peerblocker on a local windows xp machine.
Is is possible to have a stripped down pfsense server - to do the same job as peerblocker (http://www.peerblock.com/) ?
(it now has 2.301.808.963 IPs and counting..)Or should I look else where ?
-
It seems that peerblocker is another thing and meant for windows.
Unless you convince a unix knowledgable to port it to unix i do not think you will have much success in that way.
-
I'm running on Alix 2D13.
Installed pfSense-1.2.3-RELEASE-2g-nanobsd.img.gz on a 2GB card.
Version 2.0-RELEASE (i386) built on Tue Sep 13 18:02:53 EDT 2011
Platform nanobsd (2g)
CPU Type Geode(TM) Integrated Processor by AMD PCS
Uptime 31 days +
I'm running Peerblocker on a local windows xp machine.
Is is possible to have a stripped down pfsense server - to do the same job as peerblocker (http://www.peerblock.com/) ?
(it now has 2.301.808.963 IPs and counting..)Or should I look else where ?
pfBlocker does the same job as peerblocker. pfBlocker replaces IP-Blocklist and IP-Blocklist was created to mimic peerblocker. You can use the same lists that you are using in peerblocker and apply them to pfBlocker. This way you get protection not just on a single machine but your entire network.
pfBlocker is Peerblock for pfsense.
-
We need a way to verify that PfBlocker is downloading lists properly and blocking. It should display the number of IP's being blocked from downloaded lists.
-
We need a way to verify that PfBlocker is downloading lists properly and blocking. It should display the number of IP's being blocked from downloaded lists.
There is. Marcello built that into the widget. You can add it on the home page HUD by pressing the '+' button.
This widget counts the CIDRs currently applied in your tables that pfblocker creates.
-
@ Tommyboy - Thanks for that I did not know to look at the widget.
I am getting the following error with PFblocker now. It reports "out of memory" but RAM usage is only about 53%:
: The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was '/tmp/rules.debug:20: cannot define table pfBlockerLevel1Inbound: Cannot allocate memory /tmp/rules.debug:22: cannot define table pfBlockerLevel1Outbound: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded'
Does anybody know how to remedy this?
-
Getting more errors:
There were error(s) loading the rules: /tmp/rules.debug:20: cannot define table pfBlockerLevel1Inbound: Cannot allocate memory
/tmp/rules.debug:22: cannot define table pfBlockerLevel1Outbound: Cannot allocate memory
/tmp/rules.debug:36: cannot define table pfBlockerPrimaryThreats: Cannot allocate memory
pfctl: Syntax error in config file: pf rules not loaded The line in question reads [20]: table <pfblockerlevel1inbound>persist file "/var/db/aliastables/pfBlockerLevel1Inbound.txt"My router is a laptop router and is not out of memory.</pfblockerlevel1inbound>
-
ipv6kid,
-
Increase even more Firewall Maximum Table Entries
-
clear ipblocklist table in diagnostics-> table
-
check if the value of table-entries in /tmp/rules.debug is the same in Firewall Maximum Table Entries
-
check also if table-entries is declared twice in /tmp/rules.debug
This should correct your errors. Basically what is happening is system variable has set a ceiling on the tables. You can manually override this by changing that value to allow larger tables.
-
-
ipv6kid,
Also check lists description. Level1 ipblocklist includes only 'good' networks.
Blocking a grey list may not be a good choice.
-
First, thanks for the reply. I have set the maximum Firewall tables to 550,000 just to be safe but under Diagnostics > Tables there is no PFblocker drop down selection.
I am still getting memory allocation errors even though I've done all of this and reset the states. Could it be anything else?
-
You said to make sure I didn't have double "table-entries", what if I used the same list to deny inbound and outbound? Would that cause this error?
-
If you need to inbound and outbound rules on same table, choose alias on list action and then create a manual rule in wan and other in lan.
If you still want list1, you may need 1.000.000 or more.
You can't see pfBlocker table because you got erros during apply.