OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • AdGuard Home setup guide
« previous next »
  • Print
Pages: 1 ... 12 13 [14] 15 16

Author Topic: AdGuard Home setup guide  (Read 154174 times)

jlab

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
    • Jason's Channel
Re: AdGuard Home setup guide
« Reply #195 on: January 07, 2023, 10:11:47 pm »
Question :  How do you edit the interfaces on Adguard to listen to ?

Issue, if you have say 2+ more network's IE vlans or phicical network cards then install adguard, it will  listen to those interfaces, perfect.

Say you want to add another interface and have adguard protect it, there is no where to add the new interface.

I just did a trial on this, installed adguard, then added say a Vlan / inetwork interfact, passed traffic ok but Adguard is not listening and protecting those new interfaces.

Installed New Updated OPNsense added default lan network and 3 new Vlan's set them all up, then installed Adguard fresh & updated POOF all interfaces are being  monitored.

Is there a new version coming out where we can add or remove interfaces ?

AM i wrong or am i drunk  :D
Logged
My Youtube Networing & Lab Videos :
----------------------------------------
https://www.youtube.com/jasonslabvideos

RamSense

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 9
    • View Profile
Re: AdGuard Home setup guide
« Reply #196 on: January 08, 2023, 08:44:11 am »
So far as I know there are only 2 options now:
install adguard and listen on all interfaces
or
after installing adguard and adding a new interface you have to edit the yaml config file by hand.
Logged

jlab

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
    • View Profile
    • Jason's Channel
Re: AdGuard Home setup guide
« Reply #197 on: January 08, 2023, 05:25:17 pm »
Quote from: RamSense on January 08, 2023, 08:44:11 am
So far as I know there are only 2 options now:
install adguard and listen on all interfaces
or
after installing adguard and adding a new interface you have to edit the yaml config file by hand.

Yup, i actually Found Matt's website on how to do this : https://0x2142.com/how-to-set-up-adguard-on-opnsense/

Very Bottom.

Example how to add more networks is, Example Default with no additional networks :

In there, you'll see a section like this:
dns:
   bind_hosts:
       - 192.168.1.1

And one with more :

dns:
   bind_hosts:
       - 192.168.1.1
       - 192.168.10.1
       - 192.168.100.1

Logged
My Youtube Networing & Lab Videos :
----------------------------------------
https://www.youtube.com/jasonslabvideos

hushcoden

  • Sr. Member
  • ****
  • Posts: 395
  • Karma: 17
    • View Profile
Re: AdGuard Home setup guide
« Reply #198 on: January 09, 2023, 05:35:42 pm »
Sorry if it's a dumb question, but for

  1) AdGuard Home – DNS Configuration – Upstream servers
 
  2) AdGuard Home – DNS Configuration – Bootstrap DNS servers

  3) AdGuard Home – DNS Configuration – Private reverse DNS servers

I see someoen saying to use Opnsense ip:5353 and someone else to use 127.0.0.1:5353

Are those options exactly the same / should we use both ?

Tia.
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 395
  • Karma: 17
    • View Profile
Re: AdGuard Home setup guide
« Reply #199 on: January 09, 2023, 05:45:55 pm »
Quote from: yeraycito on September 22, 2022, 06:54:08 pm
Opnsense 22.7.4 Install:

1 - Activate mimugmail's community repository

2 - Install AdGuardHome from System --> Firmware --> Plugins

3 - 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 WAN

4 - Services – DHCPv4 – [LAN] : DNS Servers all empty

5 – Opnsense – Services - Unbound DNS – General

       Tick: Enable Unbound ( Listen Port: 5353 )

       Tick: Enable DNSSEC Support
       
       Network Interfaces: All

6 - Opnsense - Services - Unbound - Dns Over Tls

      Server IP: 1.1.1.1

      Server Port: 853

      Verify CN: cloudflare-dns.com

7 - Activate and start AdGuardHome from Services --> AdGuardHome

8 - Navigate to http://Opnsense ip:3000/ ( 192.168.1.1:3000 ) to complete the setup Adguard

9 - Adguard Home - DNS Configuration - Upstream Servers:

      Add Opnsense ip:5353  ( 192.168.1.1:5353 ) Delete those that exist

10 – 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

As I'm not interesting in using DoT, if I skip step (6), Unbound will act as my recursive resolver and will contact the root servers directly, is that right?

tia.
Logged

dumbo

  • Full Member
  • ***
  • Posts: 140
  • Karma: 3
    • View Profile
Re: AdGuard Home setup guide
« Reply #200 on: January 15, 2023, 02:50:00 pm »
Quote from: hushcoden on January 09, 2023, 05:35:42 pm
Sorry if it's a dumb question, but for
...

Tia.

Do have nearly the same questions as you.

I want to run Unbound as my upstream resolver for Adguard Home (and don't want to run DoT).

Couldn't find the right settings.
Logged

RamSense

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 9
    • View Profile
Re: AdGuard Home setup guide
« Reply #201 on: January 15, 2023, 08:45:13 pm »
Quote from: hushcoden on January 09, 2023, 05:35:42 pm
Sorry if it's a dumb question, but for

  1) AdGuard Home – DNS Configuration – Upstream servers
 
  2) AdGuard Home – DNS Configuration – Bootstrap DNS servers

  3) AdGuard Home – DNS Configuration – Private reverse DNS servers

I see someoen saying to use Opnsense ip:5353 and someone else to use 127.0.0.1:5353

Are those options exactly the same / should we use both ?

Tia.

127.0.0.1 is called the loopback address, and is the IP a computer uses to refer to itself.
Since you are running adguard home plugin on opnsense, it is running on the same device and points it to opnsense service listening on port 5353, e.g. your unbound listening to port 5353, or e.g. bind.

If you use the ip of your opnsense device, this will work also

no upstream servers in unbound / bind, Root servers are being used indeed
« Last Edit: January 15, 2023, 08:51:06 pm by RamSense »
Logged

RamSense

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 9
    • View Profile
Re: AdGuard Home setup guide
« Reply #202 on: January 15, 2023, 08:47:39 pm »
Quote from: dumbo on January 15, 2023, 02:50:00 pm
Quote from: hushcoden on January 09, 2023, 05:35:42 pm
Sorry if it's a dumb question, but for
...

Tia.

Do have nearly the same questions as you.

I want to run Unbound as my upstream resolver for Adguard Home (and don't want to run DoT).

Couldn't find the right settings.

DNS Configuration – Upstream servers -> 127.0.0.1:portnumber of unbound or OpnsenseIP:portnumber
Logged

dumbo

  • Full Member
  • ***
  • Posts: 140
  • Karma: 3
    • View Profile
Re: AdGuard Home setup guide
« Reply #203 on: January 16, 2023, 06:22:30 am »
Quote from: RamSense on January 15, 2023, 08:47:39 pm
DNS Configuration – Upstream servers -> 127.0.0.1:portnumber of unbound or OpnsenseIP:portnumber

Thx for your help.

So it must be like:
  • Upstream DNS servers = 127.0.0.1#'Port Number' or OPNsense IP + Port Number
  • Bootstrap DNS servers = 127.0.0.1#'Port Number' or OPNsense IP + Port Number
  • Private reverse DNS servers = 127.0.0.1#'Port Number' or OPNsense IP + Port Number

I would also like to read the host names of my devices - so that's why Private reverse servers DNS - or is it wrong?
Logged

RamSense

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 9
    • View Profile
Re: AdGuard Home setup guide
« Reply #204 on: January 16, 2023, 09:49:02 pm »
correct, but since you are not using external DNS as upstream, but your unbound on opnsense, it already knows your local devices from unbound, but you can add your ip there in the field in adguard just in case.
Logged

pmhausen

  • Hero Member
  • *****
  • Posts: 2789
  • Karma: 251
    • View Profile
Re: AdGuard Home setup guide
« Reply #205 on: January 16, 2023, 10:24:56 pm »
If the forward DNS server is identical with the one keeping your local forward and reverse zones, than you do not need the "private reverse" setting. This is for the occasions when the two are different.

I do not know what the "bootstrap" is for from the top of my head but I also do not set this. If AGH forwards to a full capable local resolver, e.g. Unbound or BIND, only the "upstream" setting is necessary.
Logged
Supermicro A2SDi-4C-HLN4F mainboard and SC101F chassis
16 GB ECC memory
Crucial MX300 275 GB SATA 2.5" plus
Crucial MX300 275 GB SATA M.2 (ZFS mirror)
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

dumbo

  • Full Member
  • ***
  • Posts: 140
  • Karma: 3
    • View Profile
Re: AdGuard Home setup guide
« Reply #206 on: January 17, 2023, 08:02:26 am »
Quote from: pmhausen on January 16, 2023, 10:24:56 pm
If the forward DNS server is identical with the one keeping your local forward and reverse zones, than you do not need the "private reverse" setting.

Thx. It's working. I didn't restart Unbound and AGH. That was the problem.

Now I only have to fix my issues with the NAT Port Forward Rule that no hardcoded DNS within my network can bypass my unbound.
The old rule does not work anymore because of my new setup :(
Logged

pmhausen

  • Hero Member
  • *****
  • Posts: 2789
  • Karma: 251
    • View Profile
Re: AdGuard Home setup guide
« Reply #207 on: January 17, 2023, 08:47:41 am »
Try to forward to 127.0.0.1 instead of your interface IP address.
Logged
Supermicro A2SDi-4C-HLN4F mainboard and SC101F chassis
16 GB ECC memory
Crucial MX300 275 GB SATA 2.5" plus
Crucial MX300 275 GB SATA M.2 (ZFS mirror)
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

dumbo

  • Full Member
  • ***
  • Posts: 140
  • Karma: 3
    • View Profile
Re: AdGuard Home setup guide
« Reply #208 on: January 17, 2023, 09:02:00 am »
Quote from: pmhausen on January 17, 2023, 08:47:41 am
Try to forward to 127.0.0.1 instead of your interface IP address.

You mean this way?
Logged

pmhausen

  • Hero Member
  • *****
  • Posts: 2789
  • Karma: 251
    • View Profile
Re: AdGuard Home setup guide
« Reply #209 on: January 17, 2023, 10:29:57 am »
Yes.
Logged
Supermicro A2SDi-4C-HLN4F mainboard and SC101F chassis
16 GB ECC memory
Crucial MX300 275 GB SATA 2.5" plus
Crucial MX300 275 GB SATA M.2 (ZFS mirror)
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

  • Print
Pages: 1 ... 12 13 [14] 15 16
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • AdGuard Home setup guide
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2