Oct

25

Setting lost routes

October 25, 2009 |

Sometimes VPN softwares between untrusted sites (common in short companies) face the problem of loosing routes when one or other side has the link broken.

The script below help us to register these routes again and can be scheduled.

It makes use of arrays, and not necessarily the list of gateways needs to be in numerical order. Click on the image below to visualize it in a friendly size.

I have tested the script under Linux and OpenVPN.

You will need to make changes (perhaps) if intend run it in other systems (e.g.: FreeBSD), because the route command can present different stdout messages.


Comments

Name (required)

Email (required)

Website

Speak your mind

Links

Skype: SkypeMe™!

Icq: