| 1 |
# |
| 2 |
# sudo logsrv daemon configuration |
| 3 |
# |
| 4 |
|
| 5 |
[server] |
| 6 |
# The host name or IP address and port to listen on with an optional TLS |
| 7 |
# flag. If no port is specified, port 30343 will be used for plaintext |
| 8 |
# connections and port 30344 will be used to TLS connections. |
| 9 |
# The following forms are accepted: |
| 10 |
# listen_address = hostname(tls) |
| 11 |
# listen_address = hostname:port(tls) |
| 12 |
# listen_address = IPv4_address(tls) |
| 13 |
# listen_address = IPv4_address:port(tls) |
| 14 |
# listen_address = [IPv6_address](tls) |
| 15 |
# listen_address = [IPv6_address]:port(tls) |
| 16 |
# |
| 17 |
# The (tls) suffix should be omitted for plaintext connections. |
| 18 |
# |
| 19 |
# Multiple listen_address settings may be specified. |
| 20 |
# The default is to listen on all addresses. |
| 21 |
listen_address = 172.0.0.1:30343 |
| 22 |
listen_address = 172.0.0.1:30344(tls) |
| 23 |
|
| 24 |
# The file containing the ID of the running sudo_logsrvd process. |
| 25 |
pid_file = /var/run/sudo/sudo_logsrvd.pid |
| 26 |
|
| 27 |
# Where to log server warnings: none, stderr, syslog, or a path name. |
| 28 |
server_log = stderr |
| 29 |
|
| 30 |
# If true, enable the SO_KEEPALIVE socket option on client connections. |
| 31 |
# Defaults to true. |
| 32 |
tcp_keepalive = true |
| 33 |
|
| 34 |
# The amount of time, in seconds, the server will wait for the client to |
| 35 |
# respond. A value of 0 will disable the timeout. The default value is 30. |
| 36 |
timeout = 30 |
| 37 |
|
| 38 |
# If true, the server will validate its own certificate at startup. |
| 39 |
# Defaults to true. |
| 40 |
tls_verify = false |
| 41 |
|
| 42 |
# If true, client certificates will be validated by the server; |
| 43 |
# clients without a valid certificate will be unable to connect. |
| 44 |
# By default, client certs are not checked. |
| 45 |
tls_checkpeer = true |
| 46 |
|
| 47 |
# Path to a certificate authority bundle file in PEM format to use |
| 48 |
# instead of the system's default certificate authority database. |
| 49 |
tls_cacert = regress/logsrvd_conf/cacert.pem |
| 50 |
|
| 51 |
# Path to the server's certificate file in PEM format. |
| 52 |
# Required for TLS connections. |
| 53 |
tls_cert = regress/logsrvd_conf/logsrvd_cert.pem |
| 54 |
|
| 55 |
# Path to the server's private key file in PEM format. |
| 56 |
# Required for TLS connections. |
| 57 |
tls_key = regress/logsrvd_conf/logsrvd_key.pem |
| 58 |
|
| 59 |
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual). |
| 60 |
# This setting is only effective if the negotiated protocol is TLS version |
| 61 |
# 1.2. The default cipher list is HIGH:!aNULL. |
| 62 |
tls_ciphers_v12 = HIGH:!aNULL |
| 63 |
|
| 64 |
# TLS cipher list if the negotiated protocol is TLS version 1.3. |
| 65 |
# The default cipher list is TLS_AES_256_GCM_SHA384. |
| 66 |
tls_ciphers_v13 = TLS_AES_256_GCM_SHA384 |
| 67 |
|
| 68 |
# Path to the Diffie-Hellman parameter file in PEM format. |
| 69 |
# If not set, the server will use the OpenSSL defaults. |
| 70 |
tls_dhparams = regress/logsrvd_conf/logsrvd_dhparams.pem |
| 71 |
|
| 72 |
[relay] |
| 73 |
# The host name or IP address and port to send logs to in relay mode. |
| 74 |
# The syntax is identical to listen_address with the exception of |
| 75 |
# the wild card ('*') syntax. When this setting is enabled, logs will |
| 76 |
# be relayed to the specified host instead of being stored locally. |
| 77 |
# This setting is not enabled by default. |
| 78 |
#relay_host = relayhost.dom.ain |
| 79 |
relay_host = 127.0.0.1(tls) |
| 80 |
|
| 81 |
# The amount of time, in seconds, the server will wait for a connection |
| 82 |
# to the relay server to complete. A value of 0 will disable the timeout. |
| 83 |
# The default value is 30. |
| 84 |
connect_timeout = 30 |
| 85 |
|
| 86 |
# The directory to store messages in before they are sent to the relay. |
| 87 |
# Messages are stored in wire format. |
| 88 |
# The default value is /var/log/sudo_logsrvd. |
| 89 |
relay_dir = /var/log/sudo_logsrvd |
| 90 |
|
| 91 |
# The number of seconds to wait after a connection error before |
| 92 |
# making a new attempt to forward a message to a relay host. |
| 93 |
# The default value is 30. |
| 94 |
retry_interval = 30 |
| 95 |
|
| 96 |
# Whether to store the log before relaying it. If true, enable store |
| 97 |
# and forward mode. If false, the client connection is immediately |
| 98 |
# relayed. Defaults to false. |
| 99 |
store_first = true |
| 100 |
|
| 101 |
# If true, enable the SO_KEEPALIVE socket option on relay connections. |
| 102 |
# Defaults to true. |
| 103 |
tcp_keepalive = true |
| 104 |
|
| 105 |
# The amount of time, in seconds, the server will wait for the relay to |
| 106 |
# respond. A value of 0 will disable the timeout. The default value is 30. |
| 107 |
timeout = 30 |
| 108 |
|
| 109 |
# If true, the server's relay certificate will be verified at startup. |
| 110 |
# The default is to use the value in the [server] section. |
| 111 |
tls_verify = true |
| 112 |
|
| 113 |
# Whether to verify the relay's certificate for TLS connections. |
| 114 |
# The default is to use the value in the [server] section. |
| 115 |
tls_checkpeer = false |
| 116 |
|
| 117 |
# Path to a certificate authority bundle file in PEM format to use |
| 118 |
# instead of the system's default certificate authority database. |
| 119 |
# The default is to use the value in the [server] section. |
| 120 |
tls_cacert = regress/logsrvd_conf/cacert.pem |
| 121 |
|
| 122 |
# Path to the server's certificate file in PEM format. |
| 123 |
# The default is to use the certificate in the [server] section. |
| 124 |
tls_cert = regress/logsrvd_conf/logsrvd_cert.pem |
| 125 |
|
| 126 |
# Path to the server's private key file in PEM format. |
| 127 |
# The default is to use the key in the [server] section. |
| 128 |
tls_key = regress/logsrvd_conf/logsrvd_key.pem |
| 129 |
|
| 130 |
# TLS cipher list (see "CIPHER LIST FORMAT" in the openssl-ciphers manual). |
| 131 |
# this setting is only effective if the negotiated protocol is TLS version |
| 132 |
# 1.2. The default is to use the value in the [server] section. |
| 133 |
tls_ciphers_v12 = HIGH:!aNULL |
| 134 |
|
| 135 |
# TLS cipher list if the negotiated protocol is TLS version 1.3. |
| 136 |
# The default is to use the value in the [server] section. |
| 137 |
tls_ciphers_v13 = TLS_AES_256_GCM_SHA384 |
| 138 |
|
| 139 |
# Path to the Diffie-Hellman parameter file in PEM format. |
| 140 |
# The default is to use the value in the [server] section. |
| 141 |
tls_dhparams = regress/logsrvd_conf/logsrvd_dhparams.pem |
| 142 |
|
| 143 |
[iolog] |
| 144 |
# The top-level directory to use when constructing the path name for the |
| 145 |
# I/O log directory. The session sequence number, if any, is stored here. |
| 146 |
iolog_dir = /var/log/sudo-io |
| 147 |
|
| 148 |
# The path name, relative to iolog_dir, in which to store I/O logs. |
| 149 |
# It is possible for iolog_file to contain directory components. |
| 150 |
iolog_file = %{seq} |
| 151 |
|
| 152 |
# If set, I/O logs will be compressed using zlib. Enabling compression can |
| 153 |
# make it harder to view the logs in real-time as the program is executing. |
| 154 |
iolog_compress = false |
| 155 |
|
| 156 |
# If set, I/O log data is flushed to disk after each write instead of |
| 157 |
# buffering it. This makes it possible to view the logs in real-time |
| 158 |
# as the program is executing but reduces the effectiveness of compression. |
| 159 |
iolog_flush = true |
| 160 |
|
| 161 |
# The group to use when creating new I/O log files and directories. |
| 162 |
# If iolog_group is not set, the primary group-ID of the user specified |
| 163 |
# by iolog_user is used. If neither iolog_group nor iolog_user |
| 164 |
# are set, I/O log files and directories are created with group-ID 0. |
| 165 |
#iolog_group = wheel |
| 166 |
|
| 167 |
# The user to use when setting the user-ID and group-ID of new I/O |
| 168 |
# log files and directories. If iolog_group is set, it will be used |
| 169 |
# instead of the user's primary group-ID. By default, I/O log files |
| 170 |
# and directories are created with user and group-ID 0. |
| 171 |
#iolog_user = root |
| 172 |
|
| 173 |
# The file mode to use when creating I/O log files. The file permissions |
| 174 |
# will always include the owner read and write bits, even if they are |
| 175 |
# not present in the specified mode. When creating I/O log directories, |
| 176 |
# search (execute) bits are added to match the read and write bits |
| 177 |
# specified by iolog_mode. |
| 178 |
iolog_mode = 0600 |
| 179 |
|
| 180 |
# If disabled, sudo_logsrvd will attempt to avoid logging plaintext |
| 181 |
# password in the terminal input using passprompt_regex. |
| 182 |
log_passwords = true |
| 183 |
|
| 184 |
# The maximum sequence number that will be substituted for the "%{seq}" |
| 185 |
# escape in the I/O log file. While the value substituted for "%{seq}" |
| 186 |
# is in base 36, maxseq itself should be expressed in decimal. Values |
| 187 |
# larger than 2176782336 (which corresponds to the base 36 sequence |
| 188 |
# number "ZZZZZZ") will be silently truncated to 2176782336. |
| 189 |
maxseq = 2176782336 |
| 190 |
|
| 191 |
# One or more POSIX extended regular expressions used to match |
| 192 |
# password prompts in the terminal output when log_passwords is |
| 193 |
# disabled. Multiple passprompt_regex settings may be specified. |
| 194 |
#passprompt_regex = [Pp]assword[: ]* |
| 195 |
passprompt_regex = [Pp]assword for [a-z0-9]+: * |
| 196 |
|
| 197 |
[eventlog] |
| 198 |
# Where to log accept, reject, exit, and alert events. |
| 199 |
# Accepted values are syslog, logfile, or none. |
| 200 |
# Defaults to syslog |
| 201 |
log_type = none |
| 202 |
|
| 203 |
# Whether to log an event when a command exits or is terminated by a signal. |
| 204 |
# Defaults to false |
| 205 |
log_exit = true |
| 206 |
|
| 207 |
# Event log format. |
| 208 |
# Supported log formats are "sudo" and "json" |
| 209 |
# Defaults to sudo |
| 210 |
log_format = json |
| 211 |
|
| 212 |
[syslog] |
| 213 |
# The maximum length of a syslog payload. |
| 214 |
# On many systems, syslog(3) has a relatively small log buffer. |
| 215 |
# IETF RFC 5424 states that syslog servers must support messages |
| 216 |
# of at least 480 bytes and should support messages up to 2048 bytes. |
| 217 |
# Messages larger than this value will be split into multiple messages. |
| 218 |
maxlen = 960 |
| 219 |
|
| 220 |
# The syslog facility to use for event log messages. |
| 221 |
# The following syslog facilities are supported: authpriv (if your OS |
| 222 |
# supports it), auth, daemon, user, local0, local1, local2, local3, |
| 223 |
# local4, local5, local6, and local7. |
| 224 |
#facility = authpriv |
| 225 |
facility = daemon |
| 226 |
|
| 227 |
# Syslog priority to use for event log accept messages, when the command |
| 228 |
# is allowed by the security policy. The following syslog priorities are |
| 229 |
# supported: alert, crit, debug, emerg, err, info, notice, warning, none. |
| 230 |
accept_priority = notice |
| 231 |
|
| 232 |
# Syslog priority to use for event log reject messages, when the command |
| 233 |
# is not allowed by the security policy. |
| 234 |
reject_priority = alert |
| 235 |
|
| 236 |
# Syslog priority to use for event log alert messages reported by the |
| 237 |
# client. |
| 238 |
alert_priority = alert |
| 239 |
|
| 240 |
# The syslog facility to use for server warning messages. |
| 241 |
# Defaults to daemon. |
| 242 |
server_facility = daemon |
| 243 |
|
| 244 |
[logfile] |
| 245 |
# The path to the file-based event log. |
| 246 |
# This path must be fully-qualified and start with a '/' character. |
| 247 |
path = /var/log/sudo.log |
| 248 |
|
| 249 |
# The format string used when formatting the date and time for |
| 250 |
# file-based event logs. Formatting is performed via strftime(3) so |
| 251 |
# any format string supported by that function is allowed. |
| 252 |
time_format = %h %e %T |