Changes between Version 1 and Version 2 of noc2018/agenda/PfsensepfBlockerNG
- Timestamp:
- Dec 5, 2018, 7:05:13 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
noc2018/agenda/PfsensepfBlockerNG
v1 v2 4 4 Blocking countries and IP ranges, DNS lists is easy with pfBlocker. 5 5 6 6 7 To Install go to Package Manager and search and install pfBlocker-NG. This will take some time to install 7 8 8 Once Installed goto Firewall > pfBlockerNG for settings. 9 '''Before going further go to ntopng settings and disable it otherwise your pfSense will get stuck due to low memory''' 10 11 Once pfBlocker-NG is installed, goto Firewall > pfBlockerNG for settings. 9 12 10 13 On pfBlockerNG settings, General Page, tick '''Enable''' and Save. … … 26 29 27 30 - 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.31 - Need to maintain an updated DNS list of unwanted domains. 29 32 30 33 To accomplish the second point above we will associate some publicly available community maintained dns block lists based on content category. … … 34 37 - https://github.com/StevenBlack/hosts 35 38 39 on pfBlockerNG, go to DNSBL tab and tick '''enable DNSBL''' 40 41 When blocking is enabled all matched domains will be redirected to a IP address known as '''DNSBL Virtual IP''' and it will reply with a plain pixel. Therefore, you have to configure an IP address that is not used in your LAN segment. For the lab purposes change '''DNSBL Virtual IP''' to 192.168.254.254 as we do not use that IP in our network. 42 43 Then Define a List action from '''DNSBL IP Firewall Rule Settings''', ideally, Deny Outbound and click save. 44 45 Next, Go to '''DNSBL Feeds''' 46 47 Click Add. 48 49 - DNS GROUP Name: PRON_Sites 50 - Description: BLock Porn sites 51 - DNSBL: 52 - Format: Auto 53 - State: ON 54 - Source: https://raw.githubusercontent.com/chadmayfield/my-pihole-blocklists/master/lists/pi_blocklist_porn_all.list 55 - Header: list1 and click Add 56 - on the second line use url: https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi_blocklist_porn_top1m.list with Header: List2 and Add 57 - List Action: Unbound 58 - Update Frequency: Once a day 59 - Save 60 61 Now go to Update and run it. Wait till you see `UPDATE PROCESS ENDED` 62 63 Then go to your GUI vm and do `nslookup 121sexcam.com` which is a blocked domain. You may also try this on web browser as well. 64 65 You can also try defining custom feed lists as well. 36 66 37 67 68