Posted: Tue Jul 28, 2020 22:03 Post subject: Re: Adblock for DD-WRT (version 2)
Yamaraj wrote:
Adblock for DD-WRT
--------------------------------
Script for blocking ads on DD-WRT
Developed and tested on: NETGEAR R8500 / R7800
Hardware requirements: Minimum 4GB USB drive.
Partitioned, formatted, and mounted as swap (256-512MB), /jffs (1-2GB), and /opt (1-2GB)
I do the steps one by one, but when I add
conf-file = / jffs / dnsmasq / mpdomains
addn-hosts = / jffs / dnsmasq / mphosts
then I press apply on my router, simply the whole network gets very slow even the router is not able to give IP to new computers when they connect.
my router is a buffalo WZR-600DHP, with an 8 gb flash drive formatted according to the steps described here.
what could be wrong? _________________ Redes en general
Joined: 11 Jun 2015 Posts: 37 Location: Germany/Mexico/China
Posted: Tue Aug 18, 2020 13:38 Post subject:
Hello Yamaraj,
after a very long time, I looked into your post and for whatever reason, I said: update.
Since then I needed to reset my router and every time I install the latest version my router has wifi issues and connection issues.
Probably I have to go back to an older version?
Do you have a link for older versions? I am not sure which one I had installed before updating. Maybe try and error?
I have a Netgear R7000. Does this have any influence?
Joined: 21 Jan 2017 Posts: 1781 Location: Illinois Moderator
Posted: Tue Aug 18, 2020 15:04 Post subject:
Wickiman wrote:
Hello Yamaraj,
after a very long time, I looked into your post and for whatever reason, I said: update.
Since then I needed to reset my router and every time I install the latest version my router has wifi issues and connection issues.
Probably I have to go back to an older version?
Do you have a link for older versions? I am not sure which one I had installed before updating. Maybe try and error?
I have a Netgear R7000. Does this have any influence?
Thanks
Wickiman
Your issue is not the revision of firmware installed; rather, the settings you are using for your wifi. Take a peek at my signature for best wifi practices in terms of channels to use, wifi mode, WMM settings, channel width, etc. Those wifi principles are the same regardless of whose chipset a router uses.
But, as indicated, not all settings will apply to the R7000 because of BCM chipset vs QCA chipset, there are some minor variances in how beamforming is used/described..and for this you need to visit the wiki's for BCM:
Joined: 11 Jun 2015 Posts: 37 Location: Germany/Mexico/China
Posted: Wed Aug 19, 2020 10:34 Post subject:
msoengineer wrote:
Your issue is not the revision of firmware installed; rather, the settings you are using for your wifi. Take a peek at my signature for best wifi practices in terms of channels to use, wifi mode, WMM settings, channel width, etc. Those wifi principles are the same regardless of whose chipset a router uses.
But, as indicated, not all settings will apply to the R7000 because of BCM chipset vs QCA chipset, there are some minor variances in how beamforming is used/described..and for this you need to visit the wiki's for BCM:
Hi Yamaraj, firstly I'd like to say thank you for doing such amazing work and making internet a better place.
Sorry but I have edited this message as there was irrelevant information.
I am running DD-WRT v3.0-r44467 std (09/24/20).
OpenVPN Client is running 24/7.
Adblock version 20201105.
I have followed every step in post 1 and successfully got adblock running - it works pretty well.
There's only one device that regardless if the adblock is running I can still see/access websites that are meant to be blocked.
./adblock.sh -p then access a website which is normally blocked, close page and then execute ./adblock.sh -r and retry to access website, it connects..
Also having trouble whitelisting or blacklisting any websites:
Added mesu.apple.com & appldnld.apple.com in /jffs/dnsmasq/myblacklist & blacklist.
As for Amazon.com & Netflix.com it was all to do with my DNS settings. For some reason when you route all of your traffic through VPN & DNS VPN IP's (Ignore WAN DNS) access is denied. For the time being I'm just changing my DNS to Google's (8.8.8.8 & 8.8.4.4). Is there a way to make a specific domain use a specific DNS other than the one in the setup page - reverse to what I did above for Apple Updates?
Posted: Sat Nov 28, 2020 13:37 Post subject: Adblock for DD-WRT with thumb and external drive
I'm hoping someone can help me out with my issue. I've been using Adblock for DD-WRT off a thumb drive connected to my DD-WRT v3.0-r44483 std (10/02/20) Netgear R9000 router for some time now. Every time my router reboots because of the Code:
0 6 * * 1,4 root /jffs/dnsmasq/adblock.sh under Additional Cron jobs my Samsung 500GB external USB drive also connected to my Netgear Router cannot be found. The only way I can fix it is to log into my DD-WRT router and change /dev/sda1 so it reads /jffs and change /dev/sdb1 so it reads Drive Save and Apply Settings. I then have to unplug the Samsung 500GB external USB drive and re-plug it back in so the drive can be seen. For some reason these two swap on every router reboot pictures
This has been going on for a long time and I thought I would just see if anyone knew how to fix this. I have /jffs mounted with UUID in picture
I have also tried reformatting the thumb drive and reinstalling Adblock back on it but I get the same issue.
Thank you for any help.
Moose
I have a reasonably new router (AC1750, dd-wrt v3.0-r43904), and adblock.sh configured to use "blitz=0" lists. No Optware, Entware, etc.
I'm having a weird error when dnsmasq goes to start up. It invisibly exits, with error code 2, when the normal process starts. However, starting the process either in debug mode or in the foreground (-k) works perfectly fine. Any ideas or tips on trying to debug this?
Here is my generated config:
Code:
interface=br0
resolv-file=/tmp/resolv.dnsmasq
strict-order
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=52
dhcp-option=br0,3,192.168.170.1
dhcp-authoritative
dhcp-range=br0,192.168.170.100,192.168.170.149,255.255.255.0,1440m
dhcp-host=30:9c:23:29:93:db,main-sl,192.168.170.25,60m
bogus-priv
conf-file=/etc/rfc6761.conf
stop-dns-rebind
dhcp-option=252,"\n"
# Having a large local cache speeds up subsequent DNS queries significantly (from several hundred msec to around 25-30)
# You may need to adjust this depending on the amount of free space you have
cache-size=10000
# This forces Dnsmasq to query each of the DNS servers below in the order they appear, rather than randomly (default)
strict-order
server=8.8.8.8 # Google DNS, but can be anything you prefer
server=8.8.4.4
conf-file=/jffs/dnsmasq/mpdomains
addn-hosts=/jffs/dnsmasq/mphosts
domain-needed
Joined: 11 Jun 2015 Posts: 37 Location: Germany/Mexico/China
Posted: Wed May 05, 2021 8:50 Post subject:
msoengineer wrote:
Your issue is not the revision of firmware installed; rather, the settings you are using for your wifi. Take a peek at my signature for best wifi practices in terms of channels to use, wifi mode, WMM settings, channel width, etc. Those wifi principles are the same regardless of whose chipset a router uses.
But, as indicated, not all settings will apply to the R7000 because of BCM chipset vs QCA chipset, there are some minor variances in how beamforming is used/described..and for this you need to visit the wiki's for BCM:
My main question is that would the adblocker work on a secondary router? - not the main gateway one.
I did some network modifications in my home and i put the Dd-wrt router with the adblocker as an AP. Yes, modified the DNS server on all devices and gateway, etc.
I whould like to know if its supose to work on AP, or like a Pi Zero, before i dive deeper into the problem?
Thank you.
Joined: 16 Nov 2015 Posts: 6035 Location: UK, London, just across the river..
Posted: Fri Jun 25, 2021 6:21 Post subject:
if your second router is in a router mode (WAP/AP/switch), than your DNS must be disabled and this makes AP router useless for ad blocking, as blocking is DNS host list based... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 53045 WAP
TP-Link WR1043NDv2 -DD-WRT 53469 Gateway/DoT,Forced DNS,AP Isolation,Ad-Block,Firewall,VPN,x1VLAN
TP-Link WR1043NDv2 -DD-WRT 53469 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN(no-wifi)
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 53469 Gateway/DoT,AD-Block,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 53469 Gateway/Stubby DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 53469 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Thank Mr. Yamaraj.
DD-WRT r47495 Netgear R6250 (256M & 128M) unbound /jffs/etc/unbound.conf w/o USB. Free Mem 189M.
Services->Services->Additional Dnsmasq Options
conf-file=/jffs/dnsmasq/mpdomains
(Must/jffs/dnsmasq/mpdomains has “address=/0—e.info/0.1.2.3” avoid DNS abnormal.)
addn-hosts=/tmp/mphosts
domain-needed
bogus-priv
No more cron, and place my*list in /jffs/dnsmasq/ then save and reboot