LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables-save type command for iproute2 commands? (https://www.linuxquestions.org/questions/linux-networking-3/iptables-save-type-command-for-iproute2-commands-772340/)

fmillion 11-29-2009 08:17 PM

iptables-save type command for iproute2 commands?
 
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 08: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.

Sorry if I'm missing something-- please explain if I am :)

Sasha


All times are GMT -5. The time now is 04:55 PM.