YT blocking works nicely.
What does
What does
mean when runningadded 32 datas
Code:
/opt/var/lib/unbound/adblock/gen_ytadblock.sh
mean when runningadded 32 datas
/opt/var/lib/unbound/adblock/gen_ytadblock.sh
Thank you, now everything is working OK. Adblock and youtube Ad.Apologies , there is a typo in the cron schedule preventing the every 5 minute job from constantly monitoring/refreshing the dynamic YT Ad Servers list.
Please ensure you download the latest v3.11 Hotfix and follow the instructions in the v3.11 post#
YT blocking works nicely.
What does
mean when runningCode:added 32 datas
Code:/opt/var/lib/unbound/adblock/gen_ytadblock.sh
unbound-control list_local_data | grep -F "googlevideo.com" | awk 'END{print "Total="NR} { print NR, $0 }''
Martineau said:Hmmm, might be worth adding this metric to the '?' display ?
[✔] YouTube Ad Blocking (Forcing to use YT IP 173.194.135.104) Count=nn
[✔] Ad and Tracker Blocking (No. of Adblock domains=55203,Blocked Hosts=0,Whitelist=19)
YT blocking works nicely.
What does mean when runningCode:/opt/var/lib/unbound/adblock/gen_ytadblock.sh
Whats difference between unbound YT blocker and using diversion YT blocker? Is it the same script but separate for those who prefer unbound with ad blocking as opposed to unbound with diversion for ad blocking?People finding YT ad blocking is working well? If so, I will move the script to my master branch from the dev branch.
Please reply with your findings.
Its the same idea but executed differently... Diversion lifts the domains from the dnsmasq.log and unbound lifts them from a cache dumpWhats difference between unbound YT blocker and using diversion YT blocker? Is it the same script but separate for those who prefer unbound with ad blocking as opposed to unbound with diversion for ad blocking?
Its the same idea but executed differently... Diversion lifts the domains from the dnsmasq.log and unbound lifts them from a cache dump
For unbound it simply uses the first one it finds in the initial cache dumpAny idea what the logic is behind which YT IP address is chosen ? Eg when Unbound is primary DNS for all LAN clients my YT IP address is 220.233.204.109. When dnsmasq is enabled and Diversion is active The forced IPv4 address for YT is: 173.194.28.9
echo "No stored IP in file $ipYTforce, checking cache for an ip..."
unbound-control dump_cache | awk '/.*\.googlevideo.*\.[0-9].*\./{print $5;exit}' > "$ipYTforce"
cru a ytadblock "*/5 * * * * "/opt/var/lib/unbound/adblock/gen_ytadblock.sh" # unbound_manager
cru a adblock "0 5 * * * "/opt/var/lib/unbound/adblock/gen_adblock.sh" # unbound_manager
cru a ytadblock "*/5 * * * * /opt/var/lib/unbound/adblock/gen_ytadblock.sh" # unbound_manager
cru a adblock "0 5 * * * /opt/var/lib/unbound/adblock/gen_adblock.sh" # unbound_manager
Seems to be working well herePeople finding YT ad blocking is working well? If so, I will move the script to my master branch from the dev branch.
Please reply with your findings.
Well if you attempted to refer to either device by name, it wouldn't be possible, however by IP address it should.....
e.g. this should work
but what would you specify in the following command to find out what IP Address is assigned to the named device on your local domain?Code:nslookup 192.168.1.101
Have you actually given a name to each of the two devices using 'dnsmasq.conf.add' or perhaps 'dnsmasq.postconf'?Code:nslookup ??????.AC86U.
local-zone: <zone> <type>
Configure a local zone. The type determines the answer to give
if there is no match from local-data. The types are deny,
refuse, static, transparent, redirect, nodefault, typetranspar-
ent, inform, inform_deny, inform_redirect, always_transparent,
always_refuse, always_nxdomain, noview, and are explained below.
After that the default settings are listed. Use local-data: to
enter data into the local zone. Answers for local zones are
authoritative DNS answers. By default the zones are class IN.
local-data: "<resource record string>"
Configure local data, which is served in reply to queries for it.
The query has to match exactly unless you configure the local-zone
as redirect. If not matched exactly, the local-zone type deter-
mines further processing. If local-data is configured that is not
a subdomain of a local-zone, a transparent local-zone is config-
ured. For record types such as TXT, use single quotes, as in
local-data: 'example. TXT "text"'.
## DnsSpoof of unwanted or restricted sites
local-zone: "doubleclick.net" redirect
local-data: "doubleclick.net A 10.0.0.111"
local-zone: "facebook.com" redirect
local-data: "facebook.com A 10.0.0.111"
always_nxdomain
Like static, but ignores local data and returns nxdomain for
the query.
local-zone: "000owamail0.000webhostapp.com" always_nxdomain
local-zone: "000tristanprod.free.fr" always_nxdomain
local-zone: "005.free-counter.co.uk" always_nxdomain
local-zone: "006.free-counter.co.uk" always_nxdomain
local-zone: "006.freecounters.co.uk" always_nxdomain
local-zone: "007.free-counter.co.uk" always_nxdomain
local-zone: "007angels.com" always_nxdomain
local-zone: "008.free-counter.co.uk" always_nxdomain
local-zone: "008.free-counters.co.uk" always_nxdomain
local-zone: "00author.com" always_nxdomain
local-zone: "00go.com" always_nxdomain
local-zone: "00it.com" always_nxdomain
May 9 22:23:53 dnsmasq[14483]: query[A] www.facebook.com from 192.168.50.129
May 9 22:23:53 dnsmasq[14483]: query[A] www.facebook.com from 192.168.50.129
May 9 22:23:53 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:53 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:53 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:53 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:53 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 157.240.11.35
May 9 22:23:53 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 157.240.11.35
May 9 22:23:57 dnsmasq[14483]: query[A] mqtt.c10r.facebook.com from 192.168.50.230
May 9 22:23:57 dnsmasq[14483]: query[A] mqtt.c10r.facebook.com from 192.168.50.230
May 9 22:23:57 dnsmasq[14483]: forwarded mqtt.c10r.facebook.com to 127.0.0.1
May 9 22:23:57 dnsmasq[14483]: forwarded mqtt.c10r.facebook.com to 127.0.0.1
May 9 22:23:57 dnsmasq[14483]: reply mqtt.c10r.facebook.com is 157.240.11.12
May 9 22:23:57 dnsmasq[14483]: reply mqtt.c10r.facebook.com is 157.240.11.12
May 9 22:23:58 dnsmasq[14483]: query[A] www.facebook.com from 192.168.50.129
May 9 22:23:58 dnsmasq[14483]: query[A] www.facebook.com from 192.168.50.129
May 9 22:23:58 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:58 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:58 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:58 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:58 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 157.240.11.35
May 9 22:23:58 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 157.240.11.35
May 9 22:23:58 dnsmasq[14483]: query[AAAA] www.facebook.com from 192.168.50.129
May 9 22:23:58 dnsmasq[14483]: query[AAAA] www.facebook.com from 192.168.50.129
May 9 22:23:58 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:58 dnsmasq[14483]: forwarded www.facebook.com to 127.0.0.1
May 9 22:23:58 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:58 dnsmasq[14483]: reply www.facebook.com is <CNAME>
May 9 22:23:58 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 2a03:2880:f10d:183:face:b00c:0:25de
May 9 22:23:58 dnsmasq[14483]: reply star-mini.c10r.facebook.com is 2a03:2880:f10d:183:face:b00c:0:25de
Many thanks, I've pushed HotfixThe services-start entries for adblock and ytadblock are as below when these services are enabled in unbound -
Code:cru a ytadblock "*/5 * * * * "/opt/var/lib/unbound/adblock/gen_ytadblock.sh" # unbound_manager cru a adblock "0 5 * * * "/opt/var/lib/unbound/adblock/gen_adblock.sh" # unbound_manager
I believe they should be
Code:cru a ytadblock "*/5 * * * * /opt/var/lib/unbound/adblock/gen_ytadblock.sh" # unbound_manager cru a adblock "0 5 * * * /opt/var/lib/unbound/adblock/gen_adblock.sh" # unbound_manager
Thanks for the feedback.glehel@AC86U-VPN:/tmp/home/root# nslookup Zara-Moto-G.SAFENET-AC86U.
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost.localdomain
Name: Zara-Moto-G.SAFENET-AC86U.
Address 1: 192.168.1.112 Zara-Moto-G
working! I added manual domain line in unbound.conf.localhosts all ip!
My question is "How does dnsmasq assign the name?"manual edit unbound.conf.localhosts,
the hostname is the same as the name in dnsmasq.
local-data: "Zara-Moto-G.SAFENET-AC86U. IN A 192.168.1.112"
local-data-ptr: "192.168.1.112 Zara-Moto-G"
I don't do consistent, well apart from perpetually issuing Hotfixes due to stupid typos or brain-dead coding.I believe that would be consistent with:
Code:[✔] Ad and Tracker Blocking (No. of Adblock domains=55203,Blocked Hosts=0,Whitelist=19)
'/etc/dnsmasq.conf' does not contain a hostnameMy question is "How does dnsmasq assign the name?"
Can you print the record from '/etc/dnsmasq.conf'
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!