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