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