-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsddn.conf
133 lines (102 loc) · 5 KB
/
wsddn.conf
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
# Uncomment/modify the following options to configure WS-Discovery Host
#
# The syntax of this file is TOML (https://toml.io/en/).
#
# Any options specified on command line take precedence over options
# in this file
#
# After editing this file you must reload WS-Discovery Host
# if it is running via:
#
{RELOAD_INSTRUCTIONS}
###############################################################################
#
# Networking options
#
# Specify on which interfaces wsddn will be listening on. If no interfaces
# are specified, or the list is empty all suitable detected interfaces will be
# used. Loop-back interfaces are never used, even when explicitly specified.
# For interfaces with IPv6 addresses, only link-local addresses will be used
# for announcing the host on the network.
#interfaces = ["{SAMPLE_IFACE_NAME}"]
# Restrict communications to the given address family. Valid values
# are "IPv4" or "IPv6" case-insensitive.
#allowed-address-family = "IPv4"
# Set the hop limit for multicast packets. The default is 1 which should
# prevent packets from leaving the local network segment.
#hoplimit=1
###############################################################################
#
# Machine information
#
# WS-Discovery protocol requires your machine to have a unique identifier that
# is stable across reboots or changes in networks.
# By default, wsddn uses UUID version 5 with private namespace and the
# host name of the machine. This will remain stable as long as the hostname
# doesn't change. If desired, you can override this with a fixed UUID using
# this option.
#uuid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# Hostname to be reported to Windows machines. By default the local machine's
# hostname (with domain part, if any, removed) is used.
# If you set the value to ":NETBIOS:" then Netbios hostname will be used.
# The Netbios hostname is either detected from SMB configuration, if found, or
# produced by capitalizing normal machine hostname.
#hostname = "my-awesome-host"
# Report whether the host is a member of a given workgroup or domain.
# To specify a workgroup use "Workgroup/name" syntax.
# To specify a domain use "Domain/name"
# The "workgroup/" and "domain/" prefixes are not case sensitive.
# If not specified workgroup/domain membership is detected from SMB
# configuration. If no SMB configuration is found it is set to a workgroup
# named WORKGROUP.
#member-of = "Workgroup/WORKGROUP"
# Path to smb.conf file to extract the SMB configuration from. This option is
# not available on macOS. By default wsddn tries to locate this file on
# its own.
#smb-conf = "/path/to/smb.conf"
###############################################################################
#
# Behavior options
#
# Set verbosity of the log output. The default value is 4. Log levels range
# from 0 (disable logging) to 6 (detailed trace). Passing values bigger than 6
# is equivalent to 6
#log-level = 4
# Set the path of log file. If not specified wsddn outputs the log
# messages as follows
# - If invoked without any daemon flags: to standard output
# - If invoked with --systemd: to standard output, with systemd severity
# prefixes
# - If invoked with --unixd or --launchd: to /var/log/wsddn.log
#log-file = "/path/to/log-file.log"
# macOS only. Send log output to system log (visible via Console app or
# log command line tool)
# Setting it to true option is mutually exclusive with log-file
#log-os-log = false
# Set the path to PID file. If not specified no PID file is written
# Send SIGHUP signal to the process ID in the PID file to reload
# configuration.
#pid-file = "/path/to/pidfile.pid"
# Set the identity under which the process that performs network communications
# will run. The value can be either just username or username:groupname.
# If groupname is not specified, primary group of the username is used.
# If this option is not specified then the behavior is as follows:
# - If wsddn process is run under the root account it tries to use a special
# unprivileged account name (_wsddn:_wsddn on macOS, wsddn:wsddn otherwise)
# The user and group are created if they do not exist. Any failures in these
# steps stop the process.
# - Otherwise, wsddn uses the account it is run under.
# The net effect of these rules is that wsddn under no circumstances will
# perform network communications under root account.
#user = "username:groupname"
# Set the directory into which process that performs network communications
# should chroot into. This further limits any impact of potential network
# exploits into wsddn. If not specified the behavior is as follows
# - If wsddn process is run under the root account: use /var/empty on macOS
# and /var/run/wsddn on other platforms
# This directory will be created if it does not exist.
# - Otherwise: do not chroot
# Note: do not use external methods to chroot wsddn process (e.g. using
# launchd config plist). Non-networking parts of it need access to the
# normal filesystem to detect things like SMB configuration etc.
#chroot = "/path/to/an/empty/dir"