Asus RT-AC56U adblock

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


Joined: 10 Dec 2013
Posts: 4

PostPosted: Thu Jul 30, 2015 0:59    Post subject: Asus RT-AC56U adblock Reply with quote
I recently upgraded from a Linksys WRT54G with DD-WRT to the Asus RT-AC56U with DD-WRT. Everything is working except that for some reason the adblock command script that I had working on the old Linksys does not work on my Asus.

I must first preface this by saying I know very little about Unix/Linux and am probably exploring territory that everyone will say I don't belong. With that being said, I don't understand why my script from my old router which did work great does not work on this router even though there are both running DD-WRT.

Here is what I have in my startup script:

Code:

#!/bin/sh
 sleep 10
 logger "WAN up script executing"
 if test -s /tmp/hosts0
 then
         rm /tmp/hosts0
 fi

 logger "Downloading http://winhelp2002.mvps.org/hosts.txt"
 wget -O - http://winhelp2002.mvps.org/hosts.txt | grep 0.0.0.0 |
    sed '2,$s/127.0.0.1/0.0.0.0/g; s/[[:space:]]*#.*$//g;' |
    grep -v localhost | tr ' ' '\t' |
    tr -s '\t' | tr -d '\015' | sort -u >/tmp/hosts0
 grep addn-hosts /tmp/dnsmasq.conf ||
    echo "addn-hosts=/tmp/hosts0" >>/tmp/dnsmasq.conf
 logger "Restarting dnsmasq"
 killall dnsmasq
 dnsmasq --conf-file=/tmp/dnsmasq.conf


Also posting a screenshot of the code in case this tag doesn't work properly.

Again, I am not a Nix guy so when I see things like grep,sed,etc I have no idea what it is doing. I basically grabbed this from some other user's post and it was working great before.

I wouldn't have switched routers except that I recently went from a 16Mb connection to 75Mb and quickly discovered that the Linksys was maxing out at around 25Mb. As soon as I changed routers I immediately jumped to the 75Mb.

I also saw a lot of postings about getting adblock to work by more advanced functionality like having a proxy service running on the router and installing merlin (or something like that) but it was all well beyond me.

Is there a step by step newbie guide for doing something like this? All I want is for my kids to not get bombarded with "Game of Fire" and other type nonsense ads that seem to be everywhere these days.

Thank you in advance for any assistance.



screenshot.png
 Description:
Screenshot of command
 Filesize:  11.25 KB
 Viewed:  548 Time(s)

screenshot.png


Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Fri Sep 04, 2015 15:22    Post subject: Reply with quote
just actuive privoxy!

http://ip/Privoxy.asp

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT 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