3 - Opnsense - System - Settings -General DNS Servers: 192.168.1.210 Untick: Do not use the local DNS service as a nameserver for this system Untick: Allow DNS server list to be overridden by DHCP/PPP on WAN4 - Services – DHCPv4 – [LAN] : DNS Servers all empty5 – Opnsense – Services - Unbound DNS – General Tick: Enable Unbound ( Listen Port: 5353 ) Tick: Enable DNSSEC Support Network Interfaces: All6 - Skipped using unbound to resolve or might add later.7 - Activate and start AdGuardHome from Services --> AdGuardHome8 - Navigate to http://192.168.1.210:3001 to complete the setup Adguard9 - Adguard Home - DNS Configuration - Upstream Servers: Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist10 – Adguard Home – DNS Configuration – Bootstrap DNS servers Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist 11 - Adguard Home - DNS Configuration - Private reverse DNS servers: 192.168.1.1:5353
Truenas scale:Version:OPNsense 23.7.8_1-amd64 running in a VMOpnsense IP 192.168.1.1Adguard IP 192.168.1.210 (Docker)I have done these steps I skipped step 1-3 as it is running in containerQuote3 - Opnsense - System - Settings -General DNS Servers: 192.168.1.210 Untick: Do not use the local DNS service as a nameserver for this system Untick: Allow DNS server list to be overridden by DHCP/PPP on WAN4 - Services – DHCPv4 – [LAN] : DNS Servers all empty5 – Opnsense – Services - Unbound DNS – General Tick: Enable Unbound ( Listen Port: 5353 ) Tick: Enable DNSSEC Support Network Interfaces: All6 - Skipped using unbound to resolve or might add later.7 - Activate and start AdGuardHome from Services --> AdGuardHome8 - Navigate to http://192.168.1.210:3001 to complete the setup Adguard9 - Adguard Home - DNS Configuration - Upstream Servers: Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist10 – Adguard Home – DNS Configuration – Bootstrap DNS servers Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist 11 - Adguard Home - DNS Configuration - Private reverse DNS servers: 192.168.1.1:5353I followed all steps, but like I mentioned my adguard is running remote on another IP in the same network.I run truenas and have containers running all working fine when I use only unbound.When I start to use above setup with adguard. I can search the internet etc.Can someone explain me the addidiontal steps or what am I doing wrong?System - Settings - General - DNS servers list - 192.168.1.210Services - DHCPv4 - [LAN] DNS servers - 192.168.1.210As soon as I put back unbound back to 53 everything is working just fine on homeassistant.When I use adguard with above settings somehow tuya stops working for the lights and there seems to be problems from homeassistant reaching 443 for example lights running with tuya and solardedge and soem cloud services running on 443 seem to sto pworking.Unboud is set at 5353 and adguard at 53I tried forcing DNS to redirect to 192.168.1.210. By creating NAT forward rules. Nothing seem to help and if I use such rules nothing works?Please provide me with an example. And perhaps I make this rule wrong because the example are all on opnsense ip or 127.0.0.1.
Thank you very much, I have tried it and it works.Opnsense 22.1 Clean Install - Installation:It is very important to follow the order explained1 - Activate mimugmail's community repository2 - Install AdGuardHome from System --> Firmware --> Plugins3 - Activate and start AdGuardHome from Services --> AdGuardHome4 - Opnsense - System - Settings -General Untick: Do not use the local DNS service as a nameserver for this system Untick: Allow DNS server list to be overridden by DHCP/PPP on WAN 5 - Opnsense - Services - Unbound - Dns Over Tls Set the desired dns servers, ej, Cloudflare: Server IP: 1.1.1.1 Server Port: 853 Verify CN: cloudflare-dns.com6 - Opnsense - Services - Unbound - General Listen Port: 53537 - Navigate to http://your.opnsense:3000/ ( 192.168.1.1:3000 ) to complete the setup Adguard8 - Adguard Home - DNS Configuration - Upstream Servers: Add router_ip:5353 ( 192.168.1.1:5353 ) Delete those that existSecurity Extra: https://www.sunnyvalley.io/docs/network-security-tutorials/how-to-configure-opnsense-firewall-rules#1-allowing-only-specific-dns-servers
Opnsense 23.1 Install:1 - Activate mimugmail's community repository:SSH Opnsense: fetch -o /usr/local/etc/pkg/repos/mimugmail.conf https://www.routerperformance.net/mimugmail.conf2 - Install AdGuardHome from System --> Firmware --> Plugins3 - Opnsense - System - Settings -General DNS Servers: empty Untick: Do not use the local DNS service as a nameserver for this system Untick: Allow DNS server list to be overridden by DHCP/PPP on WAN4 - Services – DHCPv4 – [LAN] : DNS Servers all empty5 – Opnsense – Services - Unbound DNS – General Tick: Enable Unbound ( Listen Port: 5353 ) Tick: Enable DNSSEC Support Network Interfaces: All6 - Opnsense - Services - Unbound - Dns Over Tls Server IP: 1.1.1.1 Server Port: 853 Verify CN: cloudflare-dns.com7 - Activate and start AdGuardHome from Services --> AdGuardHome8 - Navigate to http://Opnsense ip:3000/ ( 192.168.1.1:3000 ) to complete the setup Adguard9 - Adguard Home - DNS Configuration - Upstream Servers: Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist10 – Adguard Home – DNS Configuration – Bootstrap DNS servers Add Opnsense ip:5353 ( 192.168.1.1:5353 ) Delete those that exist 11 - Adguard Home - DNS Configuration - Private reverse DNS servers: 192.168.1.1:5353
Quote from: yeraycito on January 28, 2022, 07:26:33 pmThank you very much, I have tried it and it works.Opnsense 22.1 Clean Install - Installation:It is very important to follow the order explained1 - Activate mimugmail's community repository2 - Install AdGuardHome from System --> Firmware --> Plugins3 - Activate and start AdGuardHome from Services --> AdGuardHome4 - Opnsense - System - Settings -General Untick: Do not use the local DNS service as a nameserver for this system Untick: Allow DNS server list to be overridden by DHCP/PPP on WAN 5 - Opnsense - Services - Unbound - Dns Over Tls Set the desired dns servers, ej, Cloudflare: Server IP: 1.1.1.1 Server Port: 853 Verify CN: cloudflare-dns.com6 - Opnsense - Services - Unbound - General Listen Port: 53537 - Navigate to http://your.opnsense:3000/ ( 192.168.1.1:3000 ) to complete the setup Adguard8 - Adguard Home - DNS Configuration - Upstream Servers: Add router_ip:5353 ( 192.168.1.1:5353 ) Delete those that existSecurity Extra: https://www.sunnyvalley.io/docs/network-security-tutorials/how-to-configure-opnsense-firewall-rules#1-allowing-only-specific-dns-serversI wanted to add this here, as I spent hours trying to figure out what I was missing.I would follow the above steps and get everything working for maybe a few minutes, but eventually none of my devices would have internet access. Both AdGuard Home and Unbound showed that they were receiving DNS traffic, but clearly something was wrong.The problem was that I had previously configured DNS overrides in Unbound. Disabling/deleting my previously configured Unbound DNS overrides solved my issue. I then created those same overrides in AdGuard under Filters -> DNS rewrites.