AdBlocking with TomatoUSB Router – Ad free Internet for all your devices (25)
The Internet is flooded populated with advertisements today. There are AdBlock plugins for browsers. But how about mobile devices like non-rooted or non-jailbroken Androids and iOS devices?
I recently came across a Kickstarter project called AdTrap. It introduces a small zero configuration device that removes advertisements from your Internet connection before they reach any of your home devices. This device is connected between your modem and home router. Sounds cool? Yes if you are willing to fork out US$132 (inclusive of US$12 shipping if outside US / Canada).
Do I need the Kickstarter project to achieve that? No!
So I gave it a thought – with dnsmasq on the TomatoUSB-enabled router (e.g. ASUS RT-N66U, Linksys E4200), I could probably achieve ad blocking with DNS Cache Poisoning on the TomatoUSB-enabled router. Too geek? In simpler terms, I can make the TomatoUSB-enabled router resolve known advertisement domain names / hostnames to invalid addresses like 0.0.0.0.
As a result, I am able to filter advertisements from the Internet before they reach any of my devices at home.
I started to google around to see if anybody has used the DNS Cache Poisoning technique (using dnsmasq) and found that somebody actually did the scripts (http://goo.gl/mhykQ)! Did a little modification to it and here it is.
Pre-requisites
- TomatoUSB-enabled router like ASUS RT-N66U, RT-N16, Linksys E4200
- Flashed to TomatoUSB firmware (I am using TomatoUSB on my RT-N66U)
- Geeky mind to do some troubleshooting
Inserting the AdBlocking script
- Using a web browser, login to the TomatoUSB web administration page
- Navigate to Administration -> Scripts -> WAN Up tab
- Copy and paste the contents below. Then save and reboot the router
## ALL-U-NEED Ad Blocking v3.9e ## http://goo.gl/mhykQ ## Original script by YAQUI ## Updated by ~nephelim~, Syl, jochen, groosh, ng12345, ray123, mstombs ## base64 decoder by Danny Chouinard's sleep 10 ADB="/tmp/ADBLOCK.sh" { cat <<'ENDF' >$ADB #!/bin/sh OPTIMISE="Y" GETS="1 2 3 4 5 6" TRIM_BEGIN=2 S1="http://mirror1.malwaredomains.com/files/justdomains" S2="http://www.malwaredomainlist.com/hostslist/hosts.txt" S3="http://someonewhocares.org/hosts/hosts" S4="http://winhelp2002.mvps.org/hosts.txt" S5="http://sysctl.org/cameleon/hosts" S6="http://hosts-file.net/ad_servers.asp" USEWHITELIST="Y" # N/Y/R for remote WURL="http://example.com/whitelist.txt" WHITE="intel.com www.shadowandy.net" BLACK="" USEPIXELSERV="N" PXL_IP=192.168.1.10 PXL_EXE="/tmp/pixelserv" PXL_URL="http://www.example.com/pixelserv" UPLOAD="N" FTP_SERVER="example.com" FTP_USER="" FTP_PASS="" FTP_PORT=21 FTP_PATH="/gen" ADD_CONF="N" USEHOSTS="N" ROUTER="Y" NIP="0.0.0.0" ENDF } UPDATE="Y" AUP() { if [[ "$UPDATE" == "Y" ]] ; then if [[ "$(cru l | grep AdUpd | cut -d '#' -f2)" != "AdUpd" ]] ; then cru a AdUpd "0 4 * * * $ADB" fi fi } #### DO NOT EDIT BELOW #### b64="openssl enc -base64 -d" [[ "$(echo WQ==|$b64)" != "Y" ]] && b64="b64" b64(){ awk 'BEGIN{b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"} {for(i=1;i<=length($0);i++){c=index(b64,substr($0,i,1));if(c--) for(b=0;b<6;b++){o=o*2+int(c/32);c=(c*2)%64;if(++obc==8){if(o) {printf"%c",o}else{system("echo -en \"\\0\"")}obc=o=0}}}}';} { cat <<'ENDF'| $b64 |gunzip >>$ADB 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 AocMj8rT81cK0v4De76CG9wPAAA= ENDF } chmod 775 $ADB $ADB AUP
Verifying that the script is running
- After the TomatoUSB router has rebooted, ssh into the router
- Verify that script_wanup.sh is created by typing “ls /tmp” without the quotes
- Verify that the adblock script is running by typing “cat /var/log/messages | grep ADBLOCK” without the quotes
It should show that it has N amount of entries for hosts and dnsmasq is running - Congratulations! Ad block is running!
How do I remove the script?
To remove the script. Simply delete the content of the WAN Up tab, save and reboot. The /tmp/script_wanup.sh should go away.
What is in the base64 block
All scripts in TomatoUSB have a 4096 characters limit hence some contents are converted to base64. The contents of the base64 block is based on the following script. You can also verify by checking the file /tmp/script_wanup.sh to verify. You do not have the copy and paste this script anywhere. I am showing here for illustrational purposes only.
#!/bin/sh { cat <<'ENDF'|gzip|openssl enc -base64 ARGS=$# GEN="/tmp/gen" TMP="/tmp/temp" CONF="/tmp/conf" HOSTS="/tmp/hosts" WFILE="/tmp/white" if [[ $ARGS != 0 ]] || [[ "$(ps | grep -e '--conf' | grep 'nobody')" == "" ]]; then rm -f $GEN.md5 rm -f $GEN.last fi CLR() { rm -f $GEN rm -f $TMP rm -f $CONF rm -f $WFILE } PXL() { if [[ "$USEPIXELSERV" == "Y" ]]; then if [[ ! -x $PXL_EXE ]]; then wget -O $PXL_EXE $PXL_URL chmod +x $PXL_EXE fi ifconfig br0:0 $PXL_IP if [[ "$(pidof pixelserv)" == "" ]]; then $PXL_EXE $PXL_IP -n br0; sleep 1 ; else kill -SIGUSR1 $(pidof pixelserv); fi if [[ "$(pidof pixelserv)" == "" ]]; then logger ADBLOCK ERROR: cannot start pixelserv else eval "NIP=$PXL_IP" fi fi } NC() { UNDEF=0 for i in $GETS; do eval url="\$S$i" P1=$(echo $url| sed 's|^http[s]*://[^/]*\(/.*\)$|\1|') H1=$(echo $url| sed 's|^http[s]*://\([^/]*\)/.*$|\1|') for x in 1 2 3; do time=$(echo -e "HEAD $P1 HTTP/1.1\r\nHost: $H1\r\nConnection: close\r\n"| nc -w 5 $H1 80|grep -i Last-Modified:|tr -d "\r") if [ "$time" != "" ]; then break; fi done if [ "$time" == "" ]; then UNDEF=1; fi echo $time>>$GEN.new done if [ $UNDEF -eq 1 ]; then rm -f $GEN.last; fi if [ -f $GEN.last ]; then MD1=$(md5sum $GEN.last|cut -d " " -f1) MD2=$(md5sum $GEN.new|cut -d " " -f1) if [ "$MD1" == "$MD2" ]; then logger ADBLOCK: no changes since last time, exiting. rm -f $GEN.new exit fi fi mv -f $GEN.new $GEN.last } TRIM() { sed -ie ' s/\#.*$// s/^127\.0\.0\.1[ \t]*// s/[ \t]*$// s/^::1[ \t]*// s/localhost$// /^$/d' $TMP } DS() { for i in $GETS; do eval url="\$S$i" if wget $url -O - | tr -d "\r" > $TMP ; then if [[ $i -ge $TRIM_BEGIN ]]; then TRIM ; fi cat $TMP >> $GEN logger ADBLOCK: $url else logger ADBLOCK ERROR: cannot get $url fi done } TST(){ MD5=$(md5sum $GEN|cut -d " " -f1) if [[ -f $GEN.md5 ]] && [[ $MD5 == $(cat $GEN.md5) ]]; then logger ADBLOCK: no changes since last time, exiting. CLR; exit else echo $MD5>$GEN.md5 fi } LWHT() { if [[ "$USEWHITELIST" == "Y" ]]; then for site in $WHITE do sed -i "/$(echo $site|sed 's/\./\\./g')/d" $GEN done elif [[ "$USEWHITELIST" == "R" ]]; then if wget $WURL -O - | tr -d "\r" > $WFILE ; then logger ADBLOCK: whitelist $WURL sed -i -e '/\#.*$/ s/\#.*$//' -e '/^$/d' $WFILE for site in $(cat $WFILE) do sed -i "/$(echo $site|sed 's/\./\\./g')/d" $GEN done else logger ADBLOCK ERROR: cannot get whitelist $WURL fi fi echo "$BLACK" |sed 's/[ \t]*/\n/g'|sed '/^$/d' >> $GEN } OPT() { if [[ "$OPTIMISE" == "Y" ]]; then logger ADBLOCK: sorting hosts... if [[ "$USEHOSTS" == "Y" ]]; then sort -u -o $TMP $GEN else awk -F '.' 'BEGIN{ORS=""}{for(i=NF;i>0;i--)print $i"#";print "\n"}' $GEN|sort| awk -F '#' 'BEGIN{ORS="";d = "%"}{if(index($0,d)!=1&&NF!=0){d=$0;print $--NF; for(i=--NF;i>0;i--)print "."$i;print "\n"}}' > $TMP fi logger ADBLOCK: hosts sorted. fi mv -f $TMP $GEN } CNT() { TOT=$(wc -l < $GEN) logger ADBLOCK: $TOT entries } FTPUP() { if [[ "$UPLOAD" == "Y" ]]; then if [[ "$ROUTER" == "Y" ]]; then ftpput -u $FTP_USER -p $FTP_PASS -P $FTP_PORT $FTP_SERVER $FTP_PATH $GEN else ncftpput -u $FTP_USER -p $FTP_PASS -P $FTP_PORT $FTP_SERVER $FTP_PATH $GEN fi fi } FDNSM() { if [[ "$USEHOSTS" == "Y" ]]; then cp -f $GEN $HOSTS chmod 644 $HOSTS sed -i -e 's|^|'$NIP' |' $HOSTS sed -i -e '1i127.0.0.1 localhost' $HOSTS else sed -i 's|^.*$|address=/&/'$NIP'|' $GEN fi } LCFG() { if [[ "$USEHOSTS" == "Y" ]]; then cat /etc/dnsmasq.conf >> $CONF cat >> $CONF <<EOF addn-hosts=/tmp/hosts EOF else cat /etc/dnsmasq.conf >> $GEN fi } ADDCFG() { if [[ "$ADD_CONF" == "Y" ]]; then if [[ "$USEHOSTS" == "Y" ]]; then eval "CFG=$CONF" else eval "CFG=$GEN" fi cat >> $CFG <<EOF dhcp-authoritative cache-size=2048 log-async=5 EOF fi } LBLK() { service dnsmasq stop if [[ "$USEHOSTS" == "Y" ]]; then dnsmasq --conf-file=$CONF else dnsmasq --conf-file=$GEN fi } FS() { if ps | grep 'dnsmasq' | grep 'nobody' ; then logger ADBLOCK: dnsmasq is running else logger ADBLOCK ERROR: restarting dnsmasq... dnsmasq fi } CLR PXL NC DS TST LWHT CNT OPT CNT FTPUP if [[ "$ROUTER" == "Y" ]]; then FDNSM LCFG ADDCFG LBLK FS fi CLR ENDF }
The AdBlock Sources
I have actually updated the AdBlock sources to one that is more suitable for me. The codes that are responsible for the AdBlock sources are:
OPTIMISE="Y" GETS="1 2 3 4 5 6" TRIM_BEGIN=2 S1="http://mirror1.malwaredomains.com/files/justdomains" S2="http://www.malwaredomainlist.com/hostslist/hosts.txt" S3="http://someonewhocares.org/hosts/hosts" S4="http://winhelp2002.mvps.org/hosts.txt" S5="http://sysctl.org/cameleon/hosts" S6="http://hosts-file.net/ad_servers.asp"
You can choose which hosts files will be downloaded to block ads, update the variable GETS. I am downloading all of them.
A little explanation about TRIM_BEGIN=2:
S1 contains hostname only, it will be copied without formatting. While S2 to S6 are file formatted to replace hosts file, these files will be formatted to works with AdBlock. TRIM_BEGIN tells AdBlock which sources need formatting (from S2 to the end). Well usually you don’t need to touch this. Yes, you can add new blacklists to it.
If OPTIMISE=”Y”, AdBlock will remove duplicated entries.
Custom Whitelist and Blacklist
You can add inline whitelist and blacklist to the script by updating this chunk of the codes:
USEWHITELIST="Y" # N/Y/R for remote WURL="http://example.com/whitelist.txt" WHITE="intel.com www.shadowandy.net" BLACK=""
Auto Updating of AdBlock sources
By setting UPDATE=”Y”, AdBlock will update the AdBlock entries at the time specified in the cron rule.
UPDATE="Y" AUP() { if [[ "$UPDATE" == "Y" ]] ; then if [[ "$(cru l | grep AdUpd | cut -d '#' -f2)" != "AdUpd" ]] ; then cru a AdUpd "0 4 * * * $ADB" fi fi }
Getting Pixelserv to work
Pixelserv is a super minimal web server whose sole purpose is to serve a 1 x 1 pixel transparent gif file regardless of request. When USEPIXELSERV is enabled (set to “Y” instead of “N”). The adblock-ed hostnames are resolved to PXL_IP (which actually points to the router itself). This result in your web browser requesting resource from Pixelserv.
USEPIXELSERV="N" PXL_IP=192.168.1.10 PXL_EXE="/tmp/pixelserv" PXL_URL="http://www.example.com/pixelserv"
To get Pixelserv to work, simply do the following:
- Download Pixelserv V27
- Unpack the package and upload it to your webhost or the public folder of your Dropbox
- Update PXL_URL to point to the location of pixelserv on your webhost or Dropbox without the https (e.g. http://dl.dropbox.com/u/
/pixelserv) - Update PXL_IP to a unused IP address on your network (e.g. 192.168.1.10)
- Update USEPIXELSERV to “Y”
- Change TomatoUSB Web Admin page to run on port 8080 (TomatoUSB –> Administration –> Admin Access –> HTTP Port)
- Save the changes and restart the router
Do note that you will need to append :8080 to your router IP if you intend to access the Web Admin in the future.
2 issues when I try this out.
1. script does not seem to run even though script_wanup.sh was created
2. when I try to manually run script_wanup.sh in shell, errors were thrown and after debugging, the shell don’t seem to like < > & tags. after the tags were changed, i was able to run script_wanup.sh
JR,
Thanks for informing. I think the blog engine messed up the html tags. Updated and it should be fine now.
Works like a champ. I just tried IE which I never use and therefore on which I have not installed any kind of ad-block. Didn’t get a single advertisement no matter which ad-infested hellhole of a website I tried. Thanks! This is effing awesome.
Barry,
Glad that it worked for you. Do share it with your friends (if they are using TomatoUSB).
Hi Thanks..i tried the script it works on my old WRT54GS_v4, but the internet speed was like slow/ cap down to 10Mbps UL/DL in speedtest.net. Without adblocking i’m able to gain back to the ISP give speed of 50Mbps. Was it because the WRT54GS_v4 cpu is too slow ?
Is the script able to run in ASUS RT-N56U ?, which is my current router.
shiki,
The script does require some computational resources to lookup its (downloaded) adblock hosts so I think that the legacy WRT54* series of routers couldn’t process it efficiently.
Unfortunately, the ASUS RT-N56U does not support 3rd party tomato-based firmwares. Hence, it won’t be able to benefit from this script.
Hi,
Would this exact same method still work on DD-WRT? Maybe some modifications?
Thanks.
Hylian,
From what I read, the script is applicable for DD-WRT too. Just that you will need to insert this custom scripts on the appropriate sections of DD-WRT.
pixelserv v27 works well on ASUS RT-N66U with TomatoUSB (Shibby). Moved the TomatoUSB (Shibby) Web Administration page to port 8080 and pixelserv executed without issues.
Now all those advertisements (on my pages) are replaced with blank transparent images (gif)!
when doing cat script_wanup.sh it shows the undecoded file not the one you have pasted. Can you possibly host the file without the html?
Bill,
The base64 block generates “/tmp/ADBLOCK.sh”. The file script_wanup.sh is the script in section “Inserting the AdBlocking script”.
Hi,
I tried this on my Tomato router (Asus RT-N16). I see script_wanup.sh and ADBLOCK.sh in /tmp. However, I think I’m still seeing ads (www.yahoo.com). Not sure if it’s working. Is there a site with ads you recommend I visit to verify the script is working properly? Thanks.
Vinh Nguyen,
You will need to use your router as DNS for it to work. The other thing to check is to do a nslookup for “fls.doubleclick.net” to see if it resolves to 127.0.0.1 or 0.0.0.0.
@shadowandy, do you mean to do the following?
https://www.astrill.com/knowledge-base/64/DNS—How-to-configure-DNS-on-Tomato-firmware-routers.html
Thanks.
I followed what you described here, and https://www.astrill.com/knowledge-base/64/DNS—How-to-configure-DNS-on-Tomato-firmware-routers.html to use the router as DNS, and this is what I get still:
$ nslookup fls.doubleclick.net
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
fls.doubleclick.net canonical name = dart.l.doubleclick.net.
Name: dart.l.doubleclick.net
Address: 74.125.224.188
Name: dart.l.doubleclick.net
Address: 74.125.224.187
Vinh Nguyen,
From your nslookup, I see that you are using Google’s public DNS and this should be the reason why the AD Block script did not work for you. You will need to use the router as your DNS server. This way the advertisement hostnames will get resolved to 127.0.0.1 / 0.0.0.0 by your router due to the hosts file on your router.
I entered 8.8.8.8 and 8.8.4.4 in tomato per https://www.astrill.com/knowledge-base/64/DNS—How-to-configure-DNS-on-Tomato-firmware-routers.html, guess that’s google. What do I enter or how do I set up to use the router as DNS? Thanks.
Vinh Nguyen,
Do a nslookup for fls.doubleclick.net using your computer. I need to know which DNS server are you using on your computer.
From my home NAS:
$ nslookup fls.doubleclick.net
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
fls.doubleclick.net canonical name = dart.l.doubleclick.net.
Name: dart.l.doubleclick.net
Address: 74.125.224.187
Name: dart.l.doubleclick.net
Address: 74.125.224.188
Vinh Nguyen,
It appears that the script is not executing. Please ensure that the script is running by going through the section “Verifying that the script is running”.
Just rebooted router to verify everything.
ssh into router:
# ls
ADBLOCK.sh gen.md5 quickAuth.sh share
etc home script_init.sh var
gen.last mnt script_wanup.sh
I originally had ADBLOCK, but just checked, and this is what I see:
# cat /var/log/messages.0 | grep ADBLOCK
Jan 10 18:19:20 router user.notice root: ADBLOCK: hosts sorted.
Jan 10 18:19:20 router user.notice root: ADBLOCK: 34761 entries
Jan 10 18:19:21 router user.notice root: ADBLOCK ERROR: restarting dnsmasq…
On computer:
$ nslookup fls.doubleclick.net
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
fls.doubleclick.net canonical name = dart.l.doubleclick.net.
Name: dart.l.doubleclick.net
Address: 74.125.224.219
Name: dart.l.doubleclick.net
Address: 74.125.224.220
Do I have to do something to start dnsmasq?
I tried this on a Tomato flashed router (Linksys WRT54G-TM) and it doesn’t seem to be working. It looks like I’m having the same issue as Vinh.
From running your checks, I get:
# ls /tmp
ADBLOCK.sh gen.last mnt var
etc gen.md5 script_wanup.sh
gen home temp
# cat /var/log/messages | grep ADBLOCK
Mar 12 23:34:21 unknown user.notice root: ADBLOCK: http://mirror1.malwaredomains.com/files/justdomains
Mar 12 23:34:21 unknown user.notice root: ADBLOCK: http://www.malwaredomainlist.com/hostslist/hosts.txt
Mar 12 23:34:28 unknown user.notice root: ADBLOCK: http://someonewhocares.org/hosts/hosts
Mar 12 23:34:34 unknown user.notice root: ADBLOCK: http://winhelp2002.mvps.org/hosts.txt
Mar 12 23:34:47 unknown user.notice root: ADBLOCK: http://sysctl.org/cameleon/hosts
Mar 12 23:34:52 unknown user.notice root: ADBLOCK: http://hosts-file.net/ad_servers.asp
Mar 12 23:34:59 unknown user.notice root: ADBLOCK: 70453 entries
Mar 12 23:34:59 unknown user.notice root: ADBLOCK: sorting hosts…
nslookup fls.doubleclick.net
Server: 192.168.1.2
Address: 192.168.1.2#53
Non-authoritative answer:
fls.doubleclick.net canonical name = dart.l.doubleclick.net.
Name: dart.l.doubleclick.net
Address: 173.194.68.149
Name: dart.l.doubleclick.net
Address: 173.194.68.148
When I try with pixelserv I also get “Mar 12 23:51:36 unknown user.notice root: ADBLOCK ERROR: cannot start pixelserv”
Any thoughts?
Thanks!
Sorry for the double post, but I couldn’t figure out how to edit the last comment.
I tried running the verification again and got this:
# ls /tmp
ADBLOCK.sh gen.md5 pixelserv
etc home script_wanup.sh
gen.last mnt var
# cat /var/log/messages | grep ADBLOCK
Mar 12 23:51:36 unknown user.notice root: ADBLOCK ERROR: cannot start pixelserv
Mar 12 23:51:41 unknown user.notice root: ADBLOCK: http://mirror1.malwaredomains.com/files/justdomains
Mar 12 23:51:41 unknown user.notice root: ADBLOCK: http://www.malwaredomainlist.com/hostslist/hosts.txt
Mar 12 23:51:47 unknown user.notice root: ADBLOCK: http://someonewhocares.org/hosts/hosts
Mar 12 23:51:54 unknown user.notice root: ADBLOCK: http://winhelp2002.mvps.org/hosts.txt
Mar 12 23:52:05 unknown user.notice root: ADBLOCK: http://sysctl.org/cameleon/hosts
Mar 12 23:52:09 unknown user.notice root: ADBLOCK: http://hosts-file.net/ad_servers.asp
Mar 12 23:52:17 unknown user.notice root: ADBLOCK: 70453 entries
Mar 12 23:52:17 unknown user.notice root: ADBLOCK: sorting hosts…
Mar 12 23:57:56 unknown user.notice root: ADBLOCK: hosts sorted.
Mar 12 23:57:56 unknown user.notice root: ADBLOCK: 36584 entries
Mar 12 23:58:01 unknown user.notice root: ADBLOCK ERROR: restarting dnsmasq…
# nslookup fls.doubleclick.net
Server: 66.28.0.45
Address 1: 66.28.0.45 res1.dns.cogentco.com
Name: fls.doubleclick.net
Address 1: 173.194.68.148 qa-in-f148.1e100.net
Address 2: 173.194.68.149 qa-in-f149.1e100.net
#
I also wasn’t sure how to use my router as the DNS server.
Thanks.
Can you give an example of how to add multiple URLs to the white list? If you try trailers.apple.com, the dropped down menus gets blocked. The same goes for java rich sites like http://neimanmarcus.com or http://www.toryburch.com.
Whats up are using WordPress for your site platform? I’m new to the blog world but I’m
trying to get started and create my own. Do you need any html coding
expertise to make your own blog? Any help would be really appreciated!