Skip to content

Instantly share code, notes, and snippets.

@gquittet
Last active June 25, 2025 22:43
Show Gist options
  • Save gquittet/f096b24417c3b0ec1e44b4a82c43dfb2 to your computer and use it in GitHub Desktop.
Save gquittet/f096b24417c3b0ec1e44b4a82c43dfb2 to your computer and use it in GitHub Desktop.

Cake QOS fix on TUF AX3000 v2

Create a script in /jffs/scripts called qos-start

with this content

#!/bin/sh
sed -i 's/tc filter add dev .*/tc filter add dev $DLIF parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev $MIF/g' /tmp/qos

Run it and it's done!

cat >/jffs/scripts/qos-start <<-EOF
#!/bin/sh
sed -i 's/tc filter add dev .*/tc filter add dev \$DLIF parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev \$MIF/g' /tmp/qos
EOF
chmod 755 /jffs/scripts/qos-start
service restart_qos

Source: https://www.snbforums.com/threads/cakeqos-not-limiting-download.93504/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment