2dba6494 |
1 | SET( lcommand, [udptunnel]) |
f685ef8c |
2 | SET( crypto, |
3 | [-e nonce -e timestamp/10/30 -e pkcs5/8 \ |
4 | -e blowfish-cbcmac/128 -e blowfish-cbc/128]) |
2dba6494 |
5 | |
6 | SET( lpublic, [`hostname`]) |
7 | SET( lport, [Any]) |
8 | m4_dnl rpublic -- usually set in sites |
9 | SET( rport, [Command]) |
10 | m4_dnl lend -- usually set in global |
11 | m4_dnl rend -- usually set in sites |
12 | SET( mtu, [1000]) |
13 | SET( proto, [cslip]) |
14 | SET( to_poll, [30]) |
15 | SET( to_quit, [130]) |
16 | SET( to_report, [1800]) |
17 | SET( timeouts, [V_to_poll,V_to_quit,V_to_report]) |
18 | SET( lnets, [-])m4_dnl often overridden in global |
19 | SET( rnets, [-])m4_dnl often overridden in sites |
f685ef8c |
20 | SET( forbid_remote, [V_lnets]) |
2dba6494 |
21 | |
22 | SET( rcommandprefix, []) |
23 | SET( rcommand, [V_rcommandprefix udptunnel]) |
24 | |
f685ef8c |
25 | SET( sshprotoka, [-o 'ProtocolKeepAlives 300']) |
26 | SET( sshstdopts, [-o 'ForwardAgent no' -o 'ForwardX11 no' -o 'BatchMode yes']) |
27 | SET( sshverbose, [-v]) |
28 | SET( ssh, |
29 | [ssh V_sshstdopts \ |
30 | V_sshprotoka V_sshverbose]) |
31 | |
2dba6494 |
32 | SET( sshdest, [V_rpublic]) |
33 | |
34 | SET( sites, [sites]) |
35 | SET( tunnels, [tunnels]) |
36 | |
f685ef8c |
37 | SET( varlib, [/var/lib/udptunnel-vpn]) |
38 | |
39 | SET( ipifnetsfile, [V_varlib/ipif-networks]) |
40 | SET( activesfile, [V_varlib/active-sites]) |
41 | SET( activesxinfo, []) |
42 | SET( passivesfile, [passive-sites]) |
43 | SET( passivesxinfo, []) |
44 | |
45 | SET( postconfigure, []) |
46 | |
47 | SET( invoke_file, [V_varlib/V_site.command]) |
48 | SET( invoke_head, [#!/bin/sh]) |
49 | SET( invoke_hook, []) |
50 | |
51 | SET( syslog_facility, local2) |
52 | SET( syslog_priority, info) |
53 | |
54 | SET( inittab_runlevels, 2345) |
55 | SET( inittab_fragfile, [inittab-fragment]) |
56 | SET( inittab_pfx, []) |
57 | SET( inittab_sfx, |
58 | [2>&1 | logger -p V_syslog_facility.V_syslog_priority -t tunnel-V_site]) |
59 | SET( inittab_command,[V_inittab_pfx V_invoke_file V_inittab_sfx]) |
60 | SET( inittab_line, [V_inittab_runlevels:respawn:V_inittab_command]) |
61 | |
62 | SET( invoke_body, |
63 | [set -e |
64 | V_invoke_hook |
65 | echo "STARTING TUNNEL `date`" >&2 |
66 | V_command |
67 | rc=$? |
68 | echo "TUNNEL CLOSED rc=$rc" >&2 |
69 | exit $rc |
70 | ]) |
71 | |
2dba6494 |
72 | m4_dnl lgroup -- usually set in global |
73 | |
f685ef8c |
74 | SET( command, |
75 | [V_lcommand \ |
76 | V_crypto \ |
77 | V_lpublic,V_lport \ |
78 | V_rpublic,V_rport \ |
79 | V_lend,V_rend,V_mtu,V_proto \ |
80 | V_timeouts \ |
81 | V_rnets \ |
82 | V_lnets \ |
83 | V_ssh \ |
84 | V_ruser@V_sshdest \ |
85 | V_rcommand |
86 | ]) |