Page 1 of 2
Adblock Alternative Adguard Home
Posted: Mon Mar 22, 2021 2:31 pm
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
Re: Adblock Alternative Adguard Home
Posted: Mon Mar 22, 2021 4:36 pm
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.
Re: Adblock Alternative Adguard Home
Posted: Mon Mar 22, 2021 5:53 pm
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
Re: Adblock Alternative Adguard Home
Posted: Mon Mar 22, 2021 7:24 pm
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.
Re: Adblock Alternative Adguard Home
Posted: Tue Mar 23, 2021 4:39 am
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
Configuring
/etc/dnsmasq.conf with adding lines:
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
Re: Adblock Alternative Adguard Home
Posted: Tue Mar 23, 2021 5:29 am
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)?
Source:
https://alternate-dns.com/index.php
Re: Adblock Alternative Adguard Home
Posted: Tue Mar 23, 2021 2:18 pm
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?
Re: Adblock Alternative Adguard Home
Posted: Tue Mar 23, 2021 2:31 pm
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):

Re: Adblock Alternative Adguard Home
Posted: Wed Mar 24, 2021 10:51 am
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
Re: Adblock Alternative Adguard Home
Posted: Wed Mar 24, 2021 11:10 am
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.