pfsense:dns:block_dns_requests
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pfsense:dns:block_dns_requests [2021/04/27 09:58] – created peter | pfsense:dns:block_dns_requests [2022/10/08 08:55] (current) – [Test] peter | ||
---|---|---|---|
Line 12: | Line 12: | ||
---- | ---- | ||
- | ===== Create a firewall rule to block ALL LAN traffic on port 53 (DNS) ===== | + | ===== Allow DNS Requests to the pfSense box ===== |
+ | |||
+ | Create a firewall to allow any requests on port 53 to the pfSense box. | ||
+ | |||
+ | Navigate to **Firewall -> Rules -> LAN**. | ||
+ | |||
+ | Add a new firewall rule. | ||
+ | |||
+ | * Action: | ||
+ | * Disabled: | ||
+ | * Interface: | ||
+ | * Address Family: | ||
+ | * Protocol: | ||
+ | * Source: | ||
+ | * Invert Match: | ||
+ | * Source: | ||
+ | * Destination: | ||
+ | * Invert Match: | ||
+ | * Destination: | ||
+ | * Destination Port Range - From: **DNS (53)**. | ||
+ | * Destination Port Range - To: **DNS (53)**. | ||
+ | * Log: **Not Checked**. | ||
+ | * Description: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Block ALL LAN traffic on port 53 (DNS) ===== | ||
+ | |||
+ | Create a firewall rule to block ALL LAN traffic on port 53 (DNS). | ||
+ | |||
+ | <WRAP important> | ||
+ | **IMPORTANT: | ||
+ | </ | ||
Navigate to **Firewall -> Rules -> LAN**. | Navigate to **Firewall -> Rules -> LAN**. | ||
Line 34: | Line 67: | ||
* Description: | * Description: | ||
+ | ---- | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | On a client device, set DNS to point to an external DNS provider, such as Google. | ||
+ | |||
+ | * Set the DNS on the client to 8.8.8.8 | ||
+ | |||
+ | Try to do a nslookup against an external site. | ||
+ | |||
+ | <code bash> | ||
+ | nslookup google.com | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Server: | ||
+ | Address: | ||
+ | |||
+ | Non-authoritative answer: | ||
+ | Name: | ||
+ | Address: 172.217.169.78 | ||
+ | Name: | ||
+ | Address: 2a00: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** This shows the server handling the DNS query is 192.168.1.1 which is the IP of the pfSense. | ||
+ | |||
+ | Great! | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | Try to do a ping an external site to ensure this works too. | ||
+ | |||
+ | ---- | ||
pfsense/dns/block_dns_requests.1619517486.txt.gz · Last modified: 2021/04/27 09:58 by peter