I can't block ads at all on my Linksys WRT54G v8 router with DD-WRT v24 RC-5 (11/22/07) micro. Both DNSMasq and Local DNS are enabled, and additional options and startup commands were input properly. I rebooted the router and ran nslookup on something that should be blocked (fr.a2dfp.net), yet I'm getting a valid IP back, not 0.0.0.0. This occurs on all test sites I type in.
Micro build doesn't have all the commands needed to run this utility.
Log in to the router, go to /tmp and look for the script, then run it, you will see the error messages
So is there any way I can get this router to do what I'd like? Do I need to flash a different DD-WRT?
I'm not that you can, it has very small flash memory.
you can buy today from Amazon EA6500V1 for $50, very good router _________________ Netgear R9000 main router
RAX80 as AP
If you want it really simple (for use on micro build routers)
Add to startup script:
Code:
# wait a bit after boot
sleep 20
# get a host file from internet with ad block
# write them to /tmp/hosts (live hosts file on your router)
wget -qO- http://adaway.org/hosts.txt|grep "^127.0.0.1" >> /tmp/hosts
# re-read hosts file (?)
killall -HUP dnsmasq
You need the usual DNSMasq settings to work as local dns etc.
Joined: 13 Jun 2015 Posts: 42 Location: South-West France
Posted: Thu Jul 14, 2016 15:29 Post subject:
Hello.
Seems there is a problem whith one url in the sript gen_host.sh.
The URL "http://jansal.googlecode.com/svn/trunk/adblock/hosts" is no longer usable and I cannot download from the new project which has been exported to GitHub: https://github.com/lewisje/jansal.
Any help is welcome. _________________ Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
Sorry guys, didn't notice this thread was updated.
I changed my script a few months ago to interpret http codes and keep trying each URL up to 3 times and then skip to next URL, I just forgot to upload it here.
Also, I just replaced the jansaw list URL to point to github.
Joined: 13 Jun 2015 Posts: 42 Location: South-West France
Posted: Wed Aug 17, 2016 8:19 Post subject:
ironmanlok wrote:
Sorry guys, didn't notice this thread was updated.
I changed my script a few months ago to interpret http codes and keep trying each URL up to 3 times and then skip to next URL, I just forgot to upload it here.
Also, I just replaced the jansaw list URL to point to github.
Seems working.
Thank you very much _________________ Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
I'm trying to do an update to download a blocklist of bad ips but can't get it to work right under kernel 4.4. However if you're having trouble with https feeds, either u add -k to curl parameters or install ca-certificates from OPKG.
When I get the ip blocklist working right ill post the new version.
Thanks h8red! This seems to have done the trick. Are the instructions from that page I used out of date? Where did you find these instructions?
Does anyone know if using this method is as effective as using Ad Block or Ad Block Plus Chrome browser plugins? Appreciate it! _________________ WRT1900ACS
Brainslayer: DD-WRT v3.0-r36247 std (06/29/1
Sorry guys, didn't notice this thread was updated.
I changed my script a few months ago to interpret http codes and keep trying each URL up to 3 times and then skip to next URL, I just forgot to upload it here.
Also, I just replaced the jansaw list URL to point to github.
Do I need to enable Local DNS in Services tab for this script to work?
Joined: 13 Jun 2015 Posts: 42 Location: South-West France
Posted: Fri Dec 23, 2016 13:52 Post subject:
jcdole wrote:
ironmanlok wrote:
Sorry guys, didn't notice this thread was updated.
I changed my script a few months ago to interpret http codes and keep trying each URL up to 3 times and then skip to next URL, I just forgot to upload it here.
Also, I just replaced the jansaw list URL to point to github.