I'm using some sort of combo of Colin and wuyanxu version of this, and it well works but I get a lot of ads anyway. So out of pure lack of knowing why, I decided to use the URL filter function on the GUI for ASUS admin. And after entering a few words like "adtoma, fusion, and so on" I kind of get it to work. The bad news about this is that it stops everything with the words inside the URL - however it does work.
Does anyone know how this URL filter function works under the GUI? Is there any way one could get that to work with say wild cards? Or something more "selective"?
As the dnsmasq version just don't seem to stop anything here in Sweden anyway?!
-m webstr --url
-m string --string
iptables -m webstr -help
addn-hosts=/jffs/configs/ADBlock.hosts
Thanks much Collin.
After some trial and error, I was able to install the Adblock Plus Filtering on my (other) AC66 router. This allows me to assign the blocking to defined IP addresses.
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'm sorry, I forgot to copy+paste my dnsmasq file. Make sure "/jffs/configs/dnsmasq.conf.add" file is exactly as the the 2nd quote box above. (it's been updated)
then run
Code:service restart_dnsmasq
If the log file says something like this, it's configured correctly.
Code:Sep 12 16:29:13 dnsmasq[4521]: read /tmp/adblock/hosts.blocked - 23817 addresses
I committed a lot of time on script 'adblock' and 'dnsmascq.conf.add':
black and white files lists are regularly added
the hosts file downloads and blocked are created
unfortunately something does not work because it does not appear in the log:
-----------------------------------------------------------------------------
Feb 22 11:27:50 adblock: wyxscript: Waiting for internet to come up
Feb 22 11:27:50 adblock: wyxscript: Internet is now up.
Feb 22 11:27:50 adblock: wyxscript: Downloading new blacklists
Feb 22 11:27:58 adblock: wyxscript: Whitelist found, applying it.
Feb 22 11:27:59 adblock: wyxscript: Restarting dnsmasq
Feb 22 11:27:59 rc_service: service 15982:notify_rc restart_dnsmasq
Feb 22 11:27:59 dnsmasq[13400]: exiting on receipt of SIGTERM
Feb 22 11:28:00 dnsmasq[15991]: started, version 2.73test6 cachesize 1500
Feb 22 11:28:00 dnsmasq[15991]: warning: interface ppp1* does not currently exist
Feb 22 11:28:00 dnsmasq[15991]: asynchronous logging enabled, queue limit is 5 messages
Feb 22 11:28:00 dnsmasq-dhcp[15991]: DHCP, IP range 192.168.1.1 -- 192.168.1.254, lease time 8m20s
Feb 22 11:28:00 dnsmasq[15991]: read /etc/hosts - 5 addresses
Feb 22 11:28:00 dnsmasq[15991]: read /etc/hosts.dnsmasq - 24 addresses
Feb 22 11:28:00 dnsmasq-dhcp[15991]: read /etc/ethers - 36 addresses
Feb 22 11:28:00 dnsmasq[15991]: ignoring nameserver 192.168.1.1 - local interface
-----------------------------------------------------------------------------------
I made many checks for possible my mistakes but i surrendered.
you have suggestions / ideas to help me?
Firmware 378.50 has the custom /jffs/scripts disabled by default?...just spent 20 mins wondering why the dnsmasq message didn't appear on a brand new RT-AC56U install for my parents....had simply forgot to enable them on Administration-System
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!