blob: 221b4320fc0763bc9349842205e496eccf2c0f94 (
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="system">
<children>
<node name="syslog" owner="${vyos_conf_scripts_dir}/system_syslog.py">
<properties>
<help>System logging</help>
<priority>400</priority>
</properties>
<children>
<node name="console">
<properties>
<help>Log to system console (/dev/console)</help>
</properties>
<children>
#include <include/syslog-facility.xml.i>
</children>
</node>
<tagNode name="remote">
<properties>
<help>Log to remote host</help>
<constraint>
<validator name="ip-address"/>
<validator name="fqdn"/>
</constraint>
<constraintErrorMessage>Invalid host (FQDN or IP address)</constraintErrorMessage>
<valueHelp>
<format>ipv4</format>
<description>Remote syslog server IPv4 address</description>
</valueHelp>
<valueHelp>
<format>ipv6</format>
<description>Remote syslog server IPv6 address</description>
</valueHelp>
<valueHelp>
<format>hostname</format>
<description>Remote syslog server FQDN</description>
</valueHelp>
</properties>
<children>
#include <include/syslog-facility.xml.i>
<node name="format">
<properties>
<help>Logging format</help>
</properties>
<children>
<leafNode name="octet-counted">
<properties>
<help>Allows for the transmission of multi-line messages (TCP only)</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="include-timezone">
<properties>
<help>Use RFC 5424 format (with RFC 3339 timestamp and timezone)</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
#include <include/port-number.xml.i>
<leafNode name="port">
<defaultValue>514</defaultValue>
</leafNode>
#include <include/protocol-tcp-udp.xml.i>
#include <include/source-address-ipv4-ipv6.xml.i>
#include <include/interface/vrf.xml.i>
<node name="tls">
<properties>
<help>Transport Layer Security (TLS) options for secure syslog</help>
</properties>
<children>
<!-- CA cert help should describe trust anchor for server/client validation -->
#include <include/pki/ca-certificate.xml.i>
<!-- Certificate help should specify identity for mutual authentication -->
#include <include/pki/certificate.xml.i>
<leafNode name="auth-mode">
<properties>
<help>Specify the authentication and verification method for the remote peer's certificate during the TLS handshake</help>
<completionHelp>
<list>anon fingerprint certvalid name</list>
</completionHelp>
<valueHelp>
<format>anon</format>
<description>Allow encrypted connection without verifying the peer's identity (anonymous TLS)</description>
</valueHelp>
<valueHelp>
<format>fingerprint</format>
<description>Authenticate peer by matching its certificate fingerprint to a configured, permitted list (`permitted-peer` option)</description>
</valueHelp>
<valueHelp>
<format>certvalid</format>
<description>Authenticate peer if it presents a certificate signed by a trusted CA</description>
</valueHelp>
<valueHelp>
<format>name</format>
<description>Authenticate peer by verifying its certificate subject name against a configured value (`permitted-peer` option)</description>
</valueHelp>
<constraint>
<regex>(anon|fingerprint|certvalid|name)</regex>
</constraint>
</properties>
<defaultValue>anon</defaultValue>
</leafNode>
<leafNode name="permitted-peer">
<properties>
<help>Allowed peer certificate fingerprint or subject name</help>
<valueHelp>
<format>txt</format>
<description>Peer fingerprint - SHA1:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX or subject name - logs.example.com</description>
</valueHelp>
<multi/>
</properties>
</leafNode>
</children>
</node>
</children>
</tagNode>
<node name="local">
<properties>
<help>Log to standard system location /var/log/messages</help>
</properties>
<children>
#include <include/syslog-facility.xml.i>
</children>
</node>
<node name="marker">
<properties>
<help>Mark messages sent to syslog</help>
</properties>
<children>
#include <include/generic-disable-node.xml.i>
<leafNode name="interval">
<properties>
<help>Mark message interval</help>
<valueHelp>
<format>u32:1-65535</format>
<description>Time in seconds</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 1-65535"/>
</constraint>
<constraintErrorMessage>Port number must be in range 1 to 65535</constraintErrorMessage>
</properties>
<defaultValue>1200</defaultValue>
</leafNode>
</children>
</node>
<leafNode name="preserve-fqdn">
<properties>
<help>Always include domain portion in hostname</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|