OpenWrt - Throttling With SQM
Configure OpenWrt router to throttle by device with SQM.
/etc/config/sqm
config queue 'eth1'
option enabled '1'
option interface 'eth1'
option download '1500'
option upload '5000'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option qdisc_advanced '0'
option ingress_ecn 'ECN'
option egress_ecn 'ECN'
option qdisc_really_really_advanced '0'
option itarget 'auto'
option etarget 'auto'
option linklayer 'none'
config queue 'eth2'
option enabled '1'
option interface 'eth2'
option download '250'
option upload '5000'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option qdisc_advanced '0'
option ingress_ecn 'ECN'
option egress_ecn 'ECN'
option qdisc_really_really_advanced '0'
option itarget 'auto'
option etarget 'auto'
option linklayer 'none'
config queue 'wlan0'
option enabled '1'
option interface 'wlan0'
option download '1500'
option upload '5000'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option qdisc_advanced '0'
option ingress_ecn 'ECN'
option egress_ecn 'ECN'
option qdisc_really_really_advanced '0'
option itarget 'auto'
option etarget 'auto'
option linklayer 'none'
/etc/init.d/sqm restart
SQM: Stopping SQM on eth1
SQM: Stopping SQM on eth2
SQM: Stopping SQM on wlan0
SQM: Starting SQM script: piece_of_cake.qos on eth1, in: 1500 Kbps, out: 5000 Kbps
SQM: piece_of_cake.qos was started on eth1 successfully
SQM: Starting SQM script: piece_of_cake.qos on eth2, in: 250 Kbps, out: 5000 Kbps
SQM: piece_of_cake.qos was started on eth2 successfully
SQM: Starting SQM script: piece_of_cake.qos on wlan0, in: 1500 Kbps, out: 5000 Kbps
SQM: piece_of_cake.qos was started on wlan0 successfully