*** empty log message ***
[userv-utils] / ipif / udptunnel-vpn-defaults
CommitLineData
2e082dfe 1m4_dnl udptunnel-vpn-defaults: default settings for udptunnel-reconf
2
3m4_dnl This is free software; you can redistribute it and/or modify it
4m4_dnl under the terms of the GNU General Public License as published by
5m4_dnl the Free Software Foundation; either version 2 of the License, or
6m4_dnl (at your option) any later version.
7m4_dnl
8m4_dnl This program is distributed in the hope that it will be useful, but
9m4_dnl WITHOUT ANY WARRANTY; without even the implied warranty of
10m4_dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11m4_dnl General Public License for more details.
12m4_dnl
13m4_dnl You should have received a copy of the GNU General Public License
14m4_dnl along with userv-utils; if not, write to the Free Software
15m4_dnl Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16m4_dnl
17m4_dnl $Id$
18
19SET( lcommand, [udptunnel])
20SET( crypto,
21 [-e nonce -e timestamp/10/30 -e pkcs5/8 \
22 -e blowfish-cbcmac/128 -e blowfish-cbc/128])
23
24SET( lpublic, [`hostname`])
25SET( lport, [Any])
26m4_dnl rpublic -- usually set in sites
27SET( rport, [Command])
28m4_dnl lend -- usually set in global
29m4_dnl rend -- usually set in sites
30SET( mtu, [1000])
31SET( proto, [cslip])
ccd5607e 32SET( to_restart, [10])
2e082dfe 33SET( to_poll, [30])
34SET( to_quit, [130])
35SET( to_report, [1800])
36SET( timeouts, [V_to_poll,V_to_quit,V_to_report])
37SET( lnets, [-])m4_dnl often overridden in global
38SET( rnets, [-])m4_dnl often overridden in sites
39SET( forbid_remote, [V_lnets])
40
41SET( rcommandprefix, [])
42SET( rcommand, [V_rcommandprefix udptunnel])
43
44SET( sshprotoka, [-o 'ProtocolKeepAlives 300'])
45SET( sshstdopts, [-o 'ForwardAgent no' -o 'ForwardX11 no' -o 'BatchMode yes'])
46SET( sshverbose, [-v])
47SET( sshopts, [])
48SET( ssh,
49 [ssh V_sshstdopts \
50 V_sshprotoka V_sshverbose \
51 V_sshopts])
f21c3bcf 52SET( sshinvoke, [V_ssh V_ruser@V_sshdest])
56a03854 53
2e082dfe 54SET( sshdest, [V_rpublic])
55
56SET( sites, [sites])
57SET( tunnels, [tunnels])
58
59m4_dnl varlibvpn -- global can override
60
61SET( ipifnetsfile, [V_varlibvpn/ipif-networks])
62SET( activesfile, [V_varlibvpn/active-sites])
63SET( activesxinfo, [])
64SET( passivesfile, [V_varlibvpn/passive-sites])
65SET( passivesxinfo, [])
66
67SET( postconfigure, [])
68
69SET( invoke_file, [V_varlibvpn/command.V_site])
70SET( invoke_head, [#!/bin/sh])
71SET( invoke_hook, [])
72
73SET( syslog_facility, local2)
74SET( syslog_priority, info)
75
76SET( inittab_runlevels, 2345)
77SET( inittab_pfx, [])
78SET( inittab_sfx,
e0bdbf6d 79 [</dev/null 2>&1 | logger -p V_syslog_facility.V_syslog_priority -t tunnel-V_site])
2e082dfe 80SET( inittab_command,[V_inittab_pfx V_invoke_file V_inittab_sfx])
81SET( inittab_line, [V_inittab_runlevels:respawn:V_inittab_command])
82
83SET( invoke_body,
84[set -e
85V_invoke_hook
86echo "STARTING TUNNEL `date`" >&2
ccd5607e 87set +e
2e082dfe 88V_command
89rc=$?
ccd5607e 90set -e
2e082dfe 91echo "TUNNEL CLOSED rc=$rc" >&2
ccd5607e 92sleep V_to_restart
93echo "TUNNEL MAYRESTART" >&2
2e082dfe 94exit $rc
95])
96
97m4_dnl lgroup -- usually set in global
98
99SET( command,
100[V_lcommand \
101 V_crypto \
102 V_lpublic,V_lport \
103 V_rpublic,V_rport \
104 V_lend,V_rend,V_mtu,V_proto \
105 V_timeouts \
106 V_rnets \
107 V_lnets \
56a03854 108 V_sshinvoke V_rcommand
2e082dfe 109 ])