[Linux-HA] HA Openvpn server
Kaushal Shriyan
kaushalshriyan at gmail.com
Wed Jul 15 04:32:26 MDT 2009
On Wed, Jul 15, 2009 at 3:49 PM, Marian Marinov<mm at yuhu.biz> wrote:
> 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,
>
Hi Marian
> Also you can use multiple remote options in the config which are tested in
> Round-Robin fashion.
Any examples ?
Thanks,
Kaushal
More information about the Linux-HA
mailing list