Debian Codegraph @

debian/nebula.yml.5

raw
1 .TH nebula.yml "5" "July 2021" "nebula 1.4.0"
2
3 .SH NAME
4 .B nebula.yml
5 - nebula configuration files
6
7 .SH DESCRIPTION
8
9 Configuration file for nebula(1) are written in YAML. Each section is described below:
10
11 .SS pki
12 The PKI section defines the location of credentials
13 .IP ca
14 Path to the CA certificate
15 .IP cert
16 Path to this node's certificate file
17 .IP key
18 Path to this node's key file
19
20 .SS static_host_map
21 The static host map defines a set of hosts with fixed IP addresses on the internet. Multiple addresses may be defined and Nebula will try each when establishing a tunnel.
22
23 .SS lighthouse
24 The lighthouse section allows the entablement and configuration of lighthouse behavior. In Nebula, lighthouses are nodes with ip fixed addresses which other nodes can use to located each other.
25
26 .IP am_lighthouse
27 Enables lighthouse behavior on this node. Should ONLY be true on nodes you have configured to be lighthouses on your network.
28
29 .IP interval
30 Number of seconds between updates from this node to a lighthouse. When a lighthouse receives an update, it sends information about its current IP address to each node.
31
32 .IP hosts
33 A list of lighthouse nodes this node should report to and query from. Should be empty on lighthouse nodes.
34
35 .IP serve_dns
36 Starts a DNS listener which responds to various queries (VAGUE) and be delegated for resolution.
37
38 .SS listen
39 Control the port and interface on which nebula listens.
40
41 .IP host
42 Set the ip to which nebula binds
43
44 .IP port
45 Set the port to which nebula binds
46
47 .SS punchy
48
49 .IP punch
50 Continue to punch inbound/outbound at a regular interval to avoid expiration of firewall NAT mapping
51
52 .IP respond
53 Configure the node to reach out and connect to you if your hole punching fails. This is extremely useful if one node is behind a difficult NAT, such as a symmetric NAT.
54
55 .IP delay
56 Delay a punch response for misbehaving NATs, default is 1 second, respond must be true to take effect
57
58 .SS cipher
59 Choose between the available ciphers for your network. Options are "chachapoly" or "aes." Must be identical across all nodes on a network.
60
61 .SS sshd
62 SSHD can expose information and administrative function via ssh
63
64 .IP enabled
65 If true, this enables SSHD administration
66
67 .IP listen
68 Host and port to listen on. (Port 22 is not allowed.)
69
70 .IP host_key
71 A file containing a list of authorized public keys
72
73 .IP authorized_users
74 A list of users each with an array of keys
75
76 .SS tun
77
78 .IP disabled
79 When tun is disabled, a lighthouse can be started without a local run interface (and therefore without root)
80
81 .IP dev
82 The name of the device
83
84 .IP drop_local_broadcast
85 Toggles forwarding of local broadcast packets, the address of which depends on the ip/mask encoded in the pki.cert
86
87 .IP drop_multicast
88 Drop the forwarding of multicast packets
89
90 .IP tx_queue
91 Sets the transmit queue length. (If you notice lots of transmit drops on the tun it may help to raise this number. Defaults to 500.
92
93 .IP mtu
94 Default MTU for every packet, safe setting is (and the default) 1300 for internet based traffic.
95
96 .IP unsafe_routes
97 Unsafe routes allows you to route traffic over nebula to non-nebula nodes. Unsafe routes should be avoided unless you have hosts/services that cannot run nebula.
98
99 .SS logging
100 Configure logging
101
102 .IP level
103 Configure the logging level. Must be one of panic, fatal, error, warning, info, or debug.
104
105 .IP format
106 Either json or text
107
108 .IP disable_timestamp
109 Disables timestamp logging. Useful when redirected into to a logging system which appends a time stamp. Defaults to false.
110
111 .SS stats
112 Enable a statistics exporter.
113
114 .IP type
115 Type of statistics exporter. Either "prometheus" or "graphite"
116
117 .IP interval
118 Interval to provide updates for either graphite or prometheus.
119
120 .IP prefix
121 Prefix for graphite
122
123 .IP protocol
124 Protocol for graphite
125
126 .IP host
127 Listener for graphite
128
129 .IP listen
130 IP and port to bind the prometheus listener
131
132 .IP path
133 Path on which metrics are supplied in prometheus
134
135 .IP namespace
136 Prometheus namespace
137
138 .IP subsystem
139 Prometheus subsystem
140
141 .IP message_metrics
142 Enables counter metrics for meta packets. (e.g. message.tx.handshake)
143
144 .IP lighthouse_metrics
145 Enables detailed counter metrics for lighthouse packets (e.g. lighthouse.rx.HostQuery)
146
147 .SS handshakes
148 Handshakes are sent to all known addresses at each interval with a linear back off.
149
150 .IP try_interval
151 Nebula waits try_interval after the first attempt, 2 * try_interval on the second attempt, until the handshake is older than timeout. This allows you to control this interval.
152
153 .IP retries
154 Number of retries before timing out
155
156 .IP trigger_buffer
157 Size of the buffer channel for quickly sending handshakes after receiving the response for lighthouse queries
158
159 .SS firewall
160 The firewall is default deny. There is no way to write a deny rule. Rules are comprised of a protocol, port, and one or more of host, group, or CIDR. Logical evaluation is roughly: port AND proto AND (ca_sha OR ca_name) AND (host OR group OR groups OR CIDR)
161
162 .IP outbound
163 Section containing rules which apply to traffic send from this node. See the rules section.
164
165 .IP inbound
166 Section containing rules which apply to traffic send to this node from other hosts. See the rules section.
167
168 .SS rules
169 Rules are written in the outbound and inbound sections described above.
170
171 .IP proto
172 Protocol. One of "any", "tcp", "udp", or "icmp"
173
174 .IP host
175 "any" or literal hostname
176
177 .IP group
178 "any" or literal group name
179
180 .IP groups
181 Same as group but accepts a list of values. Certificate has to contain all groups to pass.
182
183 .IP cidr
184 a CIDR, "0.0.0.0/0" is any
185
186 .IP ca_name
187 An issuing CA name
188 .IP ca_sum
189 An issuing CA shasum
190
191 .SH EXAMPLES
192
193 .P
194 There is a example configuration file in the FILES section below.
195
196 .P
197 Configuration files placed in /etc/nebula can take advantage of the built-in systemd templates. For example, if you have a nebula configuration /etc/nebula/office.yml
198
199 [#] systemctl enable [email protected]
200
201 .SH FILES
202
203 .IP /etc/nebula
204 Contains configuration files for nebula(1). This provides a designated place to store configuration data and credentials. Configuration files placed in this directory can take advantage of the provided systemd template unit.
205
206 .IP /usr/share/doc/nebula/examples/config.yml
207 See this example configuration file.
208
209 .SH SEE ALSO
210 nebula(1), nebula-cert(1)