On Wednesday 15 July 2009 13:05:12 Michael Schwartzkopff wrote:
> Am Mittwoch, 15. Juli 2009 11:53:45 schrieb Kaushal Shriyan:
> > Hi,
> >
> > Is there a documentation to set up High available Openvpn server ?
> >
> > Thanks and Regards
> >
> > Kaushal
>
> Hi,
>
> not really. Some hints:
>
> 1) use the local<virtual IP> config option.
>
> 2) use the keepalive ... config option. Read the doc for more info about
> that option.
>
> 3) Take care that your init script does a correct start, stop and status.
> i.e. I added to my status section:
> status)
>   if [ ! -e $PIDFILE ]
>   then
>     echo "$PIDFILE does not exist."
>     exit 3
>   fi
>
>   NOW=`date +%s`   # Jetzt in Sekunden seit 1970
>   VPNSTATUS=`stat -c "%Y" $STATUSFILE`   # mtime des Statusfiles in
> Sekunden seit 1970
>   if [ $(($NOW - $VPNSTATUS)) -gt 180 ]  # Wenn der Status älter als 180
> Sek isst ...
>     then exit 3
>     else exit 0   # nehmen wir mal, an der Server laeuft
>   fi
>   ;;
>
> Pleaes publish any improvements. thanks.
>
> Greetings,

Also you can use multiple remote options in the config which are tested in 
Round-Robin fashion.

-- 
Best regards,
Marian Marinov
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to