Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8 ## [Unreleased]
9
10 ## [1.11.0] - 2026-07-23
11
12 See the [v1.11.0](https://github.com/slackhq/nebula/milestone/25?closed=1) milestone for a complete list of changes.
13
14 ### Breaking
15
16 - Logging has switched from logrus to Go's structured `slog`. Log output changes: levels are upper case
17 (`level=INFO`), trace prints as `level=DEBUG-4`, timestamps are always RFC3339Nano and `logging.timestamp_format`
18 is ignored, and some messages were reworded. Review any log parsing before upgrading. This is also an API break
19 for embedders, as constructors now take a `*slog.Logger`. (#1672, #1734, #1621)
20 - `firewall.inbound_action` and `firewall.outbound_action` (used to set reject vs. drop policy) were each being
21 applied to the opposite direction, that is now corrected. This only affects how blocked packets are answered, not
22 which packets the firewall allows or denies. If you set either of these you are getting the behavior of the other
23 one today and likely want to swap them before upgrading. (#1798)
24 - On Windows, Nebula now installs WFP PERMIT filters for the nebula adapter and the listener port by default. WFP
25 sits below Windows Defender Firewall, so any WDF inbound rules you rely on for either will no longer apply. Set
26 `tun.windows_bypass_wdf` and `listen.windows_bypass_wdf` to false to leave WDF in charge. (#1710)
27 - On Windows, the nebula device is now set to the `private` network category instead of whatever Windows decided,
28 which is usually `Public`. This makes the host firewall less restrictive on the overlay. Set
29 `tun.network_category` to `unset` to keep the old behavior. (#1710)
30 - Reject packets for non-TCP now use ICMP code 13, communication administratively prohibited, instead of code 3,
31 port unreachable. Anything keying off the old code needs updating. (#1766, #1768)
32 - The SSH debug server's profiling commands are now confined to `sshd.sandbox_dir`, which defaults to
33 `$TMP/nebula-debug`. Relative paths resolve inside it and absolute paths outside it are rejected, so anything
34 scripting `start-cpu-profile`, `save-heap-profile`, or `save-mutex-profile` with a path elsewhere needs the
35 directory set. The directory is not created for you. (#1622)
36
37 ### Added
38
39 - Sign the Windows release binaries. (#1718)
40 - Generate IPv6 reject packets, matching the existing IPv4 behavior. (#1766, #1767, #1768)
41 - Accept `-` in `nebula-cert` to read from stdin or write to stdout. (#1714)
42 - Search for both `config.yml` and `config.yaml` in service and command line modes. (#1717)
43 - Add version labels to the Docker/OCI images. (#1772)
44 - Rebind the listener and re-query lighthouses on macOS when the underlay network changes, so devices moving
45 between wifi and wired or between networks recover without waiting for dead tunnel detection. Controlled by
46 `listen.rebind_on_network_change` (default `true`, not reloadable). (#1816)
47
48 ### Changed
49
50 - Reload the firewall when the unsafe networks in the certificate change. (#1719)
51 - Reconfigure, start, and stop the stats listener on a config reload instead of requiring a restart. (#1670)
52 - Update a static host's addresses when they change on reload. (#1713)
53 - Don't require a port on ICMP firewall rules. (#1609)
54 - Connection track ICMP traffic. (#1602)
55 - Return `NODATA` instead of `NXDOMAIN` from the DNS server for a name that exists but has no record of the
56 requested type, so clients that query `AAAA` first (busybox/Alpine) fall through to `A`. (#1668)
57 - Record the local host's details in the DNS server. (#1716)
58 - Install Windows unsafe routes as link routes. (#1709)
59 - Reduce relay handshake log spam, and only log a handshake send error at error level when the remote list
60 changes. (#1733, #1765, #1810)
61 - Start, stop, and reload subsystems (DNS, stats, conntrack, ssh, punchy) cleanly without leaking goroutines. (#1640, #1654, #1661, #1667, #1669, #1708, #1806, #1815)
62 - `Control` is now safe to stop and wait on from any lifecycle state, and a new `Control.Wait` blocks until nebula
63 has fully stopped and returns the first fatal reader error. Failed starts release the udp sockets and tun fd
64 instead of leaking them. (#1794)
65 - Trigger an immediate lighthouse update when reconnecting to or adding a lighthouse instead of waiting for the next update tick. (#1645)
66 - Bring the Darwin and OpenBSD tun implementations in line with the other BSDs. (#1703)
67 - Update to build against go v1.26. (#1818)
68 - Various dependency updates. (#1586, #1587, #1604, #1617, #1618, #1627, #1628, #1629, #1652, #1664, #1665, #1697, #1721, #1732, #1742, #1743, #1750, #1763, #1771, #1782, #1800, #1807)
69
70 ### Fixed
71
72 - Fix a data race on a host's remote address that could send packets to the wrong address during a roam. (#1773)
73 - Fix tunnels that could permanently escape connection manager monitoring. (#1752)
74 - Fix a crash when reloading the SSH server's trusted keys. (#1787)
75 - Fix hostmap corruption when a host has multiple overlay addresses. Each address now gets its own list instead of
76 a single shared chain, which also fixes two latent bugs on the add and makePrimary paths. (#1788, #1790)
77 - Apply `remote_allow_list` IPv4 rules to 4-in-6 mapped addresses. (#1786)
78 - Don't panic in the DNS server on a short or empty query name. (#1635)
79 - Advance the replay window on relayed packets so a relay drops replayed frames instead of re-forwarding them. (#1751)
80 - Fix a race in relay state handling. (#1753)
81 - Lock replay window updates so concurrent readers can't corrupt it. (#1802)
82 - Reject malformed handshakes more reliably, including invalid ed25519 key lengths. (#1601, #1756)
83 - Properly handle `closetunnel` packets. (#1638)
84 - Fix an IPv6 extension-header length overflow that could make the firewall parse the wrong protocol and ports. (#1789)
85 - Fix relay re-establishment when a handshake arrives over a relay entry that a one-sided teardown left
86 `Disestablished`, which silently dropped every send until dead tunnel detection forced a re-handshake. (#1805)
87 - Don't build new relay state on a tunnel that was just discarded. (#1796)
88 - Don't delete the wrong pending hostinfo in the handshake manager. (#1811)
89 - Don't call the packet reader after a UDP error on Darwin. (#1755)
90 - Open the FreeBSD tun device non blocking. (#1666)
91
92 ## [1.10.3] - 2026-02-06
93
94 ### Security
95
96 - Fix an issue where blocklist bypass is possible when using curve P256 since the signature can have 2 valid representations.
97 Both fingerprint representations will be tested against the blocklist.
98 Any newly issued P256 based certificates will have their signature clamped to the low-s form.
99 Nebula will assert the low-s signature form when validating certificates in a future version. [GHSA-69x3-g4r3-p962](https://github.com/slackhq/nebula/security/advisories/GHSA-69x3-g4r3-p962)
100
101 ### Changed
102
103 - Improve error reporting if nebula fails to start due to a tun device naming issue. (#1588)
104
105 ## [1.10.2] - 2026-01-21
106
107 ### Fixed
108
109 - Fix panic when using `use_system_route_table` that was introduced in v1.10.1. (#1580)
110
111 ### Changed
112
113 - Fix some typos in comments. (#1582)
114 - Dependency updates. (#1581)
115
116 ## [1.10.1] - 2026-01-16
117
118 See the [v1.10.1](https://github.com/slackhq/nebula/milestone/26?closed=1) milestone for a complete list of changes.
119
120 ### Fixed
121
122 - Fix a bug where an unsafe route derived from the system route table could be lost on a config reload. (#1573)
123 - Fix the PEM banner for ECDSA P256 public keys. (#1552)
124 - Fix a regression on Windows from 1.9.x where nebula could fall back to a less performant UDP listener if
125 non-critical ioctls failed. (#1568)
126 - Fix a bug in handshake processing when a peer sends an unexpected public key. (#1566)
127
128 ### Added
129
130 - Add a config option to control accepting `recv_error` packets which defaults to `always`. (#1569)
131
132 ### Changed
133
134 - Various dependency updates. (#1541, #1549, #1550, #1557, #1558, #1560, #1561, #1570, #1571)
135
136 ## [1.10.0] - 2025-12-04
137
138 See the [v1.10.0](https://github.com/slackhq/nebula/milestone/16?closed=1) milestone for a complete list of changes.
139
140 ### Added
141
142 - Support for ipv6 and multiple ipv4/6 addresses in the overlay.
143 A new v2 ASN.1 based certificate format.
144 Certificates now have a unified interface for external implementations.
145 (#1212, #1216, #1345, #1359, #1381, #1419, #1464, #1466, #1451, #1476, #1467, #1481, #1399, #1488, #1492, #1495, #1468, #1521, #1535, #1538)
146 - Add the ability to mark packets on linux to better target nebula packets in iptables/nftables. (#1331)
147 - Add ECMP support for `unsafe_routes`. (#1332)
148 - PKCS11 support for P256 keys when built with `pkcs11` tag (#1153, #1482)
149
150 ### Changed
151
152 - **NOTE**: `default_local_cidr_any` now defaults to false, meaning that any firewall rule
153 intended to target an `unsafe_routes` entry must explicitly declare it via the
154 `local_cidr` field. This is almost always the intended behavior. This flag is
155 deprecated and will be removed in a future release. (#1373)
156 - Improve logging when a relay is in use on an inbound packet. (#1533)
157 - Avoid fatal errors if `rountines` is > 1 on systems that don't support more than 1 routine. (#1531)
158 - Log a warning if a firewall rule contains an `any` that negates a more restrictive filter. (#1513)
159 - Accept encrypted CA passphrase from an environment variable. (#1421)
160 - Allow handshaking with any trusted remote. (#1509)
161 - Log only the count of blocklisted certificate fingerprints instead of the entire list. (#1525)
162 - Don't fatal when the ssh server is unable to be configured successfully. (#1520)
163 - Update to build against go v1.25. (#1483)
164 - Allow projects using `nebula` as a library with userspace networking to configure the `logger` and build version. (#1239)
165 - Upgrade to `yaml.v3`. (#1148, #1371, #1438, #1478)
166
167 ### Fixed
168
169 - Fix a potential bug with udp ipv4 only on darwin. (#1532)
170 - Improve lost packet statistics. (#1441, #1537)
171 - Honor `remote_allow_list` in hole punch response. (#1186)
172 - Fix a panic when `tun.use_system_route_table` is `true` and a route lacks a destination. (#1437)
173 - Fix an issue when `tun.use_system_route_table: true` could result in heavy CPU utilization when many thousands of routes
174 are present. (#1326)
175 - Fix tests for 32 bit machines. (#1394)
176 - Fix a possible 32bit integer underflow in config handling. (#1353)
177 - Fix moving a udp address from one vpn address to another in the `static_host_map`
178 which could cause rapid re-handshaking with an incorrect remote. (#1259)
179 - Improve smoke tests in environments where the docker network is not the default. (#1347)
180
181 ## [1.9.7] - 2025-10-10
182
183 ### Security
184
185 - Fix an issue where Nebula could incorrectly accept and process a packet from an erroneous source IP when the sender's
186 certificate is configured with unsafe_routes (cert v1/v2) or multiple IPs (cert v2). (#1494)
187
188 ### Changed
189
190 - Disable sending `recv_error` messages when a packet is received outside the allowable counter window. (#1459)
191 - Improve error messages and remove some unnecessary fatal conditions in the Windows and generic udp listener. (#1453)
192
193 ## [1.9.6] - 2025-7-15
194
195 ### Added
196
197 - Support dropping inactive tunnels. This is disabled by default in this release but can be enabled with `tunnels.drop_inactive`. See example config for more details. (#1413)
198
199 ### Fixed
200
201 - Fix Darwin freeze due to presence of some Network Extensions (#1426)
202 - Ensure the same relay tunnel is always used when multiple relay tunnels are present (#1422)
203 - Fix Windows freeze due to ICMP error handling (#1412)
204 - Fix relay migration panic (#1403)
205
206 ## [1.9.5] - 2024-12-05
207
208 ### Added
209
210 - Gracefully ignore v2 certificates. (#1282)
211
212 ### Fixed
213
214 - Fix relays that refuse to re-establish after one of the remote tunnel pairs breaks. (#1277)
215
216 ## [1.9.4] - 2024-09-09
217
218 ### Added
219
220 - Support UDP dialing with gVisor. (#1181)
221
222 ### Changed
223
224 - Make some Nebula state programmatically available via control object. (#1188)
225 - Switch internal representation of IPs to netip, to prepare for IPv6 support
226 in the overlay. (#1173)
227 - Minor build and cleanup changes. (#1171, #1164, #1162)
228 - Various dependency updates. (#1195, #1190, #1174, #1168, #1167, #1161, #1147, #1146)
229
230 ### Fixed
231
232 - Fix a bug on big endian hosts, like mips. (#1194)
233 - Fix a rare panic if a local index collision happens. (#1191)
234 - Fix integer wraparound in the calculation of handshake timeouts on 32-bit targets. (#1185)
235
236 ## [1.9.3] - 2024-06-06
237
238 ### Fixed
239
240 - Initialize messageCounter to 2 instead of verifying later. (#1156)
241
242 ## [1.9.2] - 2024-06-03
243
244 ### Fixed
245
246 - Ensure messageCounter is set before handshake is complete. (#1154)
247
248 ## [1.9.1] - 2024-05-29
249
250 ### Fixed
251
252 - Fixed a potential deadlock in GetOrHandshake. (#1151)
253
254 ## [1.9.0] - 2024-05-07
255
256 ### Deprecated
257
258 - This release adds a new setting `default_local_cidr_any` that defaults to
259 true to match previous behavior, but will default to false in the next
260 release (1.10). When set to false, `local_cidr` is matched correctly for
261 firewall rules on hosts acting as unsafe routers, and should be set for any
262 firewall rules you want to allow unsafe route hosts to access. See the issue
263 and example config for more details. (#1071, #1099)
264
265 ### Added
266
267 - Nebula now has an official Docker image `nebulaoss/nebula` that is
268 distroless and contains just the `nebula` and `nebula-cert` binaries. You
269 can find it here: https://hub.docker.com/r/nebulaoss/nebula (#1037)
270
271 - Experimental binaries for `loong64` are now provided. (#1003)
272
273 - Added example service script for OpenRC. (#711)
274
275 - The SSH daemon now supports inlined host keys. (#1054)
276
277 - The SSH daemon now supports certificates with `sshd.trusted_cas`. (#1098)
278
279 ### Changed
280
281 - Config setting `tun.unsafe_routes` is now reloadable. (#1083)
282
283 - Small documentation and internal improvements. (#1065, #1067, #1069, #1108,
284 #1109, #1111, #1135)
285
286 - Various dependency updates. (#1139, #1138, #1134, #1133, #1126, #1123, #1110,
287 #1094, #1092, #1087, #1086, #1085, #1072, #1063, #1059, #1055, #1053, #1047,
288 #1046, #1034, #1022)
289
290 ### Removed
291
292 - Support for the deprecated `local_range` option has been removed. Please
293 change to `preferred_ranges` (which is also now reloadable). (#1043)
294
295 - We are now building with go1.22, which means that for Windows you need at
296 least Windows 10 or Windows Server 2016. This is because support for earlier
297 versions was removed in Go 1.21. See https://go.dev/doc/go1.21#windows (#981)
298
299 - Removed vagrant example, as it was unmaintained. (#1129)
300
301 - Removed Fedora and Arch nebula.service files, as they are maintained in the
302 upstream repos. (#1128, #1132)
303
304 - Remove the TCP round trip tracking metrics, as they never had correct data
305 and were an experiment to begin with. (#1114)
306
307 ### Fixed
308
309 - Fixed a potential deadlock introduced in 1.8.1. (#1112)
310
311 - Fixed support for Linux when IPv6 has been disabled at the OS level. (#787)
312
313 - DNS will return NXDOMAIN now when there are no results. (#845)
314
315 - Allow `::` in `lighthouse.dns.host`. (#1115)
316
317 - Capitalization of `NotAfter` fixed in DNS TXT response. (#1127)
318
319 - Don't log invalid certificates. It is untrusted data and can cause a large
320 volume of logs. (#1116)
321
322 ## [1.8.2] - 2024-01-08
323
324 ### Fixed
325
326 - Fix multiple routines when listen.port is zero. This was a regression
327 introduced in v1.6.0. (#1057)
328
329 ### Changed
330
331 - Small dependency update for Noise. (#1038)
332
333 ## [1.8.1] - 2023-12-19
334
335 ### Security
336
337 - Update `golang.org/x/crypto`, which includes a fix for CVE-2023-48795. (#1048)
338
339 ### Fixed
340
341 - Fix a deadlock introduced in v1.8.0 that could occur during handshakes. (#1044)
342
343 - Fix mobile builds. (#1035)
344
345 ## [1.8.0] - 2023-12-06
346
347 ### Deprecated
348
349 - The next minor release of Nebula, 1.9.0, will require at least Windows 10 or
350 Windows Server 2016. This is because support for earlier versions was removed
351 in Go 1.21. See https://go.dev/doc/go1.21#windows
352
353 ### Added
354
355 - Linux: Notify systemd of service readiness. This should resolve timing issues
356 with services that depend on Nebula being active. For an example of how to
357 enable this, see: `examples/service_scripts/nebula.service`. (#929)
358
359 - Windows: Use Registered IO (RIO) when possible. Testing on a Windows 11
360 machine shows ~50x improvement in throughput. (#905)
361
362 - NetBSD, OpenBSD: Added rudimentary support. (#916, #812)
363
364 - FreeBSD: Add support for naming tun devices. (#903)
365
366 ### Changed
367
368 - `pki.disconnect_invalid` will now default to true. This means that once a
369 certificate expires, the tunnel will be disconnected. If you use SIGHUP to
370 reload certificates without restarting Nebula, you should ensure all of your
371 clients are on 1.7.0 or newer before you enable this feature. (#859)
372
373 - Limit how often a busy tunnel can requery the lighthouse. The new config
374 option `timers.requery_wait_duration` defaults to `60s`. (#940)
375
376 - The internal structures for hostmaps were refactored to reduce memory usage
377 and the potential for subtle bugs. (#843, #938, #953, #954, #955)
378
379 - Lots of dependency updates.
380
381 ### Fixed
382
383 - Windows: Retry wintun device creation if it fails the first time. (#985)
384
385 - Fix issues with firewall reject packets that could cause panics. (#957)
386
387 - Fix relay migration during re-handshakes. (#964)
388
389 - Various other refactors and fixes. (#935, #952, #972, #961, #996, #1002,
390 #987, #1004, #1030, #1032, ...)
391
392 ## [1.7.2] - 2023-06-01
393
394 ### Fixed
395
396 - Fix a freeze during config reload if the `static_host_map` config was changed. (#886)
397
398 ## [1.7.1] - 2023-05-18
399
400 ### Fixed
401
402 - Fix IPv4 addresses returned by `static_host_map` DNS lookup queries being
403 treated as IPv6 addresses. (#877)
404
405 ## [1.7.0] - 2023-05-17
406
407 ### Added
408
409 - `nebula-cert ca` now supports encrypting the CA's private key with a
410 passphrase. Pass `-encrypt` in order to be prompted for a passphrase.
411 Encryption is performed using AES-256-GCM and Argon2id for KDF. KDF
412 parameters default to RFC recommendations, but can be overridden via CLI
413 flags `-argon-memory`, `-argon-parallelism`, and `-argon-iterations`. (#386)
414
415 - Support for curve P256 and BoringCrypto has been added. See README section
416 "Curve P256 and BoringCrypto" for more details. (#865, #861, #769, #856, #803)
417
418 - New firewall rule `local_cidr`. This could be used to filter destinations
419 when using `unsafe_routes`. (#507)
420
421 - Add `unsafe_route` option `install`. This controls whether the route is
422 installed in the systems routing table. (#831)
423
424 - Add `tun.use_system_route_table` option. Set to true to manage unsafe routes
425 directly on the system route table with gateway routes instead of in Nebula
426 configuration files. This is only supported on Linux. (#839)
427
428 - The metric `certificate.ttl_seconds` is now exposed via stats. (#782)
429
430 - Add `punchy.respond_delay` option. This allows you to change the delay
431 before attempting punchy.respond. Default is 5 seconds. (#721)
432
433 - Added SSH commands to allow the capture of a mutex profile. (#737)
434
435 - You can now set `lighthouse.calculated_remotes` to make it possible to do
436 handshakes without a lighthouse in certain configurations. (#759)
437
438 - The firewall can be configured to send REJECT replies instead of the default
439 DROP behavior. (#738)
440
441 - For macOS, an example launchd configuration file is now provided. (#762)
442
443 ### Changed
444
445 - Lighthouses and other `static_host_map` entries that use DNS names will now
446 be automatically refreshed to detect when the IP address changes. (#796)
447
448 - Lighthouses send ACK replies back to clients so that they do not fall into
449 connection testing as often by clients. (#851, #408)
450
451 - Allow the `listen.host` option to contain a hostname. (#825)
452
453 - When Nebula switches to a new certificate (such as via SIGHUP), we now
454 rehandshake with all existing tunnels. This allows firewall groups to be
455 updated and `pki.disconnect_invalid` to know about the new certificate
456 expiration time. (#838, #857, #842, #840, #835, #828, #820, #807)
457
458 ### Fixed
459
460 - Always disconnect blocklisted hosts, even if `pki.disconnect_invalid` is
461 not set. (#858)
462
463 - Dependencies updated and go1.20 required. (#780, #824, #855, #854)
464
465 - Fix possible race condition with relays. (#827)
466
467 - FreeBSD: Fix connection to the localhost's own Nebula IP. (#808)
468
469 - Normalize and document some common log field values. (#837, #811)
470
471 - Fix crash if you set unlucky values for the firewall timeout configuration
472 options. (#802)
473
474 - Make DNS queries case insensitive. (#793)
475
476 - Update example systemd configurations to want `nss-lookup`. (#791)
477
478 - Errors with SSH commands now go to the SSH tunnel instead of stderr. (#757)
479
480 - Fix a hang when shutting down Android. (#772)
481
482 ## [1.6.1] - 2022-09-26
483
484 ### Fixed
485
486 - Refuse to process underlay packets received from overlay IPs. This prevents
487 confusion on hosts that have unsafe routes configured. (#741)
488
489 - The ssh `reload` command did not work on Windows, since it relied on sending
490 a SIGHUP signal internally. This has been fixed. (#725)
491
492 - A regression in v1.5.2 that broke unsafe routes on Mobile clients has been
493 fixed. (#729)
494
495 ## [1.6.0] - 2022-06-30
496
497 ### Added
498
499 - Experimental: nebula clients can be configured to act as relays for other nebula clients.
500 Primarily useful when stubborn NATs make a direct tunnel impossible. (#678)
501
502 - Configuration option to report manually specified `ip:port`s to lighthouses. (#650)
503
504 - Windows arm64 build. (#638)
505
506 - `punchy` and most `lighthouse` config options now support hot reloading. (#649)
507
508 ### Changed
509
510 - Build against go 1.18. (#656)
511
512 - Promoted `routines` config from experimental to supported feature. (#702)
513
514 - Dependencies updated. (#664)
515
516 ### Fixed
517
518 - Packets destined for the same host that sent it will be returned on MacOS.
519 This matches the default behavior of other operating systems. (#501)
520
521 - `unsafe_route` configuration will no longer crash on Windows. (#648)
522
523 - A few panics that were introduced in 1.5.x. (#657, #658, #675)
524
525 ### Security
526
527 - You can set `listen.send_recv_error` to control the conditions in which
528 `recv_error` messages are sent. Sending these messages can expose the fact
529 that Nebula is running on a host, but it speeds up re-handshaking. (#670)
530
531 ### Removed
532
533 - `x509` config stanza support has been removed. (#685)
534
535 ## [1.5.2] - 2021-12-14
536
537 ### Added
538
539 - Warn when a non lighthouse node does not have lighthouse hosts configured. (#587)
540
541 ### Changed
542
543 - No longer fatals if expired CA certificates are present in `pki.ca`, as long as 1 valid CA is present. (#599)
544
545 - `nebula-cert` will now enforce ipv4 addresses. (#604)
546
547 - Warn on macOS if an unsafe route cannot be created due to a collision with an
548 existing route. (#610)
549
550 - Warn if you set a route MTU on platforms where we don't support it. (#611)
551
552 ### Fixed
553
554 - Rare race condition when tearing down a tunnel due to `recv_error` and sending packets on another thread. (#590)
555
556 - Bug in `routes` and `unsafe_routes` handling that was introduced in 1.5.0. (#595)
557
558 - `-test` mode no longer results in a crash. (#602)
559
560 ### Removed
561
562 - `x509.ca` config alias for `pki.ca`. (#604)
563
564 ### Security
565
566 - Upgraded `golang.org/x/crypto` to address an issue which allowed unauthenticated clients to cause a panic in SSH
567 servers. (#603)
568
569 ## 1.5.1 - 2021-12-13
570
571 (This release was skipped due to discovering #610 and #611 after the tag was
572 created.)
573
574 ## [1.5.0] - 2021-11-11
575
576 ### Added
577
578 - SSH `print-cert` has a new `-raw` flag to get the PEM representation of a certificate. (#483)
579
580 - New build architecture: Linux `riscv64`. (#542)
581
582 - New experimental config option `remote_allow_ranges`. (#540)
583
584 - New config option `pki.disconnect_invalid` that will tear down tunnels when they become invalid (through expiry or
585 removal of root trust). Default is `false`. Note, this will not currently recognize if a remote has changed
586 certificates since the last handshake. (#370)
587
588 - New config option `unsafe_routes.<route>.metric` will set a metric for a specific unsafe route. It's useful if you have
589 more than one identical route and want to prefer one against the other. (#353)
590
591 ### Changed
592
593 - Build against go 1.17. (#553)
594
595 - Build with `CGO_ENABLED=0` set, to create more portable binaries. This could
596 have an effect on DNS resolution if you rely on anything non-standard. (#421)
597
598 - Windows now uses the [wintun](https://www.wintun.net/) driver which does not require installation. This driver
599 is a large improvement over the TAP driver that was used in previous versions. If you had a previous version
600 of `nebula` running, you will want to disable the tap driver in Control Panel, or uninstall the `tap0901` driver
601 before running this version. (#289)
602
603 - Darwin binaries are now universal (works on both amd64 and arm64), signed, and shipped in a notarized zip file.
604 `nebula-darwin.zip` will be the only darwin release artifact. (#571)
605
606 - Darwin uses syscalls and AF_ROUTE to configure the routing table, instead of
607 using `/sbin/route`. Setting `tun.dev` is now allowed on Darwin as well, it
608 must be in the format `utun[0-9]+` or it will be ignored. (#163)
609
610 ### Deprecated
611
612 - The `preferred_ranges` option has been supported as a replacement for
613 `local_range` since v1.0.0. It has now been documented and `local_range`
614 has been officially deprecated. (#541)
615
616 ### Fixed
617
618 - Valid recv_error packets were incorrectly marked as "spoofing" and ignored. (#482)
619
620 - SSH server handles single `exec` requests correctly. (#483)
621
622 - Signing a certificate with `nebula-cert sign` now verifies that the supplied
623 ca-key matches the ca-crt. (#503)
624
625 - If `preferred_ranges` (or the deprecated `local_range`) is configured, we
626 will immediately switch to a preferred remote address after the reception of
627 a handshake packet (instead of waiting until 1,000 packets have been sent).
628 (#532)
629
630 - A race condition when `punchy.respond` is enabled and ensures the correct
631 vpn ip is sent a punch back response in highly queried node. (#566)
632
633 - Fix a rare crash during handshake due to a race condition. (#535)
634
635 ## [1.4.0] - 2021-05-11
636
637 ### Added
638
639 - Ability to output qr code images in `print`, `ca`, and `sign` modes for `nebula-cert`.
640 This is useful when configuring mobile clients. (#297)
641
642 - Experimental: Nebula can now do work on more than 2 cpu cores in send and receive paths via
643 the new `routines` config option. (#382, #391, #395)
644
645 - ICMP ping requests can be responded to when the `tun.disabled` is `true`.
646 This is useful so that you can "ping" a lighthouse running in this mode. (#342)
647
648 - Run smoke tests via `make smoke-docker`. (#287)
649
650 - More reported stats, udp memory use on linux, build version (when using Prometheus), firewall,
651 handshake, and cached packet stats. (#390, #405, #450, #453)
652
653 - IPv6 support for the underlay network. (#369)
654
655 - End to end testing, run with `make e2e`. (#425, #427, #428)
656
657 ### Changed
658
659 - Darwin will now log stdout/stderr to a file when using `-service` mode. (#303)
660
661 - Example systemd unit file now better arranged startup order when using `sshd`
662 and other fixes. (#317, #412, #438)
663
664 - Reduced memory utilization/garbage collection. (#320, #323, #340)
665
666 - Reduced CPU utilization. (#329)
667
668 - Build against go 1.16. (#381)
669
670 - Refactored handshakes to improve performance and correctness. (#401, #402, #404, #416, #451)
671
672 - Improved roaming support for mobile clients. (#394, #457)
673
674 - Lighthouse performance and correctness improvements. (#406, #418, #429, #433, #437, #442, #449)
675
676 - Better ordered startup to enable `sshd`, `stats`, and `dns` subsystems to listen on
677 the nebula interface. (#375)
678
679 ### Fixed
680
681 - No longer report handshake packets as `lost` in stats. (#331)
682
683 - Error handling in the `cert` package. (#339, #373)
684
685 - Orphaned pending hostmap entries are cleaned up. (#344)
686
687 - Most known data races are now resolved. (#396, #400, #424)
688
689 - Refuse to run a lighthouse on an ephemeral port. (#399)
690
691 - Removed the global references. (#423, #426, #446)
692
693 - Reloading via ssh command avoids a panic. (#447)
694
695 - Shutdown is now performed in a cleaner way. (#448)
696
697 - Logs will now find their way to Windows event viewer when running under `-service` mode
698 in Windows. (#443)
699
700 ## [1.3.0] - 2020-09-22
701
702 ### Added
703
704 - You can emit statistics about non-message packets by setting the option
705 `stats.message_metrics`. You can similarly emit detailed statistics about
706 lighthouse packets by setting the option `stats.lighthouse_metrics`. See
707 the example config for more details. (#230)
708
709 - We now support freebsd/amd64. This is experimental, please give us feedback.
710 (#103)
711
712 - We now release a binary for `linux/mips-softfloat` which has also been
713 stripped to reduce filesize and hopefully have a better chance on running on
714 small mips devices. (#231)
715
716 - You can set `tun.disabled` to true to run a standalone lighthouse without a
717 tun device (and thus, without root). (#269)
718
719 - You can set `logging.disable_timestamp` to remove timestamps from log lines,
720 which is useful when output is redirected to a logging system that already
721 adds timestamps. (#288)
722
723 ### Changed
724
725 - Handshakes should now trigger faster, as we try to be proactive with sending
726 them instead of waiting for the next timer tick in most cases. (#246, #265)
727
728 - Previously, we would drop the conntrack table whenever firewall rules were
729 changed during a SIGHUP. Now, we will maintain the table and just validate
730 that an entry still matches with the new rule set. (#233)
731
732 - Debug logs for firewall drops now include the reason. (#220, #239)
733
734 - Logs for handshakes now include the fingerprint of the remote host. (#262)
735
736 - Config item `pki.blacklist` is now `pki.blocklist`. (#272)
737
738 - Better support for older Linux kernels. We now only set `SO_REUSEPORT` if
739 `tun.routines` is greater than 1 (default is 1). We also only use the
740 `recvmmsg` syscall if `listen.batch` is greater than 1 (default is 64).
741 (#275)
742
743 - It is possible to run Nebula as a library inside of another process now.
744 Note that this is still experimental and the internal APIs around this might
745 change in minor version releases. (#279)
746
747 ### Deprecated
748
749 - `pki.blacklist` is deprecated in favor of `pki.blocklist` with the same
750 functionality. Existing configs will continue to load for this release to
751 allow for migrations. (#272)
752
753 ### Fixed
754
755 - `advmss` is now set correctly for each route table entry when `tun.routes`
756 is configured to have some routes with higher MTU. (#245)
757
758 - Packets that arrive on the tun device with an unroutable destination IP are
759 now dropped correctly, instead of wasting time making queries to the
760 lighthouses for IP `0.0.0.0` (#267)
761
762 ## [1.2.0] - 2020-04-08
763
764 ### Added
765
766 - Add `logging.timestamp_format` config option. The primary purpose of this
767 change is to allow logging timestamps with millisecond precision. (#187)
768
769 - Support `unsafe_routes` on Windows. (#184)
770
771 - Add `lighthouse.remote_allow_list` to filter which subnets we will use to
772 handshake with other hosts. See the example config for more details. (#217)
773
774 - Add `lighthouse.local_allow_list` to filter which local IP addresses and/or
775 interfaces we advertise to the lighthouses. See the example config for more
776 details. (#217)
777
778 - Wireshark dissector plugin. Add this file in `dist/wireshark` to your
779 Wireshark plugins folder to see Nebula packet headers decoded. (#216)
780
781 - systemd unit for Arch, so it can be built entirely from this repo. (#216)
782
783 ### Changed
784
785 - Added a delay to punching via lighthouse signal to deal with race conditions
786 in some linux conntrack implementations. (#210)
787
788 See deprecated, this also adds a new `punchy.delay` option that defaults to `1s`.
789
790 - Validate all `lighthouse.hosts` and `static_host_map` VPN IPs are in the
791 subnet defined in our cert. Exit with a fatal error if they are not in our
792 subnet, as this is an invalid configuration (we will not have the proper
793 routes set up to communicate with these hosts). (#170)
794
795 - Use absolute paths to system binaries on macOS and Windows. (#191)
796
797 - Add configuration options for `handshakes`. This includes options to tweak
798 `try_interval`, `retries` and `wait_rotation`. See example config for
799 descriptions. (#179)
800
801 - Allow `-config` file to not end in `.yaml` or `yml`. Useful when using
802 `-test` and automated tools like Ansible that create temporary files without
803 suffixes. (#189)
804
805 - The config test mode, `-test`, is now more thorough and catches more parsing
806 issues. (#177)
807
808 - Various documentation and example fixes. (#196)
809
810 - Improved log messages. (#181, #200)
811
812 - Dependencies updated. (#188)
813
814 ### Deprecated
815
816 - `punchy`, `punch_back` configuration options have been collapsed under the
817 now top level `punchy` config directive. (#210)
818
819 `punchy.punch` - This is the old `punchy` option. Should we perform NAT hole
820 punching (default false)?
821
822 `punchy.respond` - This is the old `punch_back` option. Should we respond to
823 hole punching by hole punching back (default false)?
824
825 ### Fixed
826
827 - Reduce memory allocations when not using `unsafe_routes`. (#198)
828
829 - Ignore packets from self to self. (#192)
830
831 - MTU fixed for `unsafe_routes`. (#209)
832
833 ## [1.1.0] - 2020-01-17
834
835 ### Added
836
837 - For macOS and Windows, build a special version of the binary that can install
838 and manage its own service configuration. You can use this with `nebula
839 -service`. If you are building from source, use `make service` to build this feature.
840 - Support for `mips`, `mips64`, `386` and `ppc64le` processors on Linux.
841 - You can now configure the DNS listen host and port with `lighthouse.dns.host`
842 and `lighthouse.dns.port`.
843 - Subnet and routing support. You can now add a `unsafe_routes` section to your
844 config to allow hosts to act as gateways to other subnets. Read the example
845 config for more details. This is supported on Linux and macOS.
846
847 ### Changed
848
849 - Certificates now have more verifications performed, including making sure
850 the certificate lifespan does not exceed the lifespan of the root CA. This
851 could cause issues if you have signed certificates with expirations beyond
852 the expiration of your CA, and you will need to reissue your certificates.
853 - If lighthouse interval is set to `0`, never update the lighthouse (mobile
854 optimization).
855 - Various documentation and example fixes.
856 - Improved error messages.
857 - Dependencies updated.
858
859 ### Fixed
860
861 - If you have a firewall rule with `group: ["one-group"]`, this will
862 now be accepted, with a warning to use `group: "one-group"` instead.
863 - The `listen.host` configuration option was previously ignored (the bind host
864 was always 0.0.0.0). This option will now be honored.
865 - The `ca_sha` and `ca_name` firewall rule options should now work correctly.
866
867 ## [1.0.0] - 2019-11-19
868
869 ### Added
870
871 - Initial public release.
872
873 [Unreleased]: https://github.com/slackhq/nebula/compare/v1.10.3...HEAD
874 [1.10.3]: https://github.com/slackhq/nebula/releases/tag/v1.10.3
875 [1.10.2]: https://github.com/slackhq/nebula/releases/tag/v1.10.2
876 [1.10.1]: https://github.com/slackhq/nebula/releases/tag/v1.10.1
877 [1.10.0]: https://github.com/slackhq/nebula/releases/tag/v1.10.0
878 [1.9.7]: https://github.com/slackhq/nebula/releases/tag/v1.9.7
879 [1.9.6]: https://github.com/slackhq/nebula/releases/tag/v1.9.6
880 [1.9.5]: https://github.com/slackhq/nebula/releases/tag/v1.9.5
881 [1.9.4]: https://github.com/slackhq/nebula/releases/tag/v1.9.4
882 [1.9.3]: https://github.com/slackhq/nebula/releases/tag/v1.9.3
883 [1.9.2]: https://github.com/slackhq/nebula/releases/tag/v1.9.2
884 [1.9.1]: https://github.com/slackhq/nebula/releases/tag/v1.9.1
885 [1.9.0]: https://github.com/slackhq/nebula/releases/tag/v1.9.0
886 [1.8.2]: https://github.com/slackhq/nebula/releases/tag/v1.8.2
887 [1.8.1]: https://github.com/slackhq/nebula/releases/tag/v1.8.1
888 [1.8.0]: https://github.com/slackhq/nebula/releases/tag/v1.8.0
889 [1.7.2]: https://github.com/slackhq/nebula/releases/tag/v1.7.2
890 [1.7.1]: https://github.com/slackhq/nebula/releases/tag/v1.7.1
891 [1.7.0]: https://github.com/slackhq/nebula/releases/tag/v1.7.0
892 [1.6.1]: https://github.com/slackhq/nebula/releases/tag/v1.6.1
893 [1.6.0]: https://github.com/slackhq/nebula/releases/tag/v1.6.0
894 [1.5.2]: https://github.com/slackhq/nebula/releases/tag/v1.5.2
895 [1.5.0]: https://github.com/slackhq/nebula/releases/tag/v1.5.0
896 [1.4.0]: https://github.com/slackhq/nebula/releases/tag/v1.4.0
897 [1.3.0]: https://github.com/slackhq/nebula/releases/tag/v1.3.0
898 [1.2.0]: https://github.com/slackhq/nebula/releases/tag/v1.2.0
899 [1.1.0]: https://github.com/slackhq/nebula/releases/tag/v1.1.0
900 [1.0.0]: https://github.com/slackhq/nebula/releases/tag/v1.0.0