I am looking for some policy routing script for linux that isn't a part of a firewall, there are tools like shorewall and others but I prefer something more simple.

I only need a script that can set a per-service preference on one of my two upstream connections, and failover nicely when one of the connections is down.

So far I could only find a script called netsane that can be found at google code (http://code.google.com/p/netsane/) and it's more or less what I need but it looks a bit abandoned. The script is largely based on this tutorial from Larc Does anyone know about more alternatives for this?

  • For anyone interested into this, I jumped into the code and made some contributions to the original source, it should work better with recent systems (I am trying it with debian squeeze) – aseques Feb 9 '12 at 10:20

You may take a look at IGNWTools, which has some routing-policy for Chinese users, including ISP-based routes and anti-censorship routes, may help you as examples :)

| improve this answer | |
  • After reading about that tool, it seems to me that it'd be complicated to adapt to my environment. – aseques Feb 6 '12 at 13:41
  • :( so hope you'll find something more appropriate – Felix Yan Feb 6 '12 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.