Lan port Qos priority not work

/etc/config/qos set lan ports priority ,but it not work

Care to provide details?

Typically, you cannot assign port priority if the ports are connected to an internal switch and on the same subnet.

2 Likes

it is my configure,I test for port 6677,but iptables qos_Default_ct only little packet for each time I test it.

QoS configuration for OpenWrt

INTERFACES:

config interface wan
option classgroup "Default"
option enabled 0
option upload 128
option download 1024

config interface lan
option classgroup "Default"
option enabled 1
option upload 40960
option download 40960

config interface wlan0
option classgroup "Default"
option enabled 0

RULES:

config classify
option target "Priority"
option ports "6677"

config classify
option target "Priority"
option ports "22,53"
option comment "ssh, dns"
config classify
option target "Normal"
option proto "tcp"
option ports "20,21,25,80,110,443,993,995"
option comment "ftp, smtp, http(s), imap"
config classify
option target "Express"
option ports "5190"
option comment "AOL, iChat, ICQ"
config default
option target "Express"
option proto "udp"
option pktsize "-500"
config reclassify
option target "Bulk"
option proto "icmp"
config default
option target "Bulk"
option portrange "1024-65535"

Don't change the stuff below unless you

really know what it means :slight_smile:

config classgroup "Default"
option classes "Priority Express Normal Bulk"
option default "Normal"

config class "Priority"
option packetsize 40
option avgrate 10
option priority 20

config class "Priority_down"
option packetsize 1000
option avgrate 10

config class "Express"
option packetsize 1000
option avgrate 50
option priority 10

config class "Normal"
option packetsize 1500
option packetdelay 100
option avgrate 10
option priority 5
config class "Normal_down"
option avgrate 20

config class "Bulk"
option avgrate 1
option packetdelay 200

please help me to configure it for a right way

Someone can tell me how to implement priority processing for different business ports on OpenWrt 18.06. Such as,there are two types of traffic to be sent on the LAN port, namely port 8888 and port 9999. I hope that the priority of sending traffic on port 9999 is higher than that on port 8888. How should I configure it on OpenWrt? Can it be implemented using/etc/configure/QoS,or another way?

This is a very old, obsolete version that is EOL and unsupported. It has many known security vulnerabilities and should not be used anymore.

What is the output of

ubus call system board
1 Like

That is related to the the antique qos-scripts package, which has not been maintained for a long time.

You might check the newer qosify package, which is more suitable for detailed traffic prioritization than the current usual QoS package "sqm".

1 Like

{
"kernel": "4.9.150",
"hostname": "ABC-70A56AECCFE3",
"system": "Atheros AR9342 rev 3",
"model": "LinkHS RP v1",
"board_name": "ar9342-rp-v1",
"release": {
"distribution": "OpenWrt",
"version": "18.06-SNAPSHOT",
"revision": "r7938-8033df8a69",
"target": "ar71xx/generic",
"description": "OpenWrt 18.06-SNAPSHOT r7938-8033df8a69"
}
}

This is not supported by the official openwrt project. That means that the firmware running in this device was heavily modified by the vendor.

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

1 Like

Oh, could you tell me how should I configure QoS on the official version of OpenWrt to achieve the desired functionality?
Thank you very much!

Hello, I am looking forward to your reply.

The firmware you are running is a black box - we don’t know what changes the vendor made to the source. Therefore, it is not supportable here.

I want to know how to use this feature correctly. I will find officially supported devices to try it out. Currently, what I urgently want to know is the correct way to use this feature

Note what @hnyman mentioned upthread - the package you are using is abandoned and there are newer packages for qos. However, you can certainly search for the specific package you are attempting to use.

Although this package is no longer supported, if you know how to use it, I really hope you can tell me. Thank you

I don’t personally know how to configure this package.
The package is abandoned and running on an old, obsolete, and unsupported release of OpenWrt. And the version of OpenWrt that you are running is highly modified by some other party. So, taken together, your best option is to reach out to the vendor/maintainer for support.

Okay, thank you for your reply!