My solution at this time: I run Adguard Home from the plugins right on OPNsense on port 53. I then have Unbound running on port 5353.Adguard is what clients get via DHCP etc. If I need to bypass the block list, I just use policy-based rules in the firewall and redirect the clients to port 5353 rather than 53.
Quote from: slackadelic on February 07, 2023, 01:55:39 pmMy solution at this time: I run Adguard Home from the plugins right on OPNsense on port 53. I then have Unbound running on port 5353.Adguard is what clients get via DHCP etc. If I need to bypass the block list, I just use policy-based rules in the firewall and redirect the clients to port 5353 rather than 53.Would you mind sharing the firewall rule that you use for this behaviour?Some details needed.... newbie here !I have the same setup as you (AdGuard running on Port 53; and forwarding to Unbound on Port 5353 as recursive resolver)I have a client that I wish to bypass adblocking:Router IP: 192.168.1.1 running AGH as main DNS resolver.Unbound: Running as recursive on port 5353Client IP (need to bypass): 192.168.1.81For the time being, I have just done the bypass of AdBlocking in AdGuardHome client settings.
Assume you have set your AdGuardHome working with AdBlock functionCurrently you want 192.168.1.81 to bypass AdBlock (but I assume you will want to add more IP later)You may skip step 1 if you think you will never add more IPs1. Firewall: Aliases, Create Alias withType: Host(s)Content: List of IPs you want to bypass (192.168.1.81)Name: ByPassAdBlock2. Firewall: NAT: Port Forward, Create new ruleInterface: LAN (assume the 192.168.1.81 is in LAN interface)TCP/IP Version: IPv4Protocol: UDPSource: ByPassAdBlockDestination: anyDestination port range: DNS to DNSRedirect target IP: 127.0.0.1Redirect target port: 5353