Posted: Tue Jan 11, 2011 0:58 Post subject: Effective Ad-Blocking with DD-WRT OpenDNS and Startup Script
Hey everybody, this is my first post and I look forward to being part of the community
I recently purchased a D-Link DIR-615-E1, and installed DD-WRT v24-sp2 (12/24/10) std - build 15962 flawlessly with the greatest of ease. I am first time DD-WRT user and I am really pleased with this open, linux-based firmware :)
This forum is full of useful information and I just so happened to stumble across this ad-block start-up script (by frater I think):
The script worked great however I kept getting the well known error message in place of the ads on a lot of websites.
After some searching I found out about PixelServ which seemed like a great solution but unfortunately would not work for me because I couldn't enable JFFS due to the 4Mb flash limitation of the DIR-615.
After playing with the DNSMasq settings I came up with this configuration:
The change here that made a big difference for me was the addition of the OpenDNS servers. For reasons unknown to me I no longer get the aforementioned error message
Now I have error-free ad-blocking with no JFFS, and no PixelServ, which is great considering the limited memory on the flash :)
Feel free to test this out or explain how it works. Any feedback is appreciated. Thanks in advance! :)
Joined: 06 Feb 2010 Posts: 7401 Location: Little Rock
Posted: Tue Jan 11, 2011 2:25 Post subject:
Thanx for the useful info! We need more of this kind of info in this part of the forum, now if i could only get you on an Atheros router with USB so we could get an auto optware package scripted like broadcom has with Optware the right way. _________________ Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ
If you use Firefox and adblock you do not really need pixelserv, but adding OpenDNS can't have any effect I can see - are you sure the script is run at an appropriate time when the WAN is up to populate /tmp/dlhosts? If not adblocking on the router OpenDNS does have optional website filtering functions.
There's also a couple of other threads in the Broadcom Forum, and several using Tomato and Tomatousb. One word of caution - when automatically creating and parsing blocklists do be aware that syntax errors in the dnsmasq config file can cause dnsmasq to fail to start-up - and this blocks internet access for any users dependent on it!
Posted: Fri Apr 29, 2011 15:34 Post subject: Re: Effective Ad-Blocking with DD-WRT OpenDNS and Startup Sc
o0110o wrote:
Hey everybody, this is my first post and I look forward to being part of the community :)
I recently purchased a D-Link DIR-615-E1, and installed DD-WRT v24-sp2 (12/24/10) std - build 15962 flawlessly with the greatest of ease. I am first time DD-WRT user and I am really pleased with this open, linux-based firmware :)
This forum is full of useful information and I just so happened to stumble across this ad-block start-up script (by frater I think):
The script worked great however I kept getting the well known error message in place of the ads on a lot of websites.
After some searching I found out about PixelServ which seemed like a great solution but unfortunately would not work for me because I couldn't enable JFFS due to the 4Mb flash limitation of the DIR-615.
After playing with the DNSMasq settings I came up with this configuration:
The change here that made a big difference for me was the addition of the OpenDNS servers. For reasons unknown to me I no longer get the aforementioned error message :)
Now I have error-free ad-blocking with no JFFS, and no PixelServ, which is great considering the limited memory on the flash :)
Feel free to test this out or explain how it works. Any feedback is appreciated. Thanks in advance! :)
o0110o
I to use OpenDNS to block Adds and Content. In addition to your router settings, I also added a firewall script to Intercept all DNS requests to OpenDNS even if someone on my network has manual added their own DNS addresses in their Device (PC, Laptop, Smart Phone, etc...).
# Intercept & Force all br0 DNS Requests to Router's DNS
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr) _________________ Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9
Off Site 1
R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4
Off Site 2
R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531
Posted: Mon Dec 12, 2011 1:28 Post subject: Re: Effective Ad-Blocking with DD-WRT OpenDNS and Startup Sc
Is this still current? I'm trying to find a simple ad block startup script, but it seems like everyone scattered in a million directions with this. I don't want to use jffs, I don't want to use pixelserv. I want something simple. This seemed like a great solution, but it doesn't work for me. I've searched around and can't seem to find a definitive script.
o0110o wrote:
Hey everybody, this is my first post and I look forward to being part of the community
I recently purchased a D-Link DIR-615-E1, and installed DD-WRT v24-sp2 (12/24/10) std - build 15962 flawlessly with the greatest of ease. I am first time DD-WRT user and I am really pleased with this open, linux-based firmware
This forum is full of useful information and I just so happened to stumble across this ad-block start-up script (by frater I think):
The script worked great however I kept getting the well known error message in place of the ads on a lot of websites.
After some searching I found out about PixelServ which seemed like a great solution but unfortunately would not work for me because I couldn't enable JFFS due to the 4Mb flash limitation of the DIR-615.
After playing with the DNSMasq settings I came up with this configuration:
The change here that made a big difference for me was the addition of the OpenDNS servers. For reasons unknown to me I no longer get the aforementioned error message
Now I have error-free ad-blocking with no JFFS, and no PixelServ, which is great considering the limited memory on the flash
Feel free to test this out or explain how it works. Any feedback is appreciated. Thanks in advance!
Posted: Wed May 30, 2012 20:23 Post subject: Re: Effective Ad-Blocking with DD-WRT OpenDNS and Startup Sc
o0110o wrote:
Hey everybody, this is my first post and I look forward to being part of the community
I recently purchased a D-Link DIR-615-E1, and installed DD-WRT v24-sp2 (12/24/10) std - build 15962 flawlessly with the greatest of ease. I am first time DD-WRT user and I am really pleased with this open, linux-based firmware
This forum is full of useful information and I just so happened to stumble across this ad-block start-up script (by frater I think):
The script worked great however I kept getting the well known error message in place of the ads on a lot of websites.
After some searching I found out about PixelServ which seemed like a great solution but unfortunately would not work for me because I couldn't enable JFFS due to the 4Mb flash limitation of the DIR-615.
After playing with the DNSMasq settings I came up with this configuration:
The change here that made a big difference for me was the addition of the OpenDNS servers. For reasons unknown to me I no longer get the aforementioned error message
Now I have error-free ad-blocking with no JFFS, and no PixelServ, which is great considering the limited memory on the flash
Feel free to test this out or explain how it works. Any feedback is appreciated. Thanks in advance!
the only 1 line of dnsmasq script needed, i highly doubt opendns helped.
Does anyone know the URLs of the ads that WP7 use ?
Seems I can block the majority of PC and Android apps pretty easily, but WP7 ads get through each time _________________ TPLINK TL-WR2543ND (5GHz)
WRT160NL (2.4GHz)
the only 1 line of dnsmasq script needed, i highly doubt opendns helped.
Does anyone know the URLs of the ads that WP7 use ?
Seems I can block the majority of PC and Android apps pretty easily, but WP7 ads get through each time
try
Code:
rad.msn.com
Thanks That seems to have blocked some of them, there are still some getting through, mainly ones advertising "IE9 - The beauty of the web" _________________ TPLINK TL-WR2543ND (5GHz)
WRT160NL (2.4GHz)