PI-HOLE - установка через docker

Материал из Все о VPN, прокси и свободном интернете

PI-HOLE - установка через docker

1) Освободить 53 порт:

mkdir -p /etc/systemd/resolved.conf.d/
echo -e   "[Resolve]\nDNS=127.0.0.1\nDNSStubListener=no " >  /etc/systemd/resolved.conf.d/adguardhome.conf
mv /etc/resolv.conf /etc/resolv.conf.backup
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl reload-or-restart systemd-resolved


2) Установить PI-HOLE на 3000 порт с паролем WEBPASSWORD:

docker run -d     --name pihole     -p 53:53/tcp -p 53:53/udp     -p 8989:80     -e TZ="Europe/Moscow"     -e WEBPASSWORD=Ваш_пароль     -v "/opt/etc-pihole:/etc/pihole"     -v "/opt/etc-dnsmasq.d:/etc/dnsmasq.d"    --dns=127.0.0.1     --restart=unless-stopped     --hostname pi.hole     -e VIRTUAL_HOST="pi.hole"     -e PROXY_LOCATION="pi.hole"     -e FTLCONF_LOCAL_IPV4="127.0.0.1"     pihole/pihole:latest

3) Прописать в marzban xray - секцию:

{
   "log": {
       "loglevel": "info"
   },
    "dns": {
   "servers": [
     "127.0.0.1"
   ]
   },