OpenWRT - Bandwidth Limiting for LAN & WiFi - SQM QoS

Ғылым және технология

In this video, we are going to control the bandwidth of LAN and WiFi by configure rules in OpenWRT SQM QoS. It is also know as "bandwidth limit per interface". We will create 2 different LAN interfaces, each of them will have different download & upload speed. Also, we will apply a rule to Wireless interface, which normally is wlan0 and wlan1(if you have 2 wireless radios).
If you haven't watch the previous video about SQM QoS, please take a look on it. Else, you can just install "luci-app-sqm" and proceed with this video.
One of the big difference while setting up the speed limit for LAN interfaces is that the Upload speed shown in SQM QoS GUI is actually the Download speed and vice versa. Please do not confuse on that.
Video timeframe:
00:00 - Introduction: Setup Speed Limit for LAN and WiFi on OpenWRT
01:20 - Create new VLAN interface (to control the speed limit)
02:30 - Switch port VLAN overview
03:03 - Create new LAN interface
05:27 - Configure LAN & WiFi Download/Upload speed limit in SQM QoS
07:40 - LAN Speedtest after SQM QoS rules applied
09:26 - WiFi Speedtest after SQM QoS rules applied
10:18 - Additional Information & tunning
Resources:
SQM (Smart Queue Management) - openwrt.org/docs/guide-user/n...
Lazy to read? SQM Lite version - openwrt.org/docs/guide-user/n...
QoS (Network Traffic Control) - openwrt.org/docs/guide-user/n...
OpenWRT Traffic Shaping - openwrt.org/docs/guide-user/n...
Linux Traffic Control - tldp.org/HOWTO/Traffic-Contro...
Thank for watching and see you in the next video!

Пікірлер: 43

  • @AntonPopov_
    @AntonPopov_3 жыл бұрын

    Hi, great content! As I was watching the video and especially the end I think a video on Firewall rules would be very interesting. I know you mention there's a lot of topics suggested but you speak a lot of vlans or just different LANs and having proper isolation between them would be nice follow up.

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Yup soon I will make a video about VLAN isolation/ Guest WiFi. (by right device from different shouldn't be able to communicate with each other but I don't know why they can on OpenWRT)

  • @anshraj5916
    @anshraj5916 Жыл бұрын

    you are a god from india

  • @user-hd2no4qx5w
    @user-hd2no4qx5w7 ай бұрын

    I understand it correctly, using this qos i can set up speeds for each ports ? Similar than mikrotik simple qoe and bridges ?

  • @tristanjsa
    @tristanjsa3 жыл бұрын

    Hi man, first of all want to thank you for making these vids on OpenWRT tutorials, they're really helping me out! I wanted to ask if I need to change the settings for Queue Discipline and Link Layer Adaptation tabs on SQM to that of the same settings I put on my WAN SQM instance? Or in other words, do I need to change those tabs at all (like change default fq_codel to cake again and such), or just leave it as is?

  • @porkbelly872

    @porkbelly872

    3 жыл бұрын

    Use cake and piece of cake if possible. You get better distribution of bandwidth among the users in that particular interface. Fq_codel falls apart in terms of per host fairness when one user starts torrents or a large steam downloads that opens up a lot of connections. You should be okay to leave others as it is.

  • @blaichan5689
    @blaichan56892 жыл бұрын

    What is your router model and what is your recommendations the best budget router wich include usb port. Thank

  • @ofiefrahmad6963
    @ofiefrahmad69633 жыл бұрын

    please make a video how to limit the bandwidth of each IP or Mac in Openwet? ,

  • @cabonk3273
    @cabonk32732 жыл бұрын

    Hi ,i do follow your configuration on the dumb ap. Now im wondering what do i need to setup if i dont want all devices connected on the NORMAL SPEED LAN to access the login dashboard but all networks connected in the high speed lan will be able to open the login dashboard

  • @VanTechCorner

    @VanTechCorner

    2 жыл бұрын

    Setup guest / 2nd LAN and set the limit for the interface with sqm qos, and limit access to LuCI with firewall rule. Just like what I did for guest network.

  • @kennynugraha
    @kennynugraha3 жыл бұрын

    Very Helpful video! but i was wondering how to limit bandwidth per ip address by using SSH Command? what i mean how can we configure it by using ssh command not by using luci GUI?

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Hello, we have the list of SQM config values. You can check it out here openwrt.org/docs/guide-user/network/traffic-shaping/sqm_configuration

  • @diegofenner1333
    @diegofenner13333 жыл бұрын

    Hi mate. Could you please explain on another video how to create a time schedule bandwidth limit for a LAN client? Example: limit phone speed at night.

  • @oussverde

    @oussverde

    2 жыл бұрын

    interesting and interested

  • @kron_r
    @kron_r3 жыл бұрын

    Why did you create lan-unterface if f.e. device is already connected to lan2, why not just to use existing lan2 interface? Why did you assign new ip for new interface if it connects to wan anyway? I made this settings as you described in video but in the end there is no internet on other lan ports except lan1 and I cannot connect to devices by ssh from pc(which is on lan1 port).

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Actually I have answered your questions in the video, it is at 10:28. You mentioned that LAN 2 has no internet, does it received the IP address from the new DHCP server?

  • @kron_r

    @kron_r

    3 жыл бұрын

    ​@@VanTechCorner Ok, I see, I didn't have to create additional interface, and also I just had to restart sqm service after creating rules. I have a question if I have to set "fq_codel"(which is by default) or "cake" in "Queue Discipline", is there any difference?

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    You can watch the previous video "SQM QoS" where we talk about the basic concept of SQM. The default value, cake and piece_of_cake.qos would be good enough to go with. If want to know about difference, here is the technical document that can help with openwrt.org/docs/guide-user/network/traffic-shaping/sqm-details

  • @AndyBaedal
    @AndyBaedal2 жыл бұрын

    Hi Van Tech, thanks for a very informative video for a beginner openwrt user like me. I have a question, what if we want to setting bandwidth with minimum speed instead of maximum speed? E.g: total bandwidth that is available: 30 down + 15 up. - Setup for main ssid: minimum 20 down + minimum 10 up. - Setup for second ssid: unlimited. (So the idea is the second ssid will getting the reduced speed only whenever somebody using the main ssid) Is it possible?

  • @NicolasMorais

    @NicolasMorais

    Жыл бұрын

    Yes, it's possible. QoS has many specific settings, and I'm sure that one of them will meet your needs.

  • @vutrunghieu3690
    @vutrunghieu369010 ай бұрын

    Bác có thể làm video hướng dẫn cài đặt và test sqm-autorate trên mạng LTE được không, rất cảm ơn bác.

  • @j0efil
    @j0efil Жыл бұрын

    Hi, this a great tutorial very easy to follow. However, this only limit the bandwidth per Interface. Do you have a way how to limit the bandwidth per IP or per Client? Thanks!

  • @VanTechCorner

    @VanTechCorner

    Жыл бұрын

    Hi, you can take a look at this, there is example available openwrt.org/docs/guide-user/network/traffic-shaping/packet.scheduler#examples

  • @epic1hit
    @epic1hit7 ай бұрын

    can you make a video how to use SQM AutoRate plz

  • @ramiaddas1437
    @ramiaddas14373 жыл бұрын

    can you apply rate limiting based on MAC address of the wireless client instead of vlan and interfaces ? all my clients are wireless clients and i dont want one wireless client to take all the router bandwidth which will make the connection slow for other wireless clients.

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Hi, I got your question and will take a look on this!

  • @king4053

    @king4053

    2 жыл бұрын

    ​@@VanTechCorner I think with NFT QoS it's possible and good for huge number of users because I think you can assign a bandwidth on a range of IPs using CIDR. I haven't really looked up into it though because I've read somewhere that it has compatibility issues running with alongside with SQM which I prefer for it's automatic handling and lower latency.

  • @kajape2967
    @kajape29673 жыл бұрын

    Hi can we create also a bandwidth per port in newifi

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Yes, basically you just need to create different interface with different port (either using the switch page or manually assign it), and then set the limit qith SQM QoS.

  • @NorthBorneoStudio
    @NorthBorneoStudio3 жыл бұрын

    hi bosku..Mi 4a Gigabit router+firmware openwrt, how to setup limit speed other user connected on wifi? tq from sabah..

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Hey, I got your question on the group.

  • @bamskination5426

    @bamskination5426

    2 жыл бұрын

    @@VanTechCorner i'm still waiting bosku

  • @XemmanX1
    @XemmanX13 жыл бұрын

    sir please i need help why when i speedtest using my phone in my wifi i have high ping in my pc ? but when my pc speed test my ping is too low ? how to fix this ?

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    We can assume that the high latency caused by wireless connection, either by your phone or your WiFi router. Try with another the phone and if the ping is still high, it is something wrong with the AP of the router and you will need to work on this.

  • @mohdasri4736
    @mohdasri47363 жыл бұрын

    boleh tak tunjuk cara2 setup openwrt untuk dlink dlink dir 842 c2 >>>TQ

  • @VanTechCorner

    @VanTechCorner

    3 жыл бұрын

    Tak farham Malayu bro. I guess you are asking about install OpenWRT on DLink 842-C2, right. Sooner there will be a video ;)

  • @mohdasri4736

    @mohdasri4736

    3 жыл бұрын

    @@VanTechCorner yes right

  • @kakangbagus1536
    @kakangbagus1536 Жыл бұрын

    SQM don't work after reboot, how to fix?

  • @VanTechCorner

    @VanTechCorner

    Жыл бұрын

    Hi, did you fix it? If not, please check if you enable the SQM on the Start up Tab?

  • @residentevil1067
    @residentevil10672 жыл бұрын

    Мне очень жаль, но я не понял, как ты понизил скорость wi-fi

  • @martingregson7136
    @martingregson71362 жыл бұрын

    What your videos should say is "only watch if you are an expert and already know what you're doing!!!" For god sake man simplify them stop with the acronyms they are confusing most people don't know what they stand for and put off viewers

  • @VanTechCorner

    @VanTechCorner

    2 жыл бұрын

    Not really on expert level, but one should have at least basic understanding about OpenWRT before they want to configure advance stuff, either with LuCI or CLI. Most of my videos are based on the official document from openwrt.org and the URL is available at the video description.

  • @oussverde
    @oussverde2 жыл бұрын

    simple clear and easy to follow ▀█▀ █░█ ▄▀█ █▄░█ █▄▀   █▄█ █▀█ █░█   █ ░█░ █▀█ █▀█ █░▀█ █░█   ░█░ █▄█ █▄█   ▄

Келесі