| 1 | = pfBlockerNG = |
| 2 | |
| 3 | pfBlocker-NG introduces an Enhanced Alias Table Feature to pfSense. This Allows, assigning many IP address URL lists to a single alias and then choose a rule action. |
| 4 | Blocking countries and IP ranges, DNS lists is easy with pfBlocker. |
| 5 | |
| 6 | To Install go to Package Manager and search and install pfBlocker-NG. This will take some time to install |
| 7 | |
| 8 | Once Installed goto Firewall > pfBlockerNG for settings. |
| 9 | |
| 10 | On pfBlockerNG settings, General Page, tick '''Enable''' and Save. |
| 11 | |
| 12 | Next go to '''Update''' tab and click '''Run''', this will update default lists. |
| 13 | |
| 14 | To block IP blocks based on country go to '''GeoIP''' tab and select country/s and their '''List Action''' accordingly and Save. |
| 15 | |
| 16 | To block a custom IP block, goto IPv4 or IPv6 and click '''+Add''' |
| 17 | - Give an Alias |
| 18 | - Discription |
| 19 | - URL to a IP subnets list or go to Custom List and enter manually. |
| 20 | - List Action, whether to block or not, whether it is inbound or outbound, etc. |
| 21 | - If it is a URL list, give a update frequency |
| 22 | |
| 23 | == Block traffic based on DNS == |
| 24 | |
| 25 | Modern traffic filtering becomes uneasy due to encryption methods, therefore the easiest way in filtering them is to block the DNS. But there should be some requirements for that, |
| 26 | |
| 27 | - All devices in the network should resolve DNS from pfsense. You have to block accessing public DNS resolvers by your clients. eg: write a block rule on DNS ports for outgoing traffic from your LAN. |
| 28 | - Need to maintain updated DNS list of unwanted domains. |
| 29 | |
| 30 | To accomplish the second point above we will associate some publicly available community maintained dns block lists based on content category. |
| 31 | |
| 32 | You can find some of these links from |
| 33 | - https://github.com/pi-hole/pi-hole/wiki/Customising-sources-for-ad-lists |
| 34 | - https://github.com/StevenBlack/hosts |
| 35 | |
| 36 | |
| 37 | |