Not sure whether this is a Networks & IC issue or a Linux issue. I think it belongs in here more though.
I've just regraded to MaxDSL, so my connection is pretty unstable on my Draytek router at home. Everytime the connection drops, the VPN drops... and doesn't come back until i stop the VPN service on the smoothwall box, and then restart it. It usually comes back first time.
This isn't automated. So I was wondering if there's anything I could do to automate it - and I was hoping someone might be able to lend a hand as i'm not too hot on linux scripting.
I have two commands in /etc/rc.d/ called rc.vpn.up and rc.vpn.down, so i'm guessing they'll work. failing that i could just restart the ipsec daemon.
So I need someway of monitoring if the connection's live or not. The way i do it manually is to ping an IP at the other end of the VPN - if i get a reply, it's working, if not i reboot.
So, is there a simple script i can cobble together? And how would I get it to run? cron job? Not too sure on those either!
Thanks for any help!
I've just regraded to MaxDSL, so my connection is pretty unstable on my Draytek router at home. Everytime the connection drops, the VPN drops... and doesn't come back until i stop the VPN service on the smoothwall box, and then restart it. It usually comes back first time.
This isn't automated. So I was wondering if there's anything I could do to automate it - and I was hoping someone might be able to lend a hand as i'm not too hot on linux scripting.
I have two commands in /etc/rc.d/ called rc.vpn.up and rc.vpn.down, so i'm guessing they'll work. failing that i could just restart the ipsec daemon.
So I need someway of monitoring if the connection's live or not. The way i do it manually is to ping an IP at the other end of the VPN - if i get a reply, it's working, if not i reboot.
So, is there a simple script i can cobble together? And how would I get it to run? cron job? Not too sure on those either!
Thanks for any help!