[Solved] QoS question about ports

I want to configure QoS, but there is one question. How to make ports be in and out so that everyone is used between them, without listing each in the list? I used SQM before, but for me it seems standard QoS works better.

Doesn't the colon : that you got there work for you?

I don’t know how to verify this. I just thought maybe a " - " or some other separator works beyond this. I thought you tell me.)

First of all if Luci is not complaining when you use the colon, is a good sign.
Second verify the iptables:
iptables-save -t mangle -c | grep -i qos (or in Luci Status-Firewall and look for Mangle table)

Thank you for helping me. This is what Putty issues via ssh:

root@OpenWrt:~# iptables-save -t mangle -c | grep -i qos
:qos_Default - [0:0]
:qos_Default_ct - [0:0]
[45876:6854512] -A FORWARD -o pppoe-wan -j qos_Default
[100:9212] -A OUTPUT -o pppoe-wan -j qos_Default
[45976:6863724] -A qos_Default -j CONNMARK --restore-mark --nfmask 0xf --ctmask 0xf
[180:18514] -A qos_Default -m mark --mark 0x0/0xf -j qos_Default_ct
[40665:5929527] -A qos_Default -p udp -m mark --mark 0x0/0xf0 -m length --length 0:500 -j MARK --set-xmark 0x22/0xff
[18:3571] -A qos_Default -p icmp -j MARK --set-xmark 0x11/0xff
[7:356] -A qos_Default -p tcp -m mark --mark 0x0/0xf0 -m tcp --sport 1024:65535 --dport 1024:65535 -j MARK --set-xmark 0x44/0xff
[2:1818] -A qos_Default -p udp -m mark --mark 0x0/0xf0 -m udp --sport 1024:65535 --dport 1024:65535 -j MARK --set-xmark 0x44/0xff
[45976:6863724] -A qos_Default -j CONNMARK --save-mark --nfmask 0xff --ctmask 0xff
[0:0] -A qos_Default_ct -p tcp -m mark --mark 0x0/0xf -m tcp -m multiport --ports 22,53 -m comment --comment "ssh, dns" -j MARK --set-xmark 0x11/0xff
[76:5192] -A qos_Default_ct -p udp -m mark --mark 0x0/0xf -m udp -m multiport --ports 22,53 -m comment --comment "ssh, dns" -j MARK --set-xmark 0x11/0xff
[81:4582] -A qos_Default_ct -p tcp -m mark --mark 0x0/0xf -m tcp -m multiport --ports 20,21,25,80,110,443,993,995 -m comment --comment "ftp, smtp, http(s), imap" -j MARK --set-xmark 0x33/0xff
[0:0] -A qos_Default_ct -p tcp -m mark --mark 0x0/0xf -m tcp -m multiport --ports 5190 -m comment --comment "AOL, iChat, ICQ" -j MARK --set-xmark 0x22/0xff
[0:0] -A qos_Default_ct -p udp -m mark --mark 0x0/0xf -m udp -m multiport --ports 5190 -m comment --comment "AOL, iChat, ICQ" -j MARK --set-xmark 0x22/0xff
[23:8740] -A qos_Default_ct -m mark --mark 0x0/0xf -m comment --comment "all inet" -j MARK --set-xmark 0x22/0xff
[0:0] -A qos_Default_ct -p tcp -m mark --mark 0x0/0xf -m tcp -m multiport --ports 1000:10000 -j MARK --set-xmark 0x22/0xff
[0:0] -A qos_Default_ct -p udp -m mark --mark 0x0/0xf -m udp -m multiport --ports 1000:10000 -j MARK --set-xmark 0x22/0xff
[180:18514] -A qos_Default_ct -j CONNMARK --save-mark --nfmask 0xff --ctmask 0xff

Does this mean that it works correctly? When I wrote a hyphen, Lucy also did not swear) Lucy is very kind and sympathetic ^ _ ^

I tried another hyphen, here is the result:


Does it mean that both of these separator are suitable, but how to understand whether they work correctly?

Please avoid using screenshots. The console output works much better.
Other than that it seems to be configured correctly.

1 Like

Thanks for the answer. I'm trying to use a colon now.) But I still don’t understand whether it works correctly or not)

You were already told how to determine that:

We already checked, it seems to correspond.) Thank you all for the answers and help)

1 Like

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.