Created
January 21, 2018 00:39
-
-
Save ryandrake08/bd2616eacbf2565243ffee74f89b9c5d to your computer and use it in GitHub Desktop.
dnsmasq-based adblock configuration on RT-N66U running Asuswrt-Merlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address=/0.0.0.0/0.0.0.0 | |
addn-hosts=/jffs/dns_blocklist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sleep 12 | |
/jffs/scripts/update-blocklist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cru a UpdateBlocklist "00 00 * * 5 /jffs/scripts/update-blocklist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget -qO- "http://winhelp2002.mvps.org/hosts.txt" "http://someonewhocares.org/hosts/zero/hosts" "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext&useip=0.0.0.0" | grep -w ^0.0.0.0 | sed $'s/\r$//' | sort -u > /jffs/dns_blocklist | |
sleep 5 | |
service restart_dnsmasq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dnsmasq.conf.add in /jffs/configs, other files in /jffs/scripts