OPNsense Forum

English Forums => General Discussion => Topic started by: hushcoden on January 15, 2023, 11:28:10 AM

Title: AdGuard Home + Unbound on Raspberry Pi
Post by: hushcoden on January 15, 2023, 11:28:10 AM
I'm playing with my raspi and I have installed/configured AdGuard Home + Unbound to use it as a DNS server and want to test it with my OPNsense.

My LAN is on 192.168.0.1/24 while the raspi is connected to another port of my OPN box and labelled LAN3 and is on 192.168.20.1/24

The raspi static IP address is 192.168.20.50

Before turn OPNsense Unbound off, I need to point my LAN devices to the raspi IP address as their new DNS server, and was wondering if it would more logic / better to do that in System -> Settings -> General -> DNS servers or in Services -> DHCPv4 -> LAN -> DNS servers

What are the pros/cons of the two optoins?

tia.
Title: Re: AdGuard Home + Unbound on Raspberry Pi
Post by: hushcoden on January 19, 2023, 11:45:03 AM
Never mind, I'm testing the setup it seems working fine, but I have now a problem, that is I cannot update OPNsense: when I click on check updates OPNsense seems not able to find the servers and I suppose due to DNS issue?

Even disabling AdGuard protection nothing changes, how would I troubleshoot this, please?

Tia
Title: Re: AdGuard Home + Unbound on Raspberry Pi
Post by: hushcoden on January 21, 2023, 08:03:07 PM
Silly me, disabling Unbound, OPNsense had no DNS resolver  ::)  hence I did insert the raspi IP address onto System -> Settings -> General -> DNS servers and now OPNsense is up-to-date  :P

I'm still confused about the proper rules to have on both LAN and LAN3, if someone would be so kind to shed some light, please.

I did create a port forward rule, is it the right way ?

LAN       TCP/UDP       *       *       !Lan3 net       53 (DNS)       192.168.20.50         53 (DNS)          Redirect DNS to Raspi

or should I use

LAN       TCP/UDP       *       *       !This Firewall       53 (DNS)       192.168.20.50       53 (DNS)       Redirect DNS to Raspi


Tia.
Title: Re: AdGuard Home + Unbound on Raspberry Pi
Post by: jlab on January 22, 2023, 07:16:38 PM
Why not just install Adguard on the OPNSense box all together ?
Title: Re: AdGuard Home + Unbound on Raspberry Pi
Post by: hushcoden on February 13, 2023, 04:22:55 PM
Well, I really want to make use of my Raspberry Pi  :P

I have attached a screenshot of the rules of I have in LAN, LAN3 and port forward, in case anybody has some spare time to help me out.

Tia.