


If you want, you can set an expire on the Item to reenable the protection after a suitable amount of time. No, that is not my real URL, username, and password. StateTransformation: JSONPATH:$.protection_enabled I could not get this to work using the State Content field so Jinja to the rescue.ĬommandTransformation: 'JINJA:' You will need to check “show advanced” to see all of these properties. The full YAML is below but I’ll also describe the properties set: Thing a recent OH (anything in the past few years ought to work, I ran this on OH 4 SNAPSHOT though).AdGuard Home (tested with v0.107.21 running on FreeBSD opnSense).

Look at the docs to see which API endpoints you need to use and the data you need to send. just enable/disable for one client, just disable parental controls, etc.) the API appears to support that. Note: this is a global enable/disable of all protections. Usually it’s a link in an email or the link that is riddled with trackers but we want to access it anyway. Occasionally I or my SO will encounter a link we want to go to that gets blocked by AdGuard. They haven’t deployed the “v1” version of the API yet so you’ll need to look at the openapi docs (the one where the endpoint starts with /control. The REST API docs for the current version of AdGuard Home is located at AdGuardHome/openapi at master Wish I could mark this as solved for others.I had a very simple requirement and I wanted to share the solution in case there are others using AdGuard Home on their network.ĪdGuard Home has a REST API that works with BASIC AUTH that provides a number of endpoints to gather information and change the settings. I also rolled back to an even older checkpoint and found a working yaml file with the necessary settings. When I pulled up the old checkpoint, the yaml file was completely empty (!) but in the backup folder, I could access a version of the yaml file. Stop Adguard plug in and copy/paste the yaml file in to overwrite the existing file. **SOLVED** Adding instructions in case anyone else needs it.Įnable Secure Shell (OPNSense -> System -> Settings -> Administration)Īll data is stored on AdGuardHome.yaml. Is there a way I can get into the nuts and bolts and pull the settings of AGH? At that point, AGH is correctly configured (split DNS, client names, etc) but it is after the point that AGH keeps crashing already so I cannot do it through the UI. I can easily go back and forth to that time point. My OPNSense is in a VM and thankfully I have checkpoints from before I uninstalled/reinstalled AGH. I was able to fully update OPNSense, then uninstall and reinstall AGH to get it running again. I upgraded OPNSense and it borked mimugmail's Adguard Home plugin for me.
