Adblock for DD-WRT (version 2)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 19, 20, 21
Author Message
joseg1968
DD-WRT Novice


Joined: 29 Mar 2015
Posts: 9

PostPosted: Tue Jul 28, 2020 22:03    Post subject: Re: Adblock for DD-WRT (version 2) Reply with quote
[quote="Yamaraj"]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
Sponsor
Wickiman
DD-WRT Novice


Joined: 11 Jun 2015
Posts: 33
Location: Germany/Mexico/China

PostPosted: Tue Aug 18, 2020 13:38    Post subject: Reply with quote
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

_________________
Netgear AC1900/R7000 DD-WRT v3.0-r37015M (09/23/18 ) kongac
msoengineer
DD-WRT Guru


Joined: 21 Jan 2017
Posts: 1353
Location: Illinois Moderator

PostPosted: Tue Aug 18, 2020 15:04    Post subject: Reply with quote
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:

https://forum.dd-wrt.com/wiki/index.php/Basic_Wireless_Settings

and

https://forum.dd-wrt.com/wiki/index.php/Advanced_wireless_settings

_________________
FORUM RULES

TIPS/TRICKS: Best QCA Wifi Settings | Latency tricks | QoS Port priority | NEVER USE MU-MIMO |
Why to NOT use MU-MIMO | Max Wifi Pwr by Country | Linux Wifi Pwr | AC MCS & AX MCS | QCA 5Ghz chnls to use | WIFI Freq WIKI | TFTP R7800 | Don't buy AX | IPERF3 How-To

[R9000]44565 nightly (Main Router)
[EA8500]43192 nightly (2xOffsite)
[R7800]napping
[WDR3600]BS 42567 (Offsite)
[A7v5]BS 43038 (Offsite+spare napping)
Wickiman
DD-WRT Novice


Joined: 11 Jun 2015
Posts: 33
Location: Germany/Mexico/China

PostPosted: Wed Aug 19, 2020 10:34    Post subject: Reply with quote
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:

https://forum.dd-wrt.com/wiki/index.php/Basic_Wireless_Settings

and

https://forum.dd-wrt.com/wiki/index.php/Advanced_wireless_settings


Do you really think that blocking Ads is jeopardizing the wifi signal and the whole internet connection which finally needed a reset of the router?

Wickiman

_________________
Netgear AC1900/R7000 DD-WRT v3.0-r37015M (09/23/18 ) kongac
l3g023
DD-WRT Novice


Joined: 27 Sep 2020
Posts: 6

PostPosted: Mon Sep 28, 2020 0:20    Post subject: Nighthawk R7000 AC1900 Reply with quote
Hi Yamaraj, firstly I'd like to say thank you for doing such amazing work and making internet a better place.

Help from anywone would be much appreciated.

I am running DD-WRT v3.0-r44467 std (09/24/20).

OpenVPN Client is running 24/7.

Also running a firewall script (kill-switch):

Code
WAN_IF=`nvram get wan_iface`
iptables -I FORWARD -i br0 -o $WAN_IF -j REJECT --reject-with icmp-host-prohibited
iptables -I FORWARD -i br0 -p tcp -o $WAN_IF -j REJECT --reject-with tcp-reset
iptables -I FORWARD -i br0 -p udp -o $WAN_IF -j REJECT --reject-with udp-reset

Adblock version 20200420.

I have followed every step in post 1 and successfully got adblock running. At least the computer I execute commands via PuTTY.

However if I connect to the same network using a different computer, I can still access pretty much everything - adblock isn't touching it.

Also if I execute ./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..

I've also added mesu.apple.com in /jffs/dnsmasq/myblacklist but I can still access.

Do I have to change my DNS settings maybe?

Worth noting that in my current version I had no option to enable for Local DNS under Services tab.

Current DNS Settings (Setup tab):

Gateway: 192.168.4.120
Local DNS: 192.168.4.121
Static DNS 1: 8.8.8.8
Static DNS 2: 8.8.4.4
Static DNS 3: 0.0.0.0
WINS: 0.0.0.0

Use DNSmasq for DNS: Enabled


Services tab:

SmartDNS Resolver: Enabled
Prefetch Domain: Enabled
Serve Expired: Enabled

DNSmasq: Enabled
No DNS Rebind: Enabled
Query DNS in Strict Order: Enabled

Maximum Cached Entries: 1500

Maybe I'm missing something? Confused


Code

root@DD-WRT:/jffs/dnsmasq# ls -i
4636675 adblock.log 4636676 cacert.pem 4636684 myblacklist
4636674 adblock.sh 4636682 mpdomains 4636685 mywhitelist
4636677 blacklist 4636681 mphosts 4636678 whitelist
root@DD-WRT:/jffs/dnsmasq# ./adblock.sh -1s
======================================================
| adblock for DD-WRT |
| https://adblock.sh |
| https://github.com/m-parashar/adblock |
| Copyright 2020 Manish Parashar |
======================================================
Mon Sep 28 01:04:03 BST 2020
[INFO] VERSION: 20200420
[INFO] CMDARGS: -1s
[INFO] NETWORK: UP | MODE: ONLINE
[INFO] IP ADDRESS FOR ADS: 0.1.2.3
[INFO] SECURE [0=NO | 1=YES]: 1
[INFO] BLITZ LEVEL [0|1|2|3]: 1
[PROC] Downloading / updating cURL certificate
[PROC] Creating mpdomains file
[PROC] Creating mphosts file
[PROC] Processing StevenBlack lists
[PROC] Processing notracking blocklists
[PROC] Processing Disconnect.me lists
[PROC] Processing quidsup/notrack lists
[PROC] Processing MalwareDomains lists
[PROC] Processing adaway list
[PROC] Unlocking BLITZ=1 level lists
[PROC] Processing more StevenBlack lists
[PROC] Processing dshield lists
[PROC] Processing pgl.yoyo.org list
[PROC] Processing Securemecca list
[PROC] Processing cryptomining and porn lists
[PROC] Processing Easylist & w3kbl lists
[PROC] Updating official blacklist/whitelist files
[INFO] Size of /tmp/mphosts.tmp: 15.0M
[INFO] Size of /tmp/mpdomains.tmp: 6.2M
[PROC] Processing blacklist/whitelist files
[PROC] Processing myblacklist/mywhitelist files
[PROC] Processing final mphosts/mpdomains files
[PROC] Removing temporary files
[INFO] Size of /jffs/dnsmasq/mphosts: 14.8M
[INFO] Size of /jffs/dnsmasq/mpdomains: 5.7M
[INFO] Number of hosts blocked: approx 514381
[INFO] Number of domains blocked: approx 175692
[INFO] Total time: 6:4 minutes
[INFO] DONE
Goto page Previous  1, 2, 3 ... 19, 20, 21 Display posts from previous:    Page 21 of 21
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions 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