Adblock Alternative Adguard Home

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Adblock Alternative Adguard Home

Post by cobra98 »

Hi,
has anybody yet tried or using Adguard Home yet with Gargoyle?
https://forum.openwrt.org/t/howto-runni ... nwrt/51678
I meanly need it for youtube and would like to know your experience to it.
Also can i manually set Adblock too? If i set the gui youtube and save it does not stay in the list.
I would like to add a list to the configuration like
https://github.com/Ewpratten/youtube_ad_blocklist

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Adblock Alternative Adguard Home

Post by RomanHK »

The "AdguardHome" package is part of OpenWrt 21.02 and will be for Gargoyle in a very long time.

The Youtube adblock list is unmaintained and obsolete.

I'm using the "Adblock" package from OpenWrt with manual configuration and it suits me.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Adblock Alternative Adguard Home

Post by RomanHK »

If you still want to use the youtube block list, edit the file /usr/lib/adblock/runadblock.sh via ssh and add the following to line 107:
For Gargoyle <= 1.12.x:

Code: Select all

wget --no-check-certificate -qO- https://raw.githubusercontent.com/Ewpratten/youtube_ad_blocklist/master/blocklist.txt | awk -v r="$ENDPOINT_IP4 " '{sub(/^/, r)} $0 ~ "^"r' >> /tmp/block.build.list
For Gargoyle => 1.13.x:

Code: Select all

ewget https://raw.githubusercontent.com/Ewpratten/youtube_ad_blocklist/master/blocklist.txt 2>/dev/null | awk -v r="$ENDPOINT_IP4 " '{sub(/^/, r)} $0 ~ "^"r' >> /tmp/block.build.list
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Adblock Alternative Adguard Home

Post by cobra98 »

Thank you, what list do you have?
Meanwhile i tried these dns servers
Primary: 23.253.163.53
Secondary: 198.101.242.72
https://www.instructables.com/Block-Ads ... ing-DNS-S/
but it does not work always.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Adblock Alternative Adguard Home

Post by RomanHK »

I'm a little complicated. I use DNSMASQ (DNS) for local names and then UNBOUND, where I use AdBlock from OpenWrt + DNSSEC + DNS over TLS (DOT) open validating resolvers from nic.cz

Code: Select all

193.17.47.1
185.43.135.1
Configuring /etc/dnsmasq.conf with adding lines:

Code: Select all

no-resolv
server=127.0.0.1#5353
Configuration of /etc/config/unbound:

Code: Select all

config unbound
	option dns64 '0'
	option edns_size '1280'
	option extended_stats '0'
	option hide_binddata '1'
	option localservice '1'
	option manual_conf '0'
	option num_threads '1'
	option recursion 'default'
	option resource 'default'
	option root_age '9'
	option ttl_min '120'
	option verbosity '1'
	option enabled '1'
	option validator '1'
	option validator_ntp '1'
	option unbound_control '0'
	option rebind_localhost '1'
	option rebind_protection '1'
	option dhcp_link 'dnsmasq'
	option listen_port '5353'
	option protocol 'ip4_only'
	option domain 'lan'
	list trigger_interface 'lan'
	list trigger_interface 'wan'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	list server '2001:148f:ffff::1'
	list server '193.17.47.1'
	list server '2001:148f:fffe::1'
	list server '185.43.135.1'
	option tls_upstream '1'
	option tls_index 'odvr.nic.cz'
	option enabled '1'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	list server '2001:4860:4860::8888'
	list server '8.8.8.8'
	list server '2001:4860:4860::8844'
	list server '8.8.4.4'
	option tls_upstream '1'
	option tls_index 'dns.google'
	option enabled '0'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	list server '2620:fe::fe'
	list server '9.9.9.9'
	list server '2620:fe::9'
	list server '149.112.112.112'
	option tls_upstream '1'
	option tls_index 'dns.quad9.net'
	option enabled '0'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	list server '2606:4700:4700::1111'
	list server '1.1.1.1'
	list server '2606:4700:4700::1001'
	list server '1.0.0.1'
	option tls_upstream '1'
	option tls_index 'cloudflare-dns.com'
	option enabled '0'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	list server '2001:470:20::2'
	list server '74.82.42.42'
	option tls_upstream '1'
	option tls_index 'ordns.he.net'
	option enabled '0'

config zone
	option fallback '1'
	option zone_type 'forward_zone'
	list zone_name '.'
	option resolv_conf '1'
	option enabled '0'
Configuration of /etc/config/adblock:

Code: Select all

config adblock 'global'
	option adb_enabled '1'
	option adb_debug '0'
	option adb_forcedns '0'
	option adb_safesearch '0'
	option adb_dnsfilereset '0'
	option adb_mail '0'
	option adb_backup '1'
	option adb_maxqueue '4'
	option adb_fetchutil 'uclient-fetch'
	option adb_dns 'unbound'
	option adb_triggerdelay '60'
	option adb_report '0'
	option adb_repiface 'br-lan'
	option adb_backupdir '/tmp/usb_mount/dev_sda1'
	list adb_sources 'malwaredomains'
	list adb_sources 'malwarelist'
	list adb_sources 'reg_cz'
	list adb_sources 'utcapitole'
	list adb_sources 'winhelp'
	list adb_sources 'yoyo'
Problems with Google Play have been found and you need to whitelist the following domains for this to work:
Configuration of /etc/adblock/adblock.whitelist:

Code: Select all

drive.google.com
gvt1.com
gvt2.com
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Adblock Alternative Adguard Home

Post by RomanHK »

cobra98 wrote: Meanwhile i tried these dns servers
Primary: 23.253.163.53
Secondary: 198.101.242.72
And shouldn't you have these IP addresses set up (the ones you wrote will probably be obsolete)?

Code: Select all

76.76.19.19
76.223.122.150
Source: https://alternate-dns.com/index.php
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Adblock Alternative Adguard Home

Post by cobra98 »

Thank you :)

The IPs of DNS you wrote in the beginning are from where?
The ones in the end you wrote, i should exchange them with the ones i wrote?

Can i use the settings you wrote instead just dns solution i had?

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Adblock Alternative Adguard Home

Post by RomanHK »

cobra98 wrote: The IPs of DNS you wrote in the beginning are from where?
IP addresses 76.xx ... I got from here (it should be a host source):
Image
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Adblock Alternative Adguard Home

Post by cobra98 »

i put the recommended dns but still have some youtube ads coming, not so often as before.
Shall i use your settings / may i additional?
DNS i guess i have to use the one from alternate dns

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Adblock Alternative Adguard Home

Post by cobra98 »

if i use /etc/dnsmasq.conf your settings no resolve is possible anymore
unbound i had to create the file.
(But has it any effect?)
Directory adblock i can not see, in the gui "add button" is missing there too.

Post Reply