Quoting David Kempe <[EMAIL PROTECTED]>: > Amanda wrote: > > > Have a pptp connection from SME server to windows 2000 vpn server. > > I'm looking for a bash script which will periodically (launched from cron) > ping > > a machine on the remote network and restart pptp if it doesn't respond. > > if you have control over both ends you might consider openvpn as an > alternative. its a fair bit more robust at keeping the connection alive > and runs fine on win2k and linux. > easy to setup too. > http://openvpn.sf.net i think... > > dave >
First, the windows 2000 server is my bosses baby, and I feel rather disinclined to mess with it. Second, we have a fair few non-computer-literate users using the existing pptp setup, and I fear it's more drama than its worth trying to change them over. But, I have managed to get a heartbeat monitor working. It brings the pptp tunnel back up if it fails. Problem is, I'm running mysql in replication mode. Replication fails when I lose the tunnel, and doesn't come back once the tunnel is re-instated. And adding "/etc/rc.d/init.d/mysqld restart" to the script also doesn't bring it back. I think I need to make the script a little smarter; wait for the tunnel to be re-instated, then restart mysql. But I also have other problems to do with file permissions & php & file uploads. See my next post (coming shortly). Amanda Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
