Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
list include_path /etc/unbound/ad_servers.conf
# Blocking Ad Server domains. Google's AdSense, DoubleClick and Yahoo
# account for a 70 percent share of all advertising traffic. Block them.
server:
local-zone: "doubleclick.net." redirect
local-data: "doubleclick.net. IN A 127.0.0.1"
local-zone: "googlesyndication.com." redirect
local-data: "googlesyndication.com. IN A 127.0.0.1"
local-zone: "googleadservices.com." redirect
local-data: "googleadservices.com. IN A 127.0.0.1"
local-zone: "google-analytics.com." redirect
local-data: "google-analytics.com. IN A 127.0.0.1"
local-zone: "ads.youtube.com." redirect
local-data: "ads.youtube.com. IN A 127.0.0.1"
local-zone: "adserver.yahoo.com." redirect
local-data: "adserver.yahoo.com. IN A 127.0.0.1"
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext'
-O - | sed '/#/d; s/.* //; s/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/' | sed '1iserver:' > /etc/unbound/ad_servers.conf
/etc/init.d/unbound reload
, jinak nebude unbound vedet nic o pripadnych zmenach v tom souboru.
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext'
-O - | sed '/#/d; s/.* //; s/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/' | sed '1iserver:' > /etc/unbound/ad_servers.conf
/etc/init.d/unbound reload
. Omlouvám se pokud jsem někomu způsobil komplikace.
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=plain&showintro=1&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext' -O - |sed 's/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/'| sed '1iserver:'> /etc/unbound/ad_servers.conf
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=plain&mimetype=plaintext' -O - |sed 's/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/'| sed '1iserver:'> /etc/unbound/ad_servers.conf
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=plain&mimetype=plaintext' -O - | sed 's/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/; 1iserver:' > /etc/unbound/ad_servers.conf
list include_path /etc/unbound/ad_servers.conf
ls -l /etc/unbound/ad_servers.conf
head /etc/unbound/ad_servers.conf
tail /var/log/messages
> b) upravite konfiguraci unboundu tzn editujete /etc/unbound/unbound.conf a na jeho posledni radek pridate include: "/etc/unbound/ad_servers.conf" (zde se nejspis zmenila syntaxe behem upgradu)
config unbound includes
list include_path "/etc/unbound/ad_servers.conf"
Resolving pgl.y\302oyo.org... failed: Name or service not known.
wget: unable to resolve host address 'pgl.y\302oyo.org'
...yoyo...
nedávám ...y\302oyo...
Nevíte co je špatně?http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=1&startdate%5bday%5d=&startdate%5bmonth%5d=&startdate%5byear%5d=&mimetype=plaintext
, tak mi to hází:Resolving pgl.yoyo.org... failed: Name or service not known.
wget: unable to resolve host address 'pgl.yoyo.org'
local-zone: "." redirect
local-data: ". IN A 127.0.0.1"
/etc/init.d/unbound start
a potom se přes cat /var/log/messages |grep 'err unbound'
podívat, co je špatně.config unbound 'includes'
list include_path '/etc/unbound/ad_servers.conf'
wget 'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=plain&mimetype=plaintext' -O - | sed 's/.*/local-zone: "&." redirect\nlocal-data: "&. IN A 127.0.0.1"/; 1iserver:' > /etc/unbound/ad_servers.conf
/etc/init.d/unbound reload
/$ /etc/init.d/unbound reload
/$ tail /var/log/messages
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 0.131072 0.262144 137
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 0.262144 0.524288 115
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 0.524288 1.000000 93
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 1.000000 2.000000 49
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 2.000000 4.000000 6
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: 4.000000 8.000000 5
2015-11-14T19:33:19+01:00 notice unbound[]: [7840:0] notice: Restart of unbound 1.5.1.
2015-11-14T19:33:19+01:00 notice unbound[]: [7840:0] notice: init module 0: validator
2015-11-14T19:33:19+01:00 notice unbound[]: [7840:0] notice: init module 1: iterator
2015-11-14T19:33:19+01:00 info unbound[]: [7840:0] info: start of service (unbound 1.5.1).
/$ ls -l /etc/unbound/ad_servers.conf
-rw-r--r-- 1 root root 209958 Nov 14 18:09 /etc/unbound/ad_servers.conf
/$ head /etc/unbound/ad_servers.conf
server:
local-zone: "101com.com." redirect
local-data: "101com.com. IN A 127.0.0.1"
local-zone: "101order.com." redirect
local-data: "101order.com. IN A 127.0.0.1"
local-zone: "123found.com." redirect
local-data: "123found.com. IN A 127.0.0.1"
local-zone: "180hits.de." redirect
local-data: "180hits.de. IN A 127.0.0.1"
local-zone: "180searchassistant.com." redirect
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill