[AC87U]: Limit Bandwidth On 5GHz Band Using Script

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.


New Around Here
Hi everybody,

I'm trying to write a script that does the following:
  • Read a list of user/device name/mac addresses/limit
  • Check if the device is active (i.e. bandwidth is over a given threshold) - e.g. every minute
  • Count the times the device is over this threshold
  • If the device breaches the LIMIT read in for that MAC, then limit the up/down bandwidth for that device.
I have got all this working for eth1 (2.4GHz) using the tc command. However, I am unable to use tc for wifi0 - tc reports it cannot find the device.

The code I am using to limit the bandwidth is as follows:

tc qdisc add dev $IF root handle 1: htb default 30
tc class add dev $IF parent 1: classid 1:1 htb rate $DNLD
tc class add dev $IF parent 1: classid 1:2 htb rate $UPLD
U32="tc filter add dev $IF protocol ip parent 1:0 prio 1 u32"
$U32 match ip dst $IP/32 flowid 1:1
$U32 match ip src $IP/32 flowid 1:2

Can anyone help?



Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!