PfBlockerNG v2.0 w/DNSBL
-
I also update from dev to 2.0, it work properly, a powerful package
Thanks! BBcan177
-
@cmb:
Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.
Thanks BBCan!
Done, ran the standard tests, all good. Thanks for all the work BB!
-
Work like a charm, Thanks! For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.
-
Work like a charm, Thanks! For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.
I had this also, second time worked fine
prior, i was on the latest build of PFB 1.x -
Looks like I have a file caching issue with the download function. I will get that resolved asap and add the relevant download code directly to the install code.
-
Installed and configured with DNSBL, all went smoothly and working flawlessly since.
Great package by great people ! Many thanks BBcan177
-
After months of testing I just installed pfBlockerNG 2.0 from official repository, everything is ok.
Thanks BBCan, ottimo lavoro amico mio! -
For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.
Ditto. Worked on 2nd try.
I setup DNSBL per the instructions above, and it looks like everything is worked as advertised. Great work!
Jason
-
Excellent!!!
Confirmed also: second try (simply reinstalled package after first update attempt)
Really great job. Where can I donate?
-
Installed, It stopped at the same place as most others, being lazy I refreshed which reinstalled it again :D (3 less clicks than packages/reinstall/confirm) :P
Working GREAT! Gonna enable DNSBL for INBOUND Monday (using Alias) :)
-
Here is a PR to fix the Installation issue being reported…
https://github.com/pfsense/pfsense-packages/pull/1189
Once this is merged, if anyone has similar issues, please report back. Thanks!
-
If you move your configuration from DNS Forwarder to DNS Resolver in order to use pfBlockerNG: For multi-WAN configurations you have to have forwarding mode enabled. See also here: https://doc.pfsense.org/index.php/Unbound_DNS_Resolver
-
Thanks BBcan177, and everyone that made this package possible. Great jpb.
If you move your configuration from DNS Forwarder to DNS Resolver in order to use pfBlockerNG: For multi-WAN configurations you have to have forwarding mode enabled. See also here: https://doc.pfsense.org/index.php/Unbound_DNS_Resolver
Can you elaborate? I have multi-wan and forwarding disabled and everything works.
-
Latest PR merged.
-
There are several other DNSBL Feeds that can be used with pfBNG DNSBL. I will post that at a later date, once users get their basic configurations working. There is also an ADBlock Easylist tab, which is pretty self-explanatory.
Huge thanks BBcan177!!! First off really looking forward to you posting more feeds, more importantly though where can I donate? I'd like to thank you, you have no idea I've been trying to block ads on my wireless devices and had been trying to do this on an Asus RT-68U (AP mode) with both tomato and merlin and was having issues. PfBlockerNG 2.0 has solved this issue for me, I no longer have to mess around with the Asus router and don't have to worry bout getting ads on my sons ipad/pc. I added a feed from http://winhelp2002.mvps.org/hosts.htm would this work for host files as well? In the log it does seem to have downloaded the .txt file (see attached screenshot) Thanks again BBcan177 for your work!
-
Here are more DNSBL Feeds that can be used in pfBlockerNG.
(Copy and paste URLS as plain text)- Create a new alias for these.
These are not necessarily ADvert domains. So I named mine "Malicious"
hpHosts
http://hosts-file.net/download/hosts.zipSWC
http://someonewhocares.org/hosts/hostsspam404
https://spam404bl.com/blacklist.txt
https://raw.githubusercontent.com/Dawsey21/Lists/master/main-blacklist.txtmalc0de
https://malc0de.com/bl/BOOTMDS (use 'Flex' state)
https://mirror1.malwaredomains.com/files/justdomainsMVPS
http://winhelp2002.mvps.org/hosts.txtMDL
http://www.malwaredomainlist.com/hostslist/hosts.txtDiscontinued
GJTech
http://adblock.gjtech.net/?format=unix-hostsdShield_SD (They also have a conservative list available)
https://www.dshield.org/feeds/suspiciousdomains_High.txtZeus
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist- These two feeds post full URLs, so there can be some more false positives.
Create a new Alias, and use Alexa as a recommendation.
PhishTank
https://data.phishtank.com/data/online-valid.csv.bz2OpenPhish
https://www.openphish.com/feed.txtMPatrol (You need to register - Free or Paid subscription. Use Danguardian feed)
https://lists.malwarepatrol.net-
This is a feed that I manage (as time permits)
MS_2
https://gist.githubusercontent.com/BBcan177/4a8bf37c131be4803cb2/raw -
Use this in its own Alias:
BBC_DGA (This is a large feed of DGA for the likes of Cryptolocker et al…)
http://osint.bambenekconsulting.com/feeds/dga-feed.gzBBC_C2
http://osint.bambenekconsulting.com/feeds/c2-dommasterlist.txt- Use this feed in its own alias as it is updated more frequently.
So you can update it more often than once per day.
hpHosts_partial
http://hosts-file.net/hphosts-partial.aspIf users find other feeds, please post back so that others may benefit also.
Its also important to donate to the feeds provider (IP and/or Domain) as they all need support. - Create a new alias for these.
-
Here are some basic instructions to get started with DNSBL.
- Open the pfBNG "DNSBL" Tab:
(Use the defaults unless you have a need to use otherwise)
Enter the DNSBL VIP as 10.10.10.1
Enter the DNSBL Listening Port as 8081
Enter the DNSBL SSL Listening port as 8443
Select the DNSBL Listening Interface as LanFor the DNSBL Firewall Rule select all of the LAN subnets that access the DNS Resolver.
Ensure that all Devices that use the DNS Resolver, have the Resolver as its only DNS setting for DNSBL to function properly.DNSBL IP Firewall Rule Settings:
Select Deny outbound or as per your requirements
select Enable loggingAlexa (is optional, you can skip this until later if you wish)
Select Top 1K
Select the TLD Inclusions as ca,co,com,io,me,net,org or as required.In the Custom List you may enter any domain you wish to Whitelist.
Save your settings
- Open the "DNSBL Feeds" Tab:
Create a new DNSBL Alias
Enter DNS Group Name as ADs
Enter Description as DNSBL ADvertsDNSBL:
Enter the Header/Label and Source URL as follows:
(Use copy/paste as plain text for the URL)Format Auto and State ON
yoyo
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintexthpHosts_ads
http://hosts-file.net/ad_servers.txtAdaway
https://adaway.org/hosts.txtCameleon
http://sysctl.org/cameleon/hostsSelect List Action as Unbound
Select Update Frequency as Once a dayAlexa:
Do not enable the Alexa Whitelist for this ADverts based alias, as Alexa also posts the top ADvert servers. So using Alexa whitelist, will interfere with ADvert Blocking.Add any other domains that you wish to block in the Custom List.
Save your settings
- Open the "DNSBL" Tab:
Click DNSBL Enable checkbox.
Save your settings- Open the "Update" Tab:
Select Force Update
You should now see the DNSBL Feeds being downloaded and parsed. Once that is complete, goto the Dashboard, and confirm that the widget is populated correctly.
- Goto the pfBlockerNG "Alerts" Tab:
Any domain that is blocked will be reported here. For HTTPS alerts, the SRC IP and URL are not captured due to Browser security measures.
As a test, goto www.aol.com and www.yahoo.com and see some alerts populate.
There are several other DNSBL Feeds that can be used with pfBNG DNSBL. I will post that at a later date, once users get their basic configurations working. There is also an ADBlock Easylist tab, which is pretty self-explanatory.
Have been using the beta code for some time and noticed a list of domains in the Alexa top 1K that serve up ads, since I don't want this I added the following custom block list to my Ads DNS Group which will remove them from any DNS group that is using the Alexa top 1K filter.
popcash.net www.popcash.net outbrain.com www.outbrain.com onclickads.net www.onclickads.net googleadservices.com www.googleadservices.com adcash.com www.adcash.com popads.net www.popads.net
To confirm make sure "Enable Alexa Whitelist" is NOT checked for this DNS group.
-
There are several other DNSBL Feeds that can be used with pfBNG DNSBL. I will post that at a later date, once users get their basic configurations working. There is also an ADBlock Easylist tab, which is pretty self-explanatory.
Huge thanks BBcan177!!! First off really looking forward to you posting more feeds, more importantly though where can I donate?
Thanks again BBcan177 for your work!
I could use a lifetime pfSense Gold subscription… :) But I think all developers should get that as a bonus :)
My email is at the bottom of the pfBNG general tab.
-
There are several other DNSBL Feeds that can be used with pfBNG DNSBL. I will post that at a later date, once users get their basic configurations working. There is also an ADBlock Easylist tab, which is pretty self-explanatory.
Huge thanks BBcan177!!! First off really looking forward to you posting more feeds, more importantly though where can I donate?
Thanks again BBcan177 for your work!
I could use a lifetime pfSense Gold subscription… :) But I think all developers should get that as a bonus :)
My email is at the bottom of the pfBNG general tab.
:o lifetime ? That would be $99 x how many ever years you have left ;D :P so is the email there attached to a paypal account? Not sure if donation talk is allowed on forum if not, I apologize mods. Also , It does seem to be working for host files from http://winhelp2002.mvps.org/hosts.htm Thanks!
-
Can you elaborate? I have multi-wan and forwarding disabled and everything works.
If you enable forwarding mode then a foward-zone named "." is created as well as some forward-addr entries with the DNS servers you sepcified system->general setup.
Default behavior of unbound is to query the Root servers. But if you have a multi-WAN configuration and need to specifiy a different DNS server for each WAN(gateway) you need forwarding mode to be enabled. So yeah, works without forwarding mode for some multi-WAN configs that are fine with just the Root servers.