Switching between VPN (ADSL) / LAN2LAN (ISDN)

Translation of the original in Catalan. Read it in: CatalàCastellano

For a change due to problems in a company at work, I have found myself programming a whole surveillance system for the VPN that I commented to you some time ago, in order to check that this works, if it doesn't work I have to make it automatically switch to an ISDN call...

Well the idea is that the VPN they have set up at the company works over the infonegocio ADSL that each office has on its own side. As we all know ADSL nowadays is not exactly a guarantee of operation and I have set up a parallel network via ISDN which this one goes without encryption (without IPSec) since the call is direct and I consider that it is already secure enough.

So the document I publish is a summary of how I implement this surveillance of the connection, of the switching between the Barcelona branch and the Valencia one. In this case the one that makes the call in case of a fall of either of the two ADSLs is Valencia.

I hope it is useful to someone because the silly little thing that seems trivial has cost me more than 16h of work and I am still not 100% sure that it works well. Although all the simulations of line failures have worked for me.

If you want to simulate that an ADSL falls, the only thing I do is forbid the firewall to let in packets from the other network and then it thinks that the other ADSL has fallen.

You can consult the document at: http://oriol.homeip.net/Documents/commutacio\_vpn\_rdsi.pdf