mimugmail / opn-repo

OPNsense repo by mimugmail
Other
325 stars 24 forks source link

CARP Sync of AdGuard settings #140

Open huwylphi opened 1 year ago

huwylphi commented 1 year ago

Hi, I've 2 OPNsense instances with High Availability feature enabled. I'm using the os-adguardhome-maxit plugin on both OPNsense instances. That way I can use the AdGuardHome from 1st firewall instance as first DNS server and the AdGuardHome from the 2nd firewall instance as 2nd DNS server. In the AdGuardHome I've added some DNS rewrites entries but have to maintain that list in both AdGuardHome instance manually. Would it be possible to synchronize such AdGuard settings across CARP sync between both firewall?

image

image

mimugmail commented 1 year ago

No this isnt possible since AGH uses its own config and UI. Only the Enable checkbox could be synced

huwylphi commented 1 year ago

Thanks for that quick feedback! Then maybe some script might be able to sync the AGH yaml configuration. A script that might be manually triggered over some action in the OPNsense AGH setting page. But this might also be out of scope eventually...

huwylphi commented 1 year ago

Hi! just wanted to update that issue about the solution I finally found to sync two AGH instances: bakito/adguardhome-sync. This solution is able to sync 2 (or multiple) AGH over API. We can even configure which settings should stay in sync and in which period (cron). Maybe that package could be added as new plugin in OPNsense? (currently I just run a docker container on some docker host in the network and that works fine too)