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