R7000 - Ad Blocking setup help

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
Night Prowler
DD-WRT Novice


Joined: 15 Jan 2016
Posts: 38

PostPosted: Tue Aug 09, 2016 2:20    Post subject: R7000 - Ad Blocking setup help Reply with quote
I'm looking at this page for referencing installing an Ad Blocker: http://www.dd-wrt.com/wiki/index.php/Ad_blocking

I'm running Adguard, and I'm not real sure implementing Ad Blocking at the router level will help, or be as good. I would like to lessen resources being used on my desktop.

The Ad Blocker above for router level blocking; is that the best resource for implementing a Ad Blocker at the router level? Is there something better?

Looks like the tutorial hasn't been updated in awhile, and could possibly not work with the R7000.

_________________
R7000 on DD-WRT v3.0-r32170M kongac (06/11/17)
Sponsor
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 766
Location: AR, USA

PostPosted: Tue Aug 09, 2016 3:37    Post subject: Reply with quote
Have you tried Privoxy that is already built-in to the firmware? See Services>Adblocking tab.
_________________
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
Night Prowler
DD-WRT Novice


Joined: 15 Jan 2016
Posts: 38

PostPosted: Tue Aug 09, 2016 11:31    Post subject: Reply with quote
HalfBit wrote:
Have you tried Privoxy that is already built-in to the firmware? See Services>Adblocking tab.


This is where I start? http//dd-wrt.com/wiki/index.php/Privoxy_Custom_Config

_________________
R7000 on DD-WRT v3.0-r32170M kongac (06/11/17)
slidermike
DD-WRT Guru


Joined: 11 Nov 2013
Posts: 1487
Location: USA

PostPosted: Tue Aug 09, 2016 13:06    Post subject: Reply with quote
Kong already has a basic tutorial on how to use privoxy from inside his firmware.
http://tips.desipro.de/

I believe it is the last/ bottom "how to".

_________________
Router currently owned:
Netgear R7800 - Router
Netgear R7000 - AP mode

R7000 specific Tips/Tricks.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=264152
hurleyp
DD-WRT User


Joined: 10 Sep 2009
Posts: 305
Location: Ottawa, Ontario, Canada

PostPosted: Tue Aug 09, 2016 18:39    Post subject: Reply with quote
It's an oldie but a goodie, but you might try this:

http://www.howtogeek.com/51477/how-to-remove-advertisements-with-pixelserv-on-dd-wrt/

I've been using it with good results for some time. The tutorial is a bit out of date regarding WinSCP (but nothing significant), and I use a USB flash drive instead of the internal JFFS.

_________________
Netgear R7000: v3.0-r45863 std (02/28/21)
EdgeRouter-X: EdgeOS v2.0.9-hotfix 1
h8red
DD-WRT Guru


Joined: 28 Jun 2011
Posts: 580
Location: Vilnius, Lithuania

PostPosted: Tue Aug 09, 2016 19:26    Post subject: Reply with quote
Put this into startup:
_rogue=0.0.0.0

echo -e "n=1\nwhile ! wget -q -O /tmp/hsts http://winhelp2002.mvps.org/hosts.txt ; do\n\t[ \$n -gt 5 ] && break\n\tlet n+=1\n\tsleep 60\ndone\ngrep \"^0.0.0.0\" /tmp/hsts | grep \"^0.0.0.0\" | grep -v localhost | awk '{print \"$_rogue\\\t\"\$2}' | tr -d '\\\015' >/tmp/dlhosts\nrm /tmp/hsts\nkillall -HUP dnsmasq" >/tmp/wh

sh /tmp/wh &


Put Additional DNS Masquerade option:
addn-hosts=/tmp/dlhosts


Add to CronJobs:
0 12 * * * root /tmp/.rc_startup

_________________
[Ramips] Nexx WT3020F Openwrt @kernel #4.14.167 (OpenVPN server, Wireguard server, AD blocking, SQM QOS, USB)
Redback813
DD-WRT Novice


Joined: 10 Nov 2015
Posts: 40

PostPosted: Thu Aug 11, 2016 4:38    Post subject: No Control Reply with quote
h8red wrote:
Put this into startup:
_rogue=0.0.0.0

echo -e "n=1\nwhile ! wget -q -O /tmp/hsts http://winhelp2002.mvps.org/hosts.txt ; do\n\t[ \$n -gt 5 ] && break\n\tlet n+=1\n\tsleep 60\ndone\ngrep \"^0.0.0.0\" /tmp/hsts | grep \"^0.0.0.0\" | grep -v localhost | awk '{print \"$_rogue\\\t\"\$2}' | tr -d '\\\015' >/tmp/dlhosts\nrm /tmp/hsts\nkillall -HUP dnsmasq" >/tmp/wh

sh /tmp/wh &


Put Additional DNS Masquerade option:
addn-hosts=/tmp/dlhosts


Add to CronJobs:
0 12 * * * root /tmp/.rc_startup


This is all well and good , but for one thing , somebody else dictate's to you what is block and what not, if you prefer somebody else ideals as to what they block for you. Then more power to you. I'll stick with the custom privoxy.

P.S your method only blocks by domain only and there is no fine tuning.
NoxiouS
DD-WRT Novice


Joined: 11 Aug 2016
Posts: 9

PostPosted: Fri Aug 12, 2016 7:25    Post subject: this is what i used Reply with quote
im enjoying it so far.

running fanboy ultimate and malewaredomains list.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=276591
justlookin
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 32

PostPosted: Sat Aug 13, 2016 6:11    Post subject: Reply with quote
If you go for on board Privoxy, I'd suggest testing out your browser setup at their site:
http://config.privoxy.org/show-status
to make sure you've got everything working tickety-boo.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum