Adblock for DD-WRT (version 2)

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 21, 22, 23  Next
Author Message
Wickiman
DD-WRT Novice


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

PostPosted: Wed Sep 19, 2018 6:33    Post subject: Reply with quote
Hello Moose,

glad to hear that it is working now.

Wickiman

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


Joined: 25 Apr 2018
Posts: 15

PostPosted: Wed Sep 19, 2018 15:37    Post subject: Reply with quote
Hey, I got this working thanks for posting.

I have one question though...

I have a 60gig pen drive, I did the partitions needed but I have over 50 gig just sitting there doing nothing. How do I use the space left over for transmission?

Sorry a bit off topic

Regards
sudheeshb
DD-WRT Novice


Joined: 04 Aug 2018
Posts: 39

PostPosted: Fri Oct 12, 2018 23:28    Post subject: Reply with quote
I was about to install pi hole in my rasperry pi, before I stumbled upon this post. How does this compare to ad blocking by pi hole?. I am not interested in GUI and other fancy stuff provided by pi hole. Just looking from the ad blocking perspective. If this can act as a replacement for pi hole, I would like to use this instead of using separate device for ad blocking.

Note : I have a Linksys WRT1900AC2 and the adblocking is set up successfully now. So far everything seems to be fine. I do have to add some urls in mywhitelist to unblock some of the websites.
neoxtc
DD-WRT Novice


Joined: 18 Oct 2018
Posts: 1

PostPosted: Thu Oct 18, 2018 3:42    Post subject: Reply with quote
Hi,

Was wondering is it possible to log all website url visited per computer? If so can you show me how or point me in teh right direction?

Just want to monitor the kids etc not visiting sites they shouldn't have.
underwriter
DD-WRT Novice


Joined: 13 Sep 2018
Posts: 14

PostPosted: Mon Nov 05, 2018 10:34    Post subject: Reply with quote
I'm unable to even create the required folder

This is what I did:
root@HOMEPOINT:~# mkdir /jffs/dnsmasq
mkdir: can't create directory '/jffs/dnsmasq': Read-only file system

I also tried:
root@HOMEPOINT:~# cd /jffs
root@HOMEPOINT:/jffs# mkdir dnsmasq
mkdir: can't create directory 'dnsmasq': Read-only file system

I have R7000 using Kongs (05/31/2018)
I have a 8GB usb with 3 partitions (Ext2 labelled Optware and Ext3 labelled jffs and a Linux swap 512mb) plugged in the 2.0 USB port behind.

Another 2TB usb used as Samba share and plugged in the 3.0 USB port in front.
All plugged/mounted USB show corrected on router.

Any help will be highly appreciated.
simpleslashy
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 13

PostPosted: Sun Dec 23, 2018 11:14    Post subject: Script not working behind VPN Reply with quote
Hello Yamaraj,

Thank you for your hardwork! Seems like a promising script to keep Ads away from daily browsing.

I have a situation, perhaps you can throw some light?

I have created the ad-block configuration and executed according to the instructions. My setup is behind a VPN. When I add the VPN address into whitelist and rerun the script, the script seem to be rewriting the added URL.

Without adding the VPN URLs to the whilelist, I am unable to connect as I have other firewall rules etc etc which means my primary virtual interface is unable to connect and everything else becomes unstable.

So question here - how can i ensure that the VPN URLs added to the whitelist remain there and does not get overwritten after re-running the script.

Thank you all in advance.
My configuration -
Router ModelAsus RT-N66U
Firmware Version DD-WRT v3.0-r37305 big (10/10/18 )
Kernel VersionLinux 3.10.108-d6 #21212 Wed Oct 10 16:41:43 CEST 2018 mips
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Sun Dec 23, 2018 15:48    Post subject: Reply with quote
simpleslashy

I am no Yamaraj but let me ask ...
You are adding your VPN address to "mywhitelist" correct?

Every time script runs the "whitelist" gets rebuilt accordingly...as you have observed.

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
simpleslashy
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 13

PostPosted: Sun Dec 23, 2018 20:46    Post subject: Reply with quote
Hey Dr K..

thanks for your response.

That's right. my vpn address is in mywhitelist and i am executing the script using -w option.

after executing the script, whitelist does not contain my vpn address.

thanks.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Mon Dec 24, 2018 1:45    Post subject: Reply with quote
simpleslashy wrote:
Hey Dr K..

thanks for your response.

That's right. my vpn address is in mywhitelist and i am executing the script using -w option.

after executing the script, whitelist does not contain my vpn address.

thanks.


Not what you want to hear but....

Re read instructions

The -w switch is for adding addresses from within the script....when in the proper format

Maybe you have a folder/file permission issue going on

Open whitelist with nano or notepas++ to see the proper layout then open mywhitelist and add your address manually

When the script is run properly the whitelist will contain address download by the script in accordance to your chosen blitz level then mywhitelist is put on top with priority over the blacklist

Address in mywhitelist will stay there and be reused until you take them out....no matter how many times you run the script

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
simpleslashy
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 13

PostPosted: Mon Dec 24, 2018 12:48    Post subject: Reply with quote
Cheers Dr K.

Managed to re-read the instructions ... and execute the script...included VPN address in mywhitelist ... and still no success.

when i look at OpenVPN log ...it states -

20181224 12:34:08 N RESOLVE: Cannot resolve host address: uk779.nordvpn.com:1194 (Try again)

also, i have observed that when adblocker is enabled wifi becomes very unstable.

note that i even added the tunnel port onto mywhitelist without any success.

any pointers will be helpful.
thanks.
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Mon Dec 24, 2018 17:14    Post subject: Reply with quote
Yamaraj my apologies if this chatter is going off topic

Your script is great and runs flawlessly for many others as well as myself on many different devices

Thank You for all your hard work that you have chosen to share with us

simpleslashy wrote:
when i look at OpenVPN log ...it states -

20181224 12:34:08 N RESOLVE: Cannot resolve host address: uk779.nordvpn.com:1194 (Try again)

also, i have observed that when adblocker is enabled wifi becomes very unstable.

note that i even added the tunnel port onto mywhitelist without any success.

any pointers will be helpful.
thanks.

Sorry I do not use nord so from here I can only give you educated guesses

The setup for nord says to use two of their servers for DNS in your router setup

Are they in your mywhitelist also?

I may be wrong but I don't think the port number should be in your mywhitelist

When I go to your specified address in a browser I get no response with add blocker and without...nor do I get a ping response

If I go to your specified address without the port number I get a page saying that there is an error in the address...with and without the add blocker....though I am not in the UK nor am I using their DNS

If I manually resolve the address to 194.36.110.219 I get same results

Now the unstable WiFi appears to be a different router config or firmware problem all together...unless the DNS is being blocked

If you review the script you'd see that it really doesn't treat the type of connection any differently...does not specify WiFi or adapter in any way

Hope something here helps

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
simpleslashy
DD-WRT Novice


Joined: 21 Oct 2016
Posts: 13

PostPosted: Mon Dec 24, 2018 17:35    Post subject: Reply with quote
Thanks to Yamaraj for the script. Agree this conversation shouldn't be seen as going on tangent, well in fact this will strengthen the script to cater to people behind a VPN. Having read all the pages on this thread I don't see any configuration related to VPN, so I am unable to gauge the config along with adblocker people are using with VPN.

Thanks Dr.K for your persistence and taking time to respond. Much appreciated.

Yes, I have added all possible IP's from my OpenVPN log to mywhitelist without any success.

In fact, i started digging around my router configuration and there was "Use DNSMasq for DHCP" enabled which I turned off ..nothing changed.

So ... back to square one on this one Sad

cheers.
Confused Confused
sebbz
DD-WRT Novice


Joined: 19 Feb 2019
Posts: 1

PostPosted: Tue Feb 19, 2019 21:47    Post subject: add new list ? Reply with quote
Hi,

thanks for the script. good job.

Is it possible to add a new list ?

I wanna add this one:
https://github.com/hoshsadiq/adblock-nocoin-list/

thanks
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Tue Feb 19, 2019 22:23    Post subject: Re: add new list ? Reply with quote
sebbz wrote:
Hi,

thanks for the script. good job.

Is it possible to add a new list ?

I wanna add this one:
https://github.com/hoshsadiq/adblock-nocoin-list/

thanks

Well...
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
Is in there when run with "BLITZ level 1 or greater"... so all the time

If that is not close enough you could manually add it to the script yourself....
Just DO NOT USE WINDOWS NOTEPAD or the likes...
use Notepad++ or a Linux based editor

@Yamaraj my apologies of this suggestion is out of line to you

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
FuShiLu
DD-WRT Novice


Joined: 22 Mar 2019
Posts: 1

PostPosted: Fri Mar 22, 2019 15:09    Post subject: Reply with quote
This script in most secure mode seems very nice overall.

Has anyone had success blocking commercials on YouTube and such?
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 21, 22, 23  Next Display posts from previous:    Page 16 of 23
Post new topic   Reply to topic    DD-WRT 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