configuration-templates – Blame information for rev 27

Subversion Repositories:
Rev:
Rev Author Line No. Line
27 office 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ###########################################################################
4  
5 # The file assumes the following configuration:
6 # * vpn-network.com is the network configured in /etc/openvpn/.
7 # * tap0 is the TAP interface.
8 # * 1.1.1.1 is the point-to-point VPN gateway.
9  
10 check process vpn-network with pidfile /var/run/vpn-network.pid
11 start program = "/etc/init.d/openvpn start vpn-network.com"
12 stop program = "/etc/init.d/openvpn stop vpn-network.com"
13  
14 check host tap0 with address 1.1.1.1
15 start program = "/etc/init.d/openvpn start vpn-network.com"
16 stop program = "/etc/init.d/openvpn stop vpn-network.com"
17 if failed
18 icmp type echo count 5 with timeout 15 seconds
19 then restart