Help setting WR740N v4 to ad-block

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
josfr4ncisco
DD-WRT Novice


Joined: 12 Sep 2015
Posts: 11

PostPosted: Wed Jul 13, 2016 21:45    Post subject: Help setting WR740N v4 to ad-block Reply with quote
I've looked up some guides about how to set up ad-blocking on DD-WRT, but they involve using JFFS, and as my flash storage is small, is not supported. Can anyone help me with this?
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 3858
Location: UK, London, just across the river..

PostPosted: Thu Jul 14, 2016 9:44    Post subject: Reply with quote
i don't know how capable is 740 to adblocking but
you can try this:

https://www.dd-wrt.com/wiki/index.php/Ad_blocking

its working you can use the first method or there are
some custom scripts similar to it Wink all they work on the
same way !!

_________________
Atheros
TP-Link WR740Nv1 -----DD-WRT 44538 BS AP,NAT
TP-Link WR740Nv4 -----DD-WRT 44251 BS WAP/Switch
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AP Isolation,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AD Block,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---Gargoyle OS 1.12.0 AP,NAT,QoS,Quotas
Qualcomm/IPQ8065
Netgear R7800 -----DD-WRT 44538 BS AP,NAT,AD-Block,AP&Net Isolation,VLAN's,Firewall,Local DNS,DoT
Broadcom
Netgear R7000 -----DD-WRT 44538 BS AP,Wi-Fi OFF,NAT,AD-Block,Firewall,Local DNS,Forced DNS,DoT,VPN
-----------------------------------------------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913
tdiguy
DD-WRT User


Joined: 20 Apr 2010
Posts: 203

PostPosted: Fri Jul 15, 2016 7:32    Post subject: Reply with quote
If its a semi new build its pretty easy.
Go to services
adblocking
enable privoxy

If you dont want to have to configure the proxy server info on your devices enable transparent mode
save changes.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 3858
Location: UK, London, just across the river..

PostPosted: Fri Jul 15, 2016 7:57    Post subject: Reply with quote
tdiguy wrote:
If its a semi new build its pretty easy.
Go to services
adblocking
enable privoxy

If you dont want to have to configure the proxy server info on your devices enable transparent mode
save changes.


privoxy on WR740N v4, are you joking ?? silence is a virtue !!
privoxy is present only on routers with decent size of flash RAM at least 16MB as far as i know Smile

_________________
Atheros
TP-Link WR740Nv1 -----DD-WRT 44538 BS AP,NAT
TP-Link WR740Nv4 -----DD-WRT 44251 BS WAP/Switch
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AP Isolation,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AD Block,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---Gargoyle OS 1.12.0 AP,NAT,QoS,Quotas
Qualcomm/IPQ8065
Netgear R7800 -----DD-WRT 44538 BS AP,NAT,AD-Block,AP&Net Isolation,VLAN's,Firewall,Local DNS,DoT
Broadcom
Netgear R7000 -----DD-WRT 44538 BS AP,Wi-Fi OFF,NAT,AD-Block,Firewall,Local DNS,Forced DNS,DoT,VPN
-----------------------------------------------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913
ginzon
DD-WRT User


Joined: 23 Jun 2014
Posts: 74

PostPosted: Fri Jul 22, 2016 11:11    Post subject: Re: Help setting WR740N v4 to ad-block Reply with quote
josfr4ncisco wrote:
I've looked up some guides about how to set up ad-blocking on DD-WRT, but they involve using JFFS, and as my flash storage is small, is not supported. Can anyone help me with this?


I'll reach home and give you the exact script to do it... I use it on my 740N..

_________________
TP-Link: TL-WR740N
h8red
DD-WRT Guru


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

PostPosted: Fri Jul 22, 2016 12: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)
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 3858
Location: UK, London, just across the river..

PostPosted: Mon Jul 25, 2016 7:31    Post subject: 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


what is better in this script than this one
https://www.dd-wrt.com/wiki/index.php/Ad_blocking
i've seen it and it is using additional dnsmasq option
i do have another but all they are based on the same thing
and i was just wondering witch is lighter and more accurate to use, especially with low flash size routers ??

_________________
Atheros
TP-Link WR740Nv1 -----DD-WRT 44538 BS AP,NAT
TP-Link WR740Nv4 -----DD-WRT 44251 BS WAP/Switch
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AP Isolation,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---DD-WRT 44538 BS AP,NAT,AD Block,Firewall,Local DNS,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 ---Gargoyle OS 1.12.0 AP,NAT,QoS,Quotas
Qualcomm/IPQ8065
Netgear R7800 -----DD-WRT 44538 BS AP,NAT,AD-Block,AP&Net Isolation,VLAN's,Firewall,Local DNS,DoT
Broadcom
Netgear R7000 -----DD-WRT 44538 BS AP,Wi-Fi OFF,NAT,AD-Block,Firewall,Local DNS,Forced DNS,DoT,VPN
-----------------------------------------------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum