Это старая версия документа!
Содержание
Pi-hole
The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content, without installing any client-side software.
Once the installer has been run, you will need to configure your router to have DHCP clients use Pi-hole as their DNS server which ensures that all devices connecting to your network will have content blocked without any further intervention.
If your router does not support setting the DNS server, you can use Pi-hole's built-in DHCP server; just be sure to disable DHCP on your router first (if it has that feature available).
As a last resort, you can always manually set each device to use Pi-hole as their DNS server.
Документация: https://docs.pi-hole.net/
Docker image: https://hub.docker.com/r/pihole/pihole/
Бложик: https://pi-hole.net/blog/
# Обновить pihole -up
Установка
Методом № 2
# One-Step Automated Install # Those who want to get started quickly and conveniently may install Pi-hole using the following command: curl -sSL https://install.pi-hole.net | bash # Alternative Install Methods # Piping to bash is controversial, as it prevents you from reading code that is about to run on your system. # Therefore, we provide these alternative installation methods which allow code review before installation: # Method 1: Clone our repository and run git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole cd "Pi-hole/automated install/" sudo bash basic-install.sh # Method 2: Manually download the installer and run wget -O basic-install.sh https://install.pi-hole.net sudo bash basic-install.sh
Ошибки
DNSMASQ_WARN: reducing DNS packet size for nameserver XXX.XXX.XXX.XXX to 1232
echo "edns-packet-max=1232" > /etc/dnsmasq.d/99-edns.conf pihole restartdns
https://discourse.pi-hole.net/t/dnsmasq-warn-reducing-dns-packet-size/51803/9
https://discourse.pi-hole.net/t/dnsmasq-warn-reducing-dns-packet-size/51803/41
Adblock
Три подписки, помогающие справиться с призывами отключить Adblock
https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
Убрать сообщения о том, что сайт использует cookies
https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt
https://www.i-dont-care-about-cookies.eu/abp/
Реклама на Яндексе (Карты и т. д.)
https://easylist-downloads.adblockplus.org/cntblock.txt
Фильтры ADGuard
https://adguard.com/kb/ru/general/ad-filtering/adguard-filters/ (в т. ч. есть блок-лист для cookies)
Tampermonkey
Работает плохо, тормозит выдачу. Для Яндекса лучше подписаться на RU AdList: Counters в AdBlock.
Ещё одно расширение, которое умеет блокировать рекламу с Яндекса.
После его установки нужно добавить туда скрипт RU AdList JS Fixes
Затем зайти в панель управления (клик по иконке Tampermonkey) и на вкладке «Настройки» активировать режим «Эксперт», после чего установить в экспериментальных опциях (в самом низу) режим встраивания «Мгновенный».