Announce: new OPNsense community repository

Started by mimugmail, January 09, 2021, 10:39:06 AM

Previous topic - Next topic
March 19, 2021, 07:32:08 PM #60 Last Edit: March 19, 2021, 07:54:30 PM by tusc
@N0_Klu3, I've set it up where Adguard listens on port 53 and point the upstream DNS to the Unbound DNS server on OPNSense. You just need to change the port Unbound is listening on (e.g. 7553) and update Adguard upstream section accordingly.

This way local IP addresses have name resolution since the DHCP server on OPNsense registers all addresses and returned by Unbound. Hope this helps.


@tusc, ye thats what I'm looking for.
Can you give me more info? Or some screenshots?

Right now I just put my AdGuard IP as DNS in General, and then told Unbound to forward requests instead.
This works for the most part but I am seeing some issues.

Not not on the first try, but on another machine when I try to assign a different port on unbound, the system updater couldn't find any updates, so I had to put unbound back to Port 53 and then use a port forwarding rule to direct traffic to the different port that I put adguard home on.

AdGuard needs an upstream DNS anyway, because it is not a fully functional recursive resolver. Therefore instead of letting AdGuard forward to Cloudflare, Google, what-have-you ... I would (and I do) have AdGuard listen to port 53 on all interfaces and then forward to either Unbound or BIND configured to listen on some high port.

To reconfigure AdGuard's listening address you need to edit its config file, no UI for that yet. It's /usr/local/AdGuardHome/AdGuardHome.yaml:dns:
  bind_host: 0.0.0.0
  port: 53
[...]
  upstream_dns:
  - 127.0.0.1:53530


127.0.0.1:53530 is my BIND. You can configure Unbound to do the same.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I created this guide for AdGuard home.
https://forum.opnsense.org/index.php?topic=22162

Please review and scrutinise, I am more than happy to be corrected and get a better solution for all.

Quote from: pmhausen on March 19, 2021, 10:11:11 PM
To reconfigure AdGuard's listening address you need to edit its config file, no UI for that yet. It's /usr/local/AdGuardHome/AdGuardHome.yaml:dns:
  bind_host: 0.0.0.0
  port: 53
[...]
  upstream_dns:
  - 127.0.0.1:53530


127.0.0.1:53530 is my BIND. You can configure Unbound to do the same.
It seems to me with Unbound you cannot select a 'custom' IP address...

Just a quick question regarding AdGuard.  I installed it, poked around with it, and now I want to start fresh.  However, upon reinstall, my settings still exist.  Where can I wipe these and/or reset to defaults?

Thanks!

~Spritz

/usr/local/AdGuardHome
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: pmhausen on April 19, 2021, 10:26:24 AM
/usr/local/AdGuardHome

ugh, thanks for that.  For some reason the first time I deleted that directory, it didn't seem to do anything.  I even went so far as to do a locate on AdGuard and delete all mention of it (to no avail).  That said, the second time I removed that directory, it worked fine.

Thanks again for your help!

~Spritz

Still loving the AdGuardHome plugin and that it works flawlessly on the same device as my opnsense installation.

I noticed from "System -> Firmware -> Plugins" that it shows up now as:

os-adguardhome-maxit (misconfigured)

It doesn't seem to affect things, but I did try deleting and reinstalling the software to see if it would go away and it doesn't? The console also displayed something about the metadata in /usr/local/opnsense/version/adguardhome-maxit being invalid or something?

I'll roll out a new batch fixing it. My build plattform was missing some commits

Firstly, thank you mimugmail for providing this repository, it's very useful.

Secondly, and this is not a complaint!..  AdGuard has had an update available for about a week (v0.106.3) but I'm seeing no update on the repository. Has the packaging and uploading of updates to the repository been automated? Could it be?


You can always Update via AdGuardHome UI, this works too. Next Plugin update will be 0.107

June 02, 2021, 05:07:50 PM #73 Last Edit: June 02, 2021, 05:16:51 PM by tracerrx
Thanks for the repo!

Is there a way to automate or change how often/when speedtest-cli runs via the GUI? 

Update: Nevermind, Schedule in cron, and add server ID as a param... got it.

Is the Maltrail plugin still maintained and updated?