Hello!
I’m using RUT955 as an access point for several wireless IP clients. The internet connection is provided via a cellular connection. To save data volume, I want to limit the speed of a specific IP client. Is there a way to do this?
I’ve tried QoS and SQM, but both only allow limiting the entire internet connection, since you can only define rules for instances (e.g. the SIM card) and not for specific wireless clients. This is not strictly necessary.
Background: I use a Fire TV Stick in an RV and there is no way to reduce the data rate when watching TV. But several apps manage to adapt the video quality to a bad internet connection. So I want to fake this with RUT955.
Thanks in advance.
Peter
Hello,
Currently, this functionality is not available on the RUTOS firmware versions. However, you can achieve it using various opkg
packages. It may not be the simplest or most elegant solution, but it will work. Here’s how:
-
Run the following commands to update opkg
and download the required packages:
opkg update
opkg install tc iptables
-
Go to System → Maintenance → Custom Scripts and paste this script:
# Variables
DEV="eth0"
IP="192.168.1.100" # Replace with the IP address you want to limit
LIMIT="10mbit" # Bandwidth limit in mbits
tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: htb default 30
tc class add dev $DEV parent 1: classid 1:1 htb rate 100mbit
tc class add dev $DEV parent 1:1 classid 1:10 htb rate $LIMIT ceil $LIMIT
tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip dst $IP flowid 1:10
tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src $IP flowid 1:10
Make sure to replace the IP
and LIMIT
values with those required for your setup. This script will run at each startup and limit the bandwidth of the specified IP address.
Best regards,
Hey Marijus,
sorry for the late answer and thanks for your tip. I haven’t tried the script yet. I found a more suitable solution. I can reduce the required data rate directly in Fire OS. There is an option in the settings that I didn’t know about before.
Many thanks anyway!
Regards Peter
Hello,
Great to hear that you found a solution! If you need any further assistance, feel free to reach out.
Best regards,