Does anyone know of any scripts or packages that implement a way to save and restore your tc and ip packet routing and shaping configuration to a file for reloading at boot or restoring in case of a mess up?

iptables offers iptables-save and iptables-restore, but I can't find a similar utility for iproute2 commands.

Thanks

fm

GrapefruiTgirl

11-29-2009 09:22 PM

As far as the tc settings, how do you put them in place in the first place?

I just use a bash script containing the tc configuration, which I execute via a call from my firewall script. So, when the firewall is enabled, it runs the tc script, which creates queueing disciplines, etc.; when the firewall goes down, it removes the qdiscs by calling the same script with a "stop" argument.