Something
public text v1 · immutabletc qdisc add dev eth1 root handle 1:0 cbq avpkt 1000 bandwidth 10mbit
tc class add dev eth1 parent 1:0 classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated
tc filter add dev eth1 parent 1:0 protocol ip prio 0 flowid 1:17
iptables -t mangle -N SHAPED
iptables -t mangle -I POSTROUTING -s 192.168.17.17 -o eth1 -j SHAPED
iptables -t mangle -I PREROUTING -d 192.168.17.17 -j SHAPED
iptables -t mangle -A SHAPED -m mark --mark 0 -j MARK --set-mark 17