Mark Knowles' Blog has a good explanation on how to maintain a persistent vpnc connection. However, this doesn't work well for multiple vpnc connections (Connecting doesn't work for me, everything gets reconnected on a single disconnect, ...). Is there a better way of maintaining multiple vpnc connections?
The following modifications work well for multiple profiles:
Don't forget that scripts need to be executable. As long as you call them from root, these scripts work very well in any automated cron-jobs, e.g. before you call