@@ -2,7 +2,8 @@
[userv-utils] / ipif / udptunnel-vpn-defaults
CommitLineData
ee498ba1 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: udptunnel-vpn-defaults,v 1.1.2.4 2000/12/11 01:53:01 ian Exp $
18
2dba6494 19SET( lcommand, [udptunnel])
f685ef8c 20SET( crypto,
21 [-e nonce -e timestamp/10/30 -e pkcs5/8 \
22 -e blowfish-cbcmac/128 -e blowfish-cbc/128])
2dba6494 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])
32SET( to_poll, [30])
33SET( to_quit, [130])
34SET( to_report, [1800])
35SET( timeouts, [V_to_poll,V_to_quit,V_to_report])
36SET( lnets, [-])m4_dnl often overridden in global
37SET( rnets, [-])m4_dnl often overridden in sites
f685ef8c 38SET( forbid_remote, [V_lnets])
2dba6494 39
40SET( rcommandprefix, [])
41SET( rcommand, [V_rcommandprefix udptunnel])
42
f685ef8c 43SET( sshprotoka, [-o 'ProtocolKeepAlives 300'])
44SET( sshstdopts, [-o 'ForwardAgent no' -o 'ForwardX11 no' -o 'BatchMode yes'])
45SET( sshverbose, [-v])
ee498ba1 46SET( sshopts, [])
f685ef8c 47SET( ssh,
48 [ssh V_sshstdopts \
ee498ba1 49 V_sshprotoka V_sshverbose \
50 V_ssopts])
f685ef8c 51
2dba6494 52SET( sshdest, [V_rpublic])
53
54SET( sites, [sites])
55SET( tunnels, [tunnels])
56
5f07dcfa 57m4_dnl varlibvpn -- global can override
f685ef8c 58
ee498ba1 59SET( ipifnetsfile, [V_varlibvpn/ipif-networks])
60SET( activesfile, [V_varlibvpn/active-sites])
f685ef8c 61SET( activesxinfo, [])
ee498ba1 62SET( passivesfile, [V_varlibvpn/passive-sites])
f685ef8c 63SET( passivesxinfo, [])
64
65SET( postconfigure, [])
66
ee498ba1 67SET( invoke_file, [V_varlibvpn/command.V_site])
f685ef8c 68SET( invoke_head, [#!/bin/sh])
69SET( invoke_hook, [])
70
71SET( syslog_facility, local2)
72SET( syslog_priority, info)
73
74SET( inittab_runlevels, 2345)
f685ef8c 75SET( inittab_pfx, [])
76SET( inittab_sfx,
77 [2>&1 | logger -p V_syslog_facility.V_syslog_priority -t tunnel-V_site])
78SET( inittab_command,[V_inittab_pfx V_invoke_file V_inittab_sfx])
79SET( inittab_line, [V_inittab_runlevels:respawn:V_inittab_command])
80
81SET( invoke_body,
82[set -e
83V_invoke_hook
84echo "STARTING TUNNEL `date`" >&2
85V_command
86rc=$?
87echo "TUNNEL CLOSED rc=$rc" >&2
88exit $rc
89])
90
2dba6494 91m4_dnl lgroup -- usually set in global
92
f685ef8c 93SET( command,
94[V_lcommand \
95 V_crypto \
96 V_lpublic,V_lport \
97 V_rpublic,V_rport \
98 V_lend,V_rend,V_mtu,V_proto \
99 V_timeouts \
100 V_rnets \
101 V_lnets \
102 V_ssh \
103 V_ruser@V_sshdest \
104 V_rcommand
105 ])