Openwrt 18.06(Snapshot) custom builds for TP-LINK WR740N(D) WA801N(D) WR840N(D) WR841N(D) WR940N(D) WR941N(D) ( with wifi enabled in default & working Zram-swap))

sera que alguen poderia copilar com idioma portuger br?

CAN YOU ADD ADBLOCK IN SERVICES? IT'S HELPFUL TO HAVE ADBLOCK SIR. THANK YOU!

There is a shiny new invention, lower case - please use it where appropriate, there's no reason to SCREAM.

1 Like

no.. i'm not screaming, i just not change the option since i type my password here. mb

opkg does not include in the builds because there doesn't have enough space in 4/32 targets.

2 Likes

@humanOS please include TP-Link MR-3420 v2. Thank you.

Thank you very much @humanOS for sharing your work. I really appreciate that. I really hope you can keep doing something for this awesome but very forgotten device (WR940Nv6).

I wish you could compile some newer version, like 19

1 Like

Has someone tried SQM in this version? Does it really work? I'm looking for a working version for my WR940N v6.

Thanks in advance

i am using still now, sqm is working without any problem.

1 Like

Thank you very much for your answer, and for sharing your work with us.
I'm going to try it on my WR940N v6 tomorrow. I really hope everything works flawlessly. (I'm so scared about it because I read that it's a bit complicated to go back to stock firmware, and I'm a newby on this and it's my only router, I don't have any chance to buy another :confounded:)

Btw @humanOS, I guess it's possible to create a "guest network" (wifi) in this compilation, I'm right?

Yeah. possible. You can create maximum 4 wireless AP. Also You can use mac address based speed control. it is quite simple, if u need i can share a simple custom firewall for mac base speed control

1 Like

That's awesome. I just need SQM for having a good shape in my broadband (no bufferbloat) and limit the shared broadband speed

1 Like

Flashed and bricked my WR940N v6... Now I don't know that to do! @humanOS

EDIT:
Recovered my router via TFTP with stock firmware.

EDIT 2:
There is no way to flash OpenWrt on my router. It gets inmediatly bricked. I don't know what to do.
Via WEB it says "error: incorrect region" or something, but when I use (EU) it proceed, finishes with no errors, restart router and BRICKED!

EDIT 3:
Flashed via TFTP all 3 versions "squashfs" and each one bricks my WR940N v6. I don't understand what's going on...

do you check region variant of your router? There also has a brazilian variant.

Well, I'm going to tell you something...

My original version is WR940N(ES) V6, but I flashed the latest official (EU) version (if I remember correctly) and I got everything in English but updated and working fine.

The real hardware version is (ES). Could you please help me with that?

The thing is that it doesn't check any region when you flash via TFTP, but it's not working for me. Every firmware bricks my device

Solution is here. i will include the modification later.

1 Like

Thank you @humanOS. I appreciate your support :pray:t3:
Can't wait to flash it and see my router being the best device it could be! :partying_face:

1 Like

Blockquote Yeah. possible. You can create maximum 4 wireless AP. Also You can use mac address based speed control. it is quite simple, if u need i can share a simple custom firewall for mac base speed control

Hi @humanOS . How are you doing?
Bro, may you share that custom firewall for mac base speed control please? I would like to add that possibility to my router

okay.

#Zero Marking Users
Z1Name="Ali"
Z1MAC=B4:CD:27:CF:B4:1F

# Slow Marking Users
S1Name="Nokia 5"
S1MAC=CC:9F:7A:22:FE:16
S2Name="itel A"
S2MAC=A4:F4:65:1A:84:4A
S3Name="Primo E8s"
S3MAC=D8:16:C1:54:01:B3
S4Name="Alamin2"
S4MAC=7C:D6:61:AE:2E:AC
S5Name="Anisha"
S5MAC=80:4E:70:54:76:E6
#S6Name="Nusrat"
#S6MAC=88:9F:6F:7B:C5:B2

# Medium Marking Users
M1Name="Oppo kamal"
M1MAC=C4:40:F6:C3:FB:23
M2Name="Zenfone Max Pro"
M2MAC=04:92:26:A7:BA:19
M3Name="Nusrat"
M3MAC=88:9F:6F:7B:C5:B2

# Speed Groups
Group1Name="Slow Internet"
Group2Name="Medium Internet"
Group3Name="Zero Internet"

# kb/s means kilobytes per second
SlowInternet=150kb/s
MediumInternet=250kb/s
ZeroInternet=30kb/s

SlowMark=0xA
MediumMark=0xB
ZeroMark=0xC

# Rules to set slow markings
iptables -t nat -A prerouting_rule -m mac --mac-source $S1MAC -j MARK --set-mark $SlowMark -m comment --comment "$S1Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $S2MAC -j MARK --set-mark $SlowMark -m comment --comment "$S2Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $S3MAC -j MARK --set-mark $SlowMark -m comment --comment "$S3Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $S4MAC -j MARK --set-mark $SlowMark -m comment --comment "$S4Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $S5MAC -j MARK --set-mark $SlowMark -m comment --comment "$S5Name"
#iptables -t nat -A prerouting_rule -m mac --mac-source $S6MAC -j MARK --set-mark $SlowMark -m comment --comment "$S6Name"

# Rules to set medium markings
iptables -t nat -A prerouting_rule -m mac --mac-source $M1MAC -j MARK --set-mark $MediumMark -m comment --comment "$M1Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $M2MAC -j MARK --set-mark $MediumMark -m comment --comment "$M2Name"
iptables -t nat -A prerouting_rule -m mac --mac-source $M3MAC -j MARK --set-mark $MediumMark -m comment --comment "$M3Name"

#Rules to set zero markings
iptables -t nat -A prerouting_rule -m mac --mac-source $Z1MAC -j MARK --set-mark $ZeroMark -m comment --comment "$Z1Name"
#iptables -t nat -A prerouting_rule -m mac --mac-source $Z2MAC -j MARK --set-mark $ZeroMark -m comment --comment "$Z2Name"

# If a packet is marked, make sure the connection is marked as well
iptables -t nat -A prerouting_rule -m mark --mark $SlowMark -j CONNMARK --save-mark
iptables -t nat -A prerouting_rule -m mark --mark $MediumMark -j CONNMARK --save-mark
iptables -t nat -A prerouting_rule -m mark --mark $ZeroMark -j CONNMARK --save-mark

# On incoming packets, make sure to read the connection mark back into the packet
iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark

# limit the speed
iptables -A forwarding_rule -m mark --mark $SlowMark -m conntrack --ctstate ESTABLISHED,RELATED -m hashlimit --hashlimit-name "$Group1Name" --hashlimit-above $SlowInternet -j DROP
iptables -A forwarding_rule -m mark --mark $MediumMark -m conntrack --ctstate ESTABLISHED,RELATED -m hashlimit --hashlimit-name "$Group2Name" --hashlimit-above $MediumInternet -j DROP
iptables -A forwarding_rule -m mark --mark $ZeroMark -m conntrack --ctstate ESTABLISHED,RELATED -m hashlimit --hashlimit-name "$Group3Name" --hashlimit-above $ZeroInternet -j DROP
1 Like