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.
i have successfully block ads in my router.
is there any workaround so the router can act like a dns proxy for other devices out of our network?
I want to block ads in my android phone when I am connected to a friend's wifi (without to root) just using my ddwrt like dns proxy.
[quote="drdedus"]i have successfully block ads in my router.
is there any workaround so the router can act like a dns proxy for other devices out of our network?
I want to block ads in my android phone when I am connected to a friend's wifi (without to root) just using my ddwrt like dns proxy.[/quote]
Posted: Fri Jan 27, 2017 15:50 Post subject: Adblocking using client bridge machine will this work?
Hi all,
I have my network setup with my main router being the DSL modem/router combo unit that does not run ddwrt. Before you suggest it, yes I have thought of just allowing this unit to be the modem only and attaching a ddwrt router to the output to do all the routing, but have not decided to buy a 3rd ddwrt router.
Currently I have 2 client bridges in different locations connected to multiple wired devices, allowing them all to stay off wireless and communicate over the bridge.
On my main DSL modem router I can specify DNS. So I figured I can use 1x of the client bridges to handle DNS and thus block ads. So I setup the dnsmasiq on client bridge using fraters original instructions. I then pointed my modem router dns at the client bridge.
The problem is it does not work. What else do i have to do? Think of this like using pi-hole. I am basically following the same procedure here, diverting the DNS to the client bridge much like you would do with the PI. The only difference is the bridge is wireless not wired. Could that be the problem? Does each computer/device have to have its DNS changed to point at the client bridge also, like the pi hole setup?
Under Service > Services > DNSMasq
Local DNS = Enabled
Add: addn-hosts=/tmp/dlhosts
Edit _exception to add your own allowed domains
Add Startup Script: (see above)
Add to Additional CronJobs (runs on the first of every month at 4am): 0 4 1 * * root /tmp/.rc_startup
I think too it doesn't work anymore.
Any solution?
I am trying adguard dns blocking but it doesn't cut all the advertising especially inside android apps
I have a familiy members E3000 router on Build 33986 K3.x that needed adblocking. Initially it wasn't fully working and after troubleshooting the ads where also going through IPv6 connections and bypassing the script that is setup for only IPv4. I searching on the web I have a working Adblock script for both IPv4 and IPv6.
Joined: 13 Jun 2015 Posts: 42 Location: South-West France
Posted: Fri Mar 02, 2018 19:03 Post subject:
jcdole wrote:
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.
Joined: 13 Jun 2015 Posts: 42 Location: South-West France
Posted: Fri Mar 02, 2018 19:24 Post subject:
jcdole wrote:
jcdole wrote:
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.
you can add more lines in the script and add lines in additional DNSMasq options too i just use those 2...
CURL command works on some routers but it's stripped from others, so not many routers support it... you have to check this for yourself...or there are some bugs with it and its not working... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Last edited by Alozaros on Fri Mar 02, 2018 19:55; edited 1 time in total