1
24.1 Legacy Series / How do I allow a single device outbound DNS acces while...
« on: August 24, 2024, 10:35:58 pm »
...in general every DNS request is redirected to the OPNsense?
There are two rules configured:
1. port forward:
LAN TCP/UDP * * ! LAN address 53 (DNS) 127.0.0.1 53 (DNS) Redirect external DNS requests to local DNS resolver
2. rules LAN:
--> IPv4 TCP/UDP * * 127.0.0.1 53 (DNS) * * Redirect external DNS requests to local DNS resolver
These two rules ensure that any DNS request from every device in the LAN is redirected to the OPNsense. Assuming I want to allow the IP 192.168.29.1 to query port 53 (DNS requests) to any outbound DNS service, i.e. 1.1.1.1 or 9.9.9.9. How can I achieve this, what rules are needed. At the moment I don't get it.
Any help is appreciatetd.
There are two rules configured:
1. port forward:
LAN TCP/UDP * * ! LAN address 53 (DNS) 127.0.0.1 53 (DNS) Redirect external DNS requests to local DNS resolver
2. rules LAN:
--> IPv4 TCP/UDP * * 127.0.0.1 53 (DNS) * * Redirect external DNS requests to local DNS resolver
These two rules ensure that any DNS request from every device in the LAN is redirected to the OPNsense. Assuming I want to allow the IP 192.168.29.1 to query port 53 (DNS requests) to any outbound DNS service, i.e. 1.1.1.1 or 9.9.9.9. How can I achieve this, what rules are needed. At the moment I don't get it.
Any help is appreciatetd.

