I need to use a
tc qdisc command to limit bandwidth usage on an interface created by
openvpn. This works great when I run the command manually but occasionally the connection drops or restarts and this appears to cancel or deactivate the previously applied bandwidth settings. Is there a way to make a
tc qdisc command apply permanently (or at least until I choose to cancel it) on a particular interface in such a way that any time that interface is up, my bandwidth settings will apply? I need something like the
firewall-cmd permanent flag that makes the settings stick.
The command I'm currently using looks something like this:
tc qdisc add dev tun0 tbf rate 1mbit latency...
tun0 is the interface name created by