Jump to content

Иван Калашников

Forum Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Иван Калашников

  1. Какое именно обновление, если имеется ввиду hosts, то имеет ресурсы с рекламой меняются каждый день.

    Адреса можно уменьшить(/opt/etc/adblock/adblock.url - адреса где брать hosts для блокировки рекламы), но это скажется на отображении рекламы.

  2. 15 часов назад, ykutik сказал:

    Добрый вечер. Сделал всё по цитируемой инструкции, но у меня сложилось ощущения, что интернет не успевает подняться и файл хостс не успевает заполняться, причем от раз к разу в файле разно кол-во адресов, подскажи как выйти из ситуации?

    первый раз 212 адресов,, после перезагрузки 2516, максимум я видел 27 тысяч адресов

    
    Nov 04 19:46:57dropbear[702]Running in background
    Nov 04 19:46:57rootStarted dnsmasq from .
    Nov 04 19:46:57dnsmasq[716]started, version 2.78 cachesize 150
    Nov 04 19:46:57dnsmasq[716]compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth no-DNSSEC no-ID loop-detect inotify
    Nov 04 19:46:57dnsmasq[716]using nameserver 127.0.0.1#65053
    Nov 04 19:46:57dnsmasq[716]bad address at /opt/etc/hosts line 1
    Nov 04 19:46:57dnsmasq[716]bad address at /opt/etc/hosts line 2
    Nov 04 19:46:57dnsmasq[716]read /opt/etc/hosts - 7 addresses
    Nov 04 19:46:57dnsmasq[716]bad name at /opt/etc/hosts.block line 165
    Nov 04 19:46:57dnsmasq[716]bad name at /opt/etc/hosts.block line 166
    Nov 04 19:46:57dnsmasq[716]read /opt/etc/hosts.block - 212 addresses
    Nov 04 19:46:57dnscrypt-proxy[717]Starting dnscrypt-proxy 1.9.5
    Nov 04 19:46:57dnscrypt-proxy[717]Generating a new session key pair
    Nov 04 19:46:57dnscrypt-proxy[717]Done
    
    Nov 04 20:37:45rootStarted dnsmasq from .
    Nov 04 20:37:45dnsmasq[710]started, version 2.78 cachesize 150
    Nov 04 20:37:45dnsmasq[710]compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth no-DNSSEC no-ID loop-detect inotify
    Nov 04 20:37:45dnsmasq[710]using nameserver 127.0.0.1#65053
    Nov 04 20:37:45dnsmasq[710]bad address at /opt/etc/hosts line 1
    Nov 04 20:37:45dnsmasq[710]bad address at /opt/etc/hosts line 2
    Nov 04 20:37:45dnsmasq[710]read /opt/etc/hosts - 7 addresses
    Nov 04 20:37:45dnsmasq[710]bad name at /opt/etc/hosts.block line 165
    Nov 04 20:37:45dnsmasq[710]bad name at /opt/etc/hosts.block line 166
    Nov 04 20:37:46rootStarted  from .
    Nov 04 20:37:46dnsmasq[710]read /opt/etc/hosts.block - 2516 addresses

     

     

    Сделайте перезапуск dnsmasq после обновления hosts.block

    В файле S01adblock в конец добавьте строку

    opt/etc/init.d/S56dnsmasq restart

    Можно блокировать рекламу и без dnsmasq использую только dnscrypt Защита DNS

×
×
  • Create New...