grep -v -f $1/ASUS/hosts.whitelist $1/ASUS/hosts.downloaded > $1/ASUS/hosts.blocked
cat $1/ASUS/hosts.whitelist | sed $'s/\r$//' | grep -v -f - $1/ASUS/hosts.downloaded > $1/ASUS/hosts.blocked
It sounds like your whitelist is not being processed correctly. Look in hosts.blocked for googleservices.com. If it's still there then the whitelist is not working.
Make sure that you have created the whitelist file on the router (using something like vi or cat). Do not create the file using a Windows editor (like notepad). If there are any Windows/DOS carriage returns in the whitelist file it will stop it working. [NB Carriage returns are stripped out of the other files but I was too lazy to do it for the whitelist ]
# nslookup www.googleadservices.com
It seems likely that dnscrypt-proxy is the cause of the problem, in which case I don't know how to fix it. You'll have to do some debugging to understand what's going on.
I'd start by issuing the following command on one of your client PC's and seeing what it says:Code:# nslookup www.googleadservices.com
OK, so it's returning 0.0.0.0 which means the blocklist is working but the whitelist isn't being applied to hosts.blocked. Double check all your spelling.Response -
\Admin> nslookup www.googleadservices.com
Server: router.asus.com
Address: 192.168.1.1
Name: www.googleadservices.com
Address: 0.0.0.0
PS - I don't think its the dnscrypt-proxy as issue started after setting up the adblock
OK, so it's returning 0.0.0.0 which means the blocklist is working but the whitelist isn't being applied to hosts.blocked. Double check all your spelling.
I've modified ryzhov_al's script to use curl, as wget on the ac68u and optware were not compiled with https support.
You can use ryzhov_al's guide here http://forums.smallnetbuilder.com/showthread.php?t=9449
In step 1, instead use this command: ipkg install bash libcurl sed privoxy libiconv
You might have issues on your next logons since bash will replace shell, I had to edit a file as noted in this post: http://www.smallnetbuilder.com/forums/showpost.php?p=100299&postcount=2
In step 3 download this file instead:
Code:wget http://pastebin.com/raw.php?i=aHBYQcxs -O- | tr -d '\r' >privoxy-blocklist_0.2.sh
I mean check everything in your script for typing mistakes. Can you paste the script you're using here so I can see if I can spot something wrong with it?
Also double check the lines in the whitelist file. They must be in exactly this format:
0.0.0.0<space><URL>
There's only 1 space between 0.0.0.0 and the URL. There are no spaces after the URL.
# ls -l /tmp/mnt/My_NAS/Adblock/hosts.*
# /jffs/scripts/post-mount /tmp/mnt/My_NAS
# ls -l /tmp/mnt/My_NAS/Adblock/hosts.*
@sammyano: Well I'm totally stumped. Can you do the following and post all the output please:Code:# ls -l /tmp/mnt/My_NAS/Adblock/hosts.* # /jffs/scripts/post-mount /tmp/mnt/My_NAS # ls -l /tmp/mnt/My_NAS/Adblock/hosts.*
Well it sounds like it might be working again as ad.doubleclick.net is in the blocklist. You can whitelist that site as well if you want to, but of course you will start seeing adverts from them again.Thanks for your time man - I think I will just leave it as I don't want to mess with the dnscrypt as it took me a while to get that working
PS - now am nolonger prompted for googleadservices.com, but ad.doubleclick.net .
I've modified ryzhov_al's script to use curl, as wget on the ac68u and optware were not compiled with https support.
You can use ryzhov_al's guide here http://forums.smallnetbuilder.com/showthread.php?t=9449
In step 1, instead use this command: ipkg install bash libcurl sed privoxy libiconv
You might have issues on your next logons since bash will replace shell, I had to edit a file as noted in this post: http://www.smallnetbuilder.com/forums/showpost.php?p=100299&postcount=2
In step 3 download this file instead:
Code:wget http://pastebin.com/raw.php?i=aHBYQcxs -O- | tr -d '\r' >privoxy-blocklist_0.2.sh
Setup
1. Install necessary packages:
Quote:
opkg install bash wget sed privoxy
2. Install prepared privoxy configuration file:
Quote:
cd /opt/etc/privoxy/
rm ./config
wget http://files.ryzhov-al.ru/Routers/adblock-plus/config
All the commands referred to in this thread are issued from the command line on the router. The router runs a version of Linux called Busybox. Everything here assumes you have a working knowledge of unix-like systems and have the tools installed on your PC to use it.Says to install "prepared" config file...how do I prepare the file? These look like DOS commands. Does this go in a CMD prompt? Or by installing a file somewhere in some way? Is this interacting with the ROUTER in some way? I'm sure I sound dim right now, but I am starting from ground zero and I would love these ad blocking features.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!