Anyone to know iproute-save, iproute-restore like script similar iptables-save/restore ? that stores everytihng routes,rules,tables everything ... then init.d-script that among other things stores the state on shutdown :") (thats easy then) ----- http://linuxtoday.com/news_story.php3?ltsn=2004-12-08-004-32-OS-BZ-DT-0005 snip> MS Office is popular in the same way as heart disease is the most popular way to die. -- gentoo-user@gentoo.org mailing list
that is the hard part to make it not mess with normal if-up/down scripts and routes they add... I have alot of manual routes and rules which are not easy handled especialy when I add another boxes which also happen to have different routes..... If I can figure out the format of the default-ip-up/down routes I can skip them with a regex.. will have to look.. |I think it doesn''t sound elegant, routing system strictly depends on |availability interfaces, so setting up routes should be done in if-up |and if-down script, for example, if you unplug a NIC before booting the |computer, do you want the route for that NIC to be set up? And sometimes |you may need to bring down a NIC - then the kernel will delete your |routes automatically, if you have a nice if-up script, the routes will |be recovered when you bring it up. An init.d script can''t do it. |If you still want a init.d script, go ahead and write your own script, |it''s rather easy to do save states and restore on boot, but I guess you |may want things to done right instead of a messy solution. | |raptor@tvskat.net wrote: | |>Anyone to know iproute-save, iproute-restore like script similar iptables-save/restore ? |>that stores everytihng routes,rules,tables everything ... |>then init.d-script that among other things stores the state on shutdown :") (thats easy then) |> |> | ----- http://linuxtoday.com/news_story.php3?ltsn=2004-12-08-004-32-OS-BZ-DT-0005 snip> MS Office is popular in the same way as heart disease is the most popular way to die. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Fri, 2005-01-28 at 09:12 +0200, raptor@tvskat.net wrote:> Anyone to know iproute-save, iproute-restore like script similar iptables-save/restore ? > that stores everytihng routes,rules,tables everything ... > then init.d-script that among other things stores the state on shutdown :") (thats easy then) >I wrote something like that: http://washington.kelkoo.net/iprvss/ I''m using it, to manage the policy routing setup of my company (around 25 firewalls / routers). I''ve been using it since several years with different scenarios, and so far without issues. Let me know if you have problem with it. There is no init script at that time, unfortunately, but it should be quite easy to make one, or use rc.local to call it. Regards,> > ----- > http://linuxtoday.com/news_story.php3?ltsn=2004-12-08-004-32-OS-BZ-DT-0005 > snip> MS Office is popular in the same way as heart disease is the most popular way to die. > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/-- Vincent Jaussaud Kelkoo.com Security Manager email: tatooin@kelkoo.com GPG key: 1024D/3BFE3FC7 2002-02-07 "Those who desire to give up freedom in order to gain security will not have, nor do they deserve, either one." -- President Thomas Jefferson. 1743-1826