It seems like QoS isn’t really enabled if there is no /tmp/qos file.
Rookie error. I have actually built another local network while setting this up for a friend, and I was looking at the wrong router! From the subject router:
PS C:\WINDOWS\system32> ssh admin@192.168.1.1
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ECDSA key fingerprint is SHA256:3UqqFkMCiqTDFv7azjioZKNd4tU01hQFRkShIxOaxRA.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.1' (ECDSA) to the list of known hosts.
admin@192.168.1.1's password:
ASUSWRT-Merlin RT-AC86U 384.19_0 Fri Aug 14 19:19:51 UTC 2020
admin@RT-AC86U-Leif:/tmp/home/root# cat /tmp/qos
#!/bin/sh
WAN=eth0
tc qdisc del dev $WAN root 2>/dev/null
tc qdisc del dev $WAN ingress 2>/dev/null
tc qdisc del dev br0 root 2>/dev/null
tc qdisc del dev br0 ingress 2>/dev/null
TQAU="tc qdisc add dev $WAN"
TCAU="tc class add dev $WAN"
TFAU="tc filter add dev $WAN"
SFQ="sfq perturb 10"
TQA="tc qdisc add dev br0"
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
start()
{
$TQA root handle 1: htb
$TCA parent 1: classid 1:1 htb rate 1024000kbit
$TQAU root handle 2: htb
$TCAU parent 2: classid 2:1 htb rate 1024000kbit
$TCA parent 1:1 classid 1:9 htb rate 10240000kbit ceil 10240000kbit prio 1
$TQA parent 1:9 handle 9: sfq perturb 10
$TFA parent 1: prio 1 protocol ip handle 9 fw flowid 1:9
$TCAU parent 2:1 classid 2:9 htb rate 10240000kbit ceil 10240000kbit prio 1
$TQAU parent 2:9 handle 9: sfq perturb 10
$TFAU parent 2: prio 1 protocol ip handle 9 fw flowid 2:9
tc qdisc del dev wl0.2 root 2>/dev/null
GUEST02=wl0.2
TQA02="tc qdisc add dev $GUEST02"
TCA02="tc class add dev $GUEST02"
TFA02="tc filter add dev $GUEST02"
$TQA02 root handle 3: htb
$TCA02 parent 3: classid 3:1 htb rate 81920kbit
$TCA02 parent 3:1 classid 3:10 htb rate 1kbit ceil 81920kbit prio 10
$TQA02 parent 3:10 handle 10: sfq perturb 10
$TFA02 parent 3: prio 10 protocol ip handle 10 fw flowid 3:10
$TCAU parent 2:1 classid 2:10 htb rate 1kbit ceil 5120kbit prio 10
$TQAU parent 2:10 handle 10: sfq perturb 10
$TFAU parent 2: prio 10 protocol ip handle 10 fw flowid 2:10
tc qdisc del dev wl1.2 root 2>/dev/null
GUEST12=wl1.2
TQA12="tc qdisc add dev $GUEST12"
TCA12="tc class add dev $GUEST12"
TFA12="tc filter add dev $GUEST12"
$TQA12 root handle 4: htb
$TCA12 parent 4: classid 4:1 htb rate 81920kbit
$TCA12 parent 4:1 classid 4:11 htb rate 1kbit ceil 81920kbit prio 11
$TQA12 parent 4:11 handle 11: sfq perturb 10
$TFA12 parent 4: prio 11 protocol ip handle 11 fw flowid 4:11
$TCAU parent 2:1 classid 2:11 htb rate 1kbit ceil 5120kbit prio 11
$TQAU parent 2:11 handle 11: sfq perturb 10
$TFAU parent 2: prio 11 protocol ip handle 11 fw flowid 2:11
}
stop()
{
#ebtables -t nat -F
tc qdisc del dev $WAN root 2>/dev/null
tc qdisc del dev br0 root 2>/dev/null
tc qdisc del dev wl0.2 root 2>/dev/null
tc qdisc del dev wl1.2 root 2>/dev/null
}
show()
{
tc -s -d class ls dev $WAN
tc -s -d class ls dev br0
}
if [ $# != 1 ]; then
echo "Usage: $0 start/stop/restart"
else
if [ $1 = "start" ]; then
start
elif [ $1 = "stop" ]; then
stop
elif [ $1 = "restart" ]; then
stop
start
fi
fi
admin@RT-AC86U-Leif:/tmp/home/root#