GUIDA INSTALLAZIONE ADBLOCK:
scaricare i file da
https://github.com/openwrt/packages/tree/master/net/adblock/files e copiarli in:
adblock.sh -> /usr/bin/
adblock,init -> /etc/init.d/
resto dei file -> /etc/adblock/
modificare il file /etc/adblock/adblock.conf:
option adb_enabled '1' #da 0 a 1
...
option enabled '1' #mettere ad 1 per abilitare ogni lista desiderata
option adb_src 'http:// # sostituire https con http
modifcare /usr/bin/adblock.sh:
adb_fetch="/usr/bin/wget"
adb_fetchparm="--quiet --no-cache --timeout=10 --no-check-certificate -O"...
then
if [ "$(readlink -fn "${adb_fetch}")" = "/usr/bin/wget" ]
then
adb_fetchparm="
--quiet --no-cache --timeout=10 --no-check-certificate -O"
elif [ "$(readlink -fn "${adb_fetch}")" = "/bin/busybox" ] ||
([ "$(readlink -fn "/bin/wget")" = "/bin/busybox" ] && [ "$(readlink -fn "${adb_fetch}")" != "/usr/bin/wget" ])
then
adb_fetch="/usr/bin/wget"
adb_fetchparm="
--quiet --no-cache --timeout=10 --no-check-certificate -O"
...
lanciare:
/etc/init.d/adblock start
/etc/init.d/adblock status
dovrebbe uscire questo:
root@modemtim:~# /etc/init.d/adblock status
::: adblock runtime information
+ adblock_status : enabled
+ adblock_version : 3.1.1
+ overall_domains :
4931 + fetch_utility :
wget (-) (--quiet --no-cache --timeout=10 --no-check-certificate -O)
+ dns_backend : dnsmasq (/tmp/dnsmasq.d)
+ last_rundate : 12.12.2017 06:00:04
+ system_release : BCM963138, OpenWrt Chaos Calmer 15.05.1
aggiungere a crontab :
0 06 * * * /etc/init.d/adblock reload
a questo punto bisogna modificare il dhcp affinchè assegni se stesso come dns server.
aggiornate ip sui vs dispositivi e addio pubblicità.
mi farebbe piacere che fosse aggiunto nelle FAQ
se volete vi posto i file già pronti