blob: d88909bc9bd24acba406f395fb734a9065bbdbc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="service">
<properties>
<help>System services</help>
</properties>
<children>
<node name="stunnel" owner="${vyos_conf_scripts_dir}/service_stunnel.py">
<properties>
<help>Stunnel TLS Proxy</help>
<priority>1000</priority>
</properties>
<children>
<tagNode name="server">
<properties>
<help>Stunnel server config</help>
</properties>
<children>
#include <include/stunnel/connect.xml.i>
#include <include/stunnel/listen.xml.i>
#include <include/stunnel/ssl.xml.i>
#include <include/stunnel/psk.xml.i>
<leafNode name="protocol">
<properties>
<help>Application protocol to negotiate TLS</help>
<completionHelp>
<list>cifs imap pgsql pop3 proxy smtp socks</list>
</completionHelp>
#include <include/stunnel/protocol-value-cifs.xml.i>
#include <include/stunnel/protocol-value-imap.xml.i>
#include <include/stunnel/protocol-value-pgsql.xml.i>
#include <include/stunnel/protocol-value-pop3.xml.i>
#include <include/stunnel/protocol-value-proxy.xml.i>
#include <include/stunnel/protocol-value-smtp.xml.i>
#include <include/stunnel/protocol-value-socks.xml.i>
<constraint>
<regex>(cifs|imap|pgsql|pop3|proxy|smtp|socks)</regex>
</constraint>
</properties>
</leafNode>
</children>
</tagNode>
<tagNode name="client">
<properties>
<help>Stunnel client config</help>
</properties>
<children>
#include <include/stunnel/connect.xml.i>
#include <include/stunnel/listen.xml.i>
#include <include/stunnel/ssl.xml.i>
#include <include/stunnel/psk.xml.i>
<leafNode name="protocol">
<properties>
<help>Application protocol to negotiate TLS</help>
<completionHelp>
<list>cifs connect imap nntp pgsql pop3 proxy smtp socks</list>
</completionHelp>
#include <include/stunnel/protocol-value-cifs.xml.i>
#include <include/stunnel/protocol-value-connect.xml.i>
#include <include/stunnel/protocol-value-imap.xml.i>
#include <include/stunnel/protocol-value-nntp.xml.i>
#include <include/stunnel/protocol-value-pgsql.xml.i>
#include <include/stunnel/protocol-value-pop3.xml.i>
#include <include/stunnel/protocol-value-proxy.xml.i>
#include <include/stunnel/protocol-value-smtp.xml.i>
#include <include/stunnel/protocol-value-socks.xml.i>
<constraint>
<regex>(cifs|connect|imap|nntp|pgsql|pop3|proxy|smtp|socks)</regex>
</constraint>
</properties>
</leafNode>
#include <include/stunnel/protocol-options.xml.i>
</children>
</tagNode>
<node name="log">
<properties>
<help>Service logging</help>
</properties>
<children>
<leafNode name="level">
<properties>
<help>Specifies log level.</help>
<completionHelp>
<list>emerg alert crit err warning notice info debug</list>
</completionHelp>
<valueHelp>
<format>emerg</format>
<description>Emerg log level</description>
</valueHelp>
<valueHelp>
<format>alert</format>
<description>Alert log level</description>
</valueHelp>
<valueHelp>
<format>crit</format>
<description>Critical log level</description>
</valueHelp>
<valueHelp>
<format>err</format>
<description>Error log level</description>
</valueHelp>
<valueHelp>
<format>warning</format>
<description>Warning log level</description>
</valueHelp>
<valueHelp>
<format>notice</format>
<description>Notice log level</description>
</valueHelp>
<valueHelp>
<format>info</format>
<description>Info log level</description>
</valueHelp>
<valueHelp>
<format>debug</format>
<description>Debug log level</description>
</valueHelp>
<constraint>
<regex>(emerg|alert|crit|err|warning|notice|info|debug)</regex>
</constraint>
</properties>
<defaultValue>notice</defaultValue>
</leafNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|