New Build - 10/10/2018 - r37305

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3
Author Message
iycgtptyarvg
DD-WRT Novice


Joined: 18 Jun 2014
Posts: 41

PostPosted: Thu Oct 25, 2018 8:40    Post subject: Reply with quote
tatsuya46 wrote:
iycgtptyarvg wrote:
So, just to get this clear:

I use host files in the firewall (by using rules) to block malware/ads/hijacking ip addresses. So, instead of having lines like these:
www.malware.ru 127.0.0.1
www.fakebank.cn 0.0.0.0

I should use:
www.malware.cn NXDOMAIN
www.fakebank.cn NXDOMAIN

Is that correct?


address=/malware.cn/
address=/fakebank.cn/

x.domain.cn is blocked, all of them. if u enter

address=/www.malware.cn/
address=/www.fakebank.cn/

then only x.www.domain.cn is blocked, not somethingnotwww.domain.cn

So, how should my hosts file look like?

1.
/malware.cn/ NXDOMAIN
/fakebank.ru/ NXDOMAIN

2.
/malware.cn/
/fakebank.ru/

3.
/malware.cn/ 0.0.0.0
/fakebank.ru/ 0.0.0.0

4.
/malware.cn/ 127.0.0.1
/fakebank.ru/ 127.0.0.1

Which of them is correct? (sorry for perhaps being stupid)
Sponsor
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7364
Location: YWG, Canada

PostPosted: Thu Oct 25, 2018 9:00    Post subject: Reply with quote
iycgtptyarvg wrote:
tatsuya46 wrote:
iycgtptyarvg wrote:
So, just to get this clear:

I use host files in the firewall (by using rules) to block malware/ads/hijacking ip addresses. So, instead of having lines like these:
www.malware.ru 127.0.0.1
www.fakebank.cn 0.0.0.0

I should use:
www.malware.cn NXDOMAIN
www.fakebank.cn NXDOMAIN

Is that correct?


address=/malware.cn/
address=/fakebank.cn/

x.domain.cn is blocked, all of them. if u enter

address=/www.malware.cn/
address=/www.fakebank.cn/

then only x.www.domain.cn is blocked, not somethingnotwww.domain.cn

So, how should my hosts file look like?

1.
/malware.cn/ NXDOMAIN
/fakebank.ru/ NXDOMAIN

2.
/malware.cn/
/fakebank.ru/

3.
/malware.cn/ 0.0.0.0
/fakebank.ru/ 0.0.0.0

4.
/malware.cn/ 127.0.0.1
/fakebank.ru/ 127.0.0.1

Which of them is correct? (sorry for perhaps being stupid)


2.

3 & 4 would work if there wasnt a space between the /0.0.0.0 or 127.0.0.1. if u use /0.0.0.0 ull need to have duplicate lines for each domain, with the second one having /:: if u want ipv6 coverage, meanwhile #2 with a single / at the end covers both ipv4 & ipv6. 127.0.0.1 i dont recommend cause it can cause long delays especially with https connections. cause a client device still sees a ping or response from localhost (127.0.0.1), but theres no web page content, so it keeps trying and trying till a timeout. when a device sees 0.0.0.0 or NXDOMAIN (single / at the end with nothing after it = NXDOMAIN) it knows to stop trying instantly

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ----> DD-WRT v3.0-r44425 std
[QUALCOMM] DIR-862L ------------------------------> DD-WRT v3.0-r44412 std
[QUALCOMM] WNDR4300 v1 ------------------------> DD-WRT v3.0-r44412 std
[QUALCOMM] DIR-862L ------------------------------> DD-WRT v3.0-r44412 std
▲ ACTIVE / INACTIVE ▼
[BROADCOM] DIR-860L A1 --------------------------> DD-WRT v3.0-r44251 std


If you use DSLReports please enable hi-res bufferbloat.


Sigh.. why do i exist anyway..
iycgtptyarvg
DD-WRT Novice


Joined: 18 Jun 2014
Posts: 41

PostPosted: Thu Oct 25, 2018 9:07    Post subject: Reply with quote
Thank you for the informative answer!
killerbrs
DD-WRT Novice


Joined: 29 Apr 2012
Posts: 1

PostPosted: Fri Apr 19, 2019 3:01    Post subject: Re: New Build - 10/10/2018 - r37305 Reply with quote
Router Model: TP-LINK WR941ND V 3.6
Firmware [Beta 2018-10-10 Build 37305]
Status: Bricked
Reset: Hard Reset, Not Working
Errors: Blinking lights, Don´t Working after flashing
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
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