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