Home Assistant Community Add-on: AdGuard Home

Would it be possible to make your own self-hosted filter containing the Facebook-URL and add/remove subscription to it by using the adguard.enable_url and adguard.disable_url services in an automation?

1 Like

I have a github repository with a fb, whatsapp and instagram filter

1 Like

@Skeletorjus yes, probably using the urls provided by @gieljnssns I will make an automation to explicitly enable/disable facebook filtering urlā€¦

Thanks guys!

Did it work?

Yes, tried yesterday, works perfect, thanks

hereā€™s some basic usage with input boolean switch, you can change the trigger to timebased or whateverā€¦


input_boolean:
  allowfacebook:
    name: Allow Facebook
    # initial: on
    icon: mdi:facebook


automation:
  - id: enable_facebook
    alias: Enable Facebook
    hide_entity: true
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: input_boolean.allowfacebook
      to: 'on'
    action:
    - service: adguard.disable_url
      data:
        url: https://raw.githubusercontent.com/gieljnssns/Block_facebook_dns/master/adguard-facebook.txt

  - id: disable_facebook
    alias: Disable Facebook
    hide_entity: true
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: input_boolean.allowfacebook
      to: 'off'
    action:
    - service: adguard.enable_url
      data:
        url: https://raw.githubusercontent.com/gieljnssns/Block_facebook_dns/master/adguard-facebook.txt
2 Likes

Iā€™ve added 2 extra filters, for youtube and tiktok
So I renamed my repository to Social-media-Blocklists because itā€™s not only for facebook anymoreā€¦

1 Like

does it block facebook, youtube
or it blocks ads from facebook and youtube

It should block whole Facebook and YouTube.

1 Like

Hi all, maybe a stupid question:

Iā€™ve installed the addon on my hassio running inside my synology nas.

Now itā€™s monitoring this ip adresses:

  • 127.0.0.1
  • ::1
  • 192.168.2.100
  • 172.19.0.1
  • 172.21.0.1
  • 172.24.0.1
  • 172.20.0.1
  • 172.30.32.1
  • 172.17.0.1
  • 172.18.0.1
  • 172.22.0.1

(192.168.2.100 is my NAS IP running hassio). Do I have to change DSN to 192.168.2.100 on my router to allow ad guard to monitor all my traffic?

yep, if you donā€™t, the traffic wonā€™t go to AdGuard, right? :wink:

1 Like

In case of a router running OpenWRT, you have to go to your LAN interface settings, DHCP server and Advanced Settings:
image

I know it was a stupid question :sweat_smile: but I wanted to be sure before doing it.

Thanks

@joem I have Asus Merlin firmware running on Netgear R7000 (I know, itā€™s complicated) so page is different but similar. Thank you!

:tada: Release v2.3.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrade Adguard to 0.100.5 (#41)
  • :fireworks: Updates maintenance/license year to 2020
  • :arrow_up: Upgrades add-on base image to v6.0.1
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :books: Adjust add-on installation instructions
  • :arrow_up: Upgrades nginx to 1.16.1-r4
  • :arrow_up: Upgrades lua-resty-http to 0.15-r0
  • :arrow_up: Upgrades AdGuard Home to v0.100.8
  • :pencil2: Fixes some spelling and grammar

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Since installing v2.3.0, the switch switch.adguard_protection no longer works. If I toggle it to off (developer tools/ states), it turns off for about 1 second, the toggles back on again. All other switches ( switch.adguard_parental_control etc ) behave normally. I can turn off AdGuard Protection from the ingress dashboard still. I love this add-on, but I do miss the ability to turn off the master switch from my Lovelace home page.
Any help would be appreciated!

Please raise an issue with Home Assistant in those cases, so it can be address/fixed/looked at: https://github.com/home-assistant/home-assistant/issues

Will do -thanks!
ā€¦ for anyone with the same problem : https://github.com/home-assistant/home-assistant/issues/30519

Hi Franck,
Since updating Adguard to v2.3.0, I am unable to resolve DNS requests. I had to switch back to PiHole.
I removed the add-on and reinstalled the add-on but still no resolving.

Any ideas as to what it can be?

There is not much from a ā€œit doesnā€™t workā€ description I can do to help you.

Hi Franck,

I understand that.
I see an error in the trace log: Couldnā€™t load filter 1 contents due to stat /data/adguard/data/filters/1.txt: no such file or directory
Here is the whole trace log:
2020/01/09 06:42:08 [info] Upstream 0: https://dns.quad9.net:443/dns-query
2020/01/09 06:42:08 [error] Couldnā€™t load filter 1 contents due to stat /data/adguard/data/filters/1.txt: no such file or directory
2020/01/09 06:42:08 [info] Go to http://127.0.0.1:45158
2020/01/09 06:42:08 [info] Starting the DNS proxy server
2020/01/09 06:42:08 [info] Ratelimit is enabled and set to 20 rps
2020/01/09 06:42:08 [info] The server is configured to refuse ANY requests
2020/01/09 06:42:08 [info] DNS cache is enabled
2020/01/09 06:42:08 [info] Creating the UDP server socket
2020/01/09 06:42:08 [info] Listening to udp://[::]:53
2020/01/09 06:42:08 [info] Creating the TCP server socket
2020/01/09 06:42:08 [info] Listening to tcp://[::]:53
2020/01/09 06:42:08 [info] Entering the UDP listener loop on [::]:53
2020/01/09 06:42:08 [info] Entering the tcp listener loop on [::]:53
2020/01/09 06:42:08 [info] Couldnā€™t request filter from URL https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt, skipping: Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: couldnā€™t initialize HTTP client or transport, cause: couldnā€™t initialize HTTP transport, cause: couldnā€™t bootstrap https://dns.quad9.net:443/dns-query, cause: couldnā€™t find any suitable IP address for host dns.quad9.net
2020/01/09 06:42:08 [info] Failed to update filter https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: couldnā€™t initialize HTTP client or transport, cause: couldnā€™t initialize HTTP transport, cause: couldnā€™t bootstrap https://dns.quad9.net:443/dns-query, cause: couldnā€™t find any suitable IP address for host dns.quad9.net

2020/01/09 06:42:08 [error] os.Chtimes(): chtimes /data/adguard/data/filters/1.txt: no such file or directory