Repository navigation
Releases
Release v1.12.0
This release introduces udp/tun offloading support that can be enabled for greater performance. This will be enabled by default in a future release. See the listen.udp_offloads and tun.use_offloads example config settings for more details.
See the v1.12.0 milestone for a complete list of changes.
Breaking
- Building Nebula, or embedding it as a library, now requires go v1.27.3. (#1940, #2028)
- A firewall rule
groupthat YAML reads as a float, a date, a map, or a nested array is now rejected on startup and
reload instead of being quietly converted to a string,group: 1.10used to match the group1.1. A nullgroupor
groupsis rejected when nohost, other group, orcidrlimits the rule, a nullgroupused to match nothing.
An unquoted int or bool, likegroup: 7, still works but logs a warning to quote it, since YAML has already turned
a value like007into7. (#1912, #2017) - A
pki.blocklistentry that isn't a hex SHA-256 fingerprint now refuses to start and fails a reload.
Entries are now compared case insensitively. (#1964) - On Linux, Nebula refuses a
tun.devthat already exists, including a persistent device created ahead of time with
ip tuntap addor systemd-networkd. Remove it and let Nebula create the device. (#1704) tun.mtu, and any routemtu, above 8937 is capped to 8937 with a warning so relayed packets always fit. (#1899)- SSH debug server commands now exit with status 1 when they refuse, and with
-jsonor-prettyreport the refusal
as{"ok":false,"reason":...}.version -jsonprints{"version":...}andprint-cert -json -rawprints
{"pem":...}. Every command accepts-jsonand-pretty. (#1959, #1975) nebulaandnebula-servicerefuse to start when given an argument that isn't a flag instead of ignoring it. (#1975)
Embedders
- Reload callbacks registered with
config.C.RegisterReloadCallbacknow take
(*config.C, *config.Reload), andReloadConfigandReloadConfigStringreturn aconfig.ReloadResult.
ReloadConfigStringused to return anerror, it is now the result'sErr. (#1935) overlay.Deviceno longer embedsio.ReadWriteCloserand replacedNewMultiQueueReaderand
SupportsMultiqueuewithQueues, reads and writes go through thetio.Queues it returns.udp.Conngained
WriteBatch, which must be safe for concurrent use, andIPv4Only,ListenOuttakes a flush callback, and
ReloadConfigtakes a*config.Reload.udp.NewListenerandudp.NewGenericListenertake audp.Settings. This
only matters if you implement your own device or conn, or create the udp listener yourself.
(#1704, #1935, #1971, #1991)- The ssh debug commands moved to the new
commandspackage.sshd.RegisterCommandandsshd.Command
are gone andsshd.NewSSHServertakes a*commands.Registry.firewall.ProtoTCP,ProtoUDP,ProtoICMPand
ProtoICMPv6are nowiputil.IPProtocol*. (#1958, #1864)
Added
- Linux tun offloads (TSO/USO) and UDP GSO/GRO, off by default. Enable with
tun.use_offloadsand
listen.udp_offloads. (#1704, #1858, #2023) - Batch outbound UDP sends, up to 128 packets per
sendmmsgcall on Linux. (#1704) - On Linux with
routinesabove 1, pin each routine's thread to a CPU, preferring performance cores and spreading
co-located instances apart. Controlled bytun.pin_threads(defaulttrue),tun.pin_threads_key(pid, the
default, orport) andtun.cpu_affinity. These andlisten.udp_offloadsneed a restart.
(#1704, #1861) - Native go FIPS 140-3 mode, no CGO required.
make fips140andmake release-fips140build binaries that only run
in FIPS 140-only mode and only allow P256 certificates and AES.nebula-cert caandkeygendefault to
-curve P256in those builds. Encrypted CA keys (nebula-cert ca -encrypt, orsignwith an encrypted-ca-key)
are not supported in them. The boringcrypto builds are deprecated and will be removed in the next release. (#1696) - Local APIs under
local_api. A control socket, on by default and only reachable by the user nebula runs as and root
(SYSTEM and Administrators on Windows), or a group named inlocal_api.control.group, serves every ssh debug
command, withnebula ctl <command>as its client. An opt-in info
socket serves the newidentitycommand over HTTP:GET /v1/identityfor this node,GET /v1/identity/<vpn addr>
for the host owning an address, and/pemunder either for the certificate. When running more than one instance on
a host give each its ownlocal_api.control.socket, otherwisenebula ctlreaches whichever instance bound the
default path first. (#1975, #1988) - Experimental: a
dnsstanza that points the host's resolver atdns.nameservers, either fordns.match_domains
(split DNS) or for every lookup (match_domains: []). Off by default, macOS and Windows only, and needs root on macOS
or admin on Windows. With those privileges, Nebula clears any DNS settings left under itsdns.identity(default
nebula) when it starts, even without the stanza, so a host running more than one instance withdnsenabled needs
a distinct identity for each. Settings left by a crash stay until Nebula starts again with the same identity.
(#2009, #2038)
Embedders
- On macOS, hand Nebula a utun fd the host already configured with
overlay.NewFdDeviceFromConfig, Nebula leaves its
addressing, MTU and routes to the host. (#1890) localapi.Client.InvokeLineruns a control socket command line the waynebula ctldoes. (#2025)config.C.GetStringSliceStrictreads a list and refuses a scalar where a list belongs. (#2009)
Changed
- A config reload logs one line saying whether it completed, completed with errors, or needs a restart and for which
keys. Thereloaddebug command prints the same and fails when the reload had errors. A reload is now reported as
failed when a config entry is skipped with a warning, or for a startup only value that would fail a restart, like
an unknowncipher. (#1935, #1952, #1953) - Certificates in
pki.caandpki.certfrom a newer version of Nebula are skipped with a warning instead of failing
startup. Nebula still fails if nothing usable is left.nebula-cert verifyskips certificates in-caand-crt
it doesn't support with a warning, and fails if none are left. (#1999) - Relay hosts batch the packets they forward. (#1971)
- A relay drops a relay request that names a different source than the peer that sent it. (#1980)
- Lighthouse queries never block the caller, a full queue drops the query and counts it in
lighthouse.query.dropped.handshakes.query_buffernow defaults to1024, up from64. (#1910) static_host_maphostnames keep their last good addresses when a lookup fails, other than a not found answer,
including across a reload, resolve in parallel, and re-resolve when a handshake to the host starts.
static_map.lookup_timeoutnow defaults to5s, up from250ms. (#1982)tun.tx_queuenow defaults to5000, up from500. (#1928)- On macOS, the utun gets its vpn address as a /32 or /128 and Nebula routes the vpn network to it explicitly, so other
VPNs can't take over the overlay route. (#1931) - On macOS, an
unsafe_routesentry another interface already routes is added once that route goes away and steps
aside when it comes back, and the warning names the interface. This includes0.0.0.0/0, which used to do nothing
on a Mac and is now installed whenever the default route goes away, like when Wi-Fi drops. A reload restores an
unsafe route deleted by hand. (#1925, #1942) - On Windows, the nebula adapter no longer registers its addresses in DNS. (#1914)
- Quoted
metricand viaweightvalues intun.unsafe_routesare now honored, a quoted metric used to become0
and a quoted weight failed to load. Nebula warns when a route is listed more than once. (#1924) nebula-cert keygenrefuses to overwrite an existing-out-keyor-out-pubfile, matchingcaandsign.
Overwriting kept the old file's mode, so a key written over a world-readable file stayed world-readable. Devices and
fifos, like/dev/stdout, are still written to. (#1966, #2019)- Reduce log spam from failing sends by logging them at most once a second, with a count of the ones skipped. (#1915)
- Reduce log spam from blocklisted hosts handshaking with us and invalid inbound packets by logging them at debug,
blocklisted handshakes are counted inhandshake_manager.rejected.blocklisted. (#1961, #1969, #1970) - Lighthouses ignore host queries for their own overlay addresses. (#1866)
- IPv6 packets with more than 8 extension headers are now dropped. (#1704, #1883)
- Use about 10MB less memory by no longer linking gopacket outside of tests. (#1864)
- The fields logged when a reload refuses a certificate change are camelCase,
old_networksis nowoldNetworks,
cert_versionis nowcertVersion, and so on. (#2035) - Various dependency updates. (#1827, #1828, #1829, #1846, #1847, #1859, #1860, #1875, #1876, #1894, #1904, #1937, #1938,
#2015, #2016)
Removed
- The SSH debug server's
start-cpu-profile,stop-cpu-profile,save-heap-profile,save-mutex-profile, and
mutex-profile-fractioncommands, andsshd.sandbox_dir, which is now ignored if set. Profiling will return as a
config option in a future release, see #913. (#1965)
Fixed
- Inbound packets that arrive through a peer's unsafe network with a source inside this node's vpn networks are
dropped, matching outbound, where traffic to those addresses has always gone directly to the host that owns them
instead of through an unsafe route. (#1986) - A packet for an
unsafe_routesentry with several gateways now waits for the ...
Release v1.11.2
See the v1.11.2 milestone for a complete list of changes.
Fixed
- Windows tracks NLMTU per address family and Nebula only ever set it for
AF_INET, so the IPv6 MTU on every
Windows adapter sat at the adapter default of 65535 regardless oftun.mtuand the stack could hand Nebula
packets far larger than configured. An IPv6 enabled overlay withtun.mtuunder 1280 now refuses to start,
matching the other platforms. (#1871) - Android 11+ denies
bind()on netlink route sockets inside the app sandbox, so local address discovery
failed and an Android node advertised no underlay addresses, leaving peers on the same LAN to reach it only
at the address a lighthouse observed. (#1881) - Recompute the transport checksum on packets a host sends to its own overlay address. On macOS the kernel
leaves the checksum unfinished for hardware offload, which does not survive the trip through userspace, so
TCP and UDP to a host's own IPv6 overlay address were dropped as corrupt. (#1862)
Release v1.11.1
See the v1.11.1 milestone for a complete list of changes.
Changed
- IPv6 packets whose next header is a protocol Nebula does not parse (SCTP, GRE, IP-in-IP, etc.) are now
classified as that protocol with no ports, closing a firewall bypass where a crafted payload could steer
the classifier into reading one as TCP/UDP and matching a TCP/UDP rule. These packets are now matched as
their true protocol, so only aproto: anyrule allows them. If you carry one of these protocols over the
overlay, confirm aproto: anyrule covers it before upgrading, it may have been passing only through this
bypass. (#1840) - Drop the dependency on
github.com/cyberdelia/go-metrics-graphite, which has been unmaintained for over ten
years, by inlining the small amount of code Nebula used. (#1832)
Fixed
- The ICMPv6 type was read from the wrong byte when classifying IPv6 packets, so the echo identifier used
for conntrack was never picked up. (#1840) - Enforce outbound message counter limits so a tunnel is rehandshaked before the counter can wrap, preventing
nonce reuse. This is unreachable in practice, but is enforced as a defense-in-depth measure. (#1841) - Prevent
nebula-cert cafrom running out of memory on 32bit systems when generating encrypted private keys. (#1834) - Tolerate
ErrDumpInterruptedwhen listing tun addresses on Linux, so a transient interrupted netlink dump
no longer aborts startup. (#1835)
Release v1.11.0
See the v1.11.0 milestone for a complete list of changes.
Breaking
- Logging has switched from logrus to Go's structured
slog. Log output changes: levels are upper case
(level=INFO), trace prints aslevel=DEBUG-4, timestamps are always RFC3339Nano andlogging.timestamp_format
is ignored, and some messages were reworded. Review any log parsing before upgrading. This is also an API break
for embedders, as constructors now take a*slog.Logger. (#1672, #1734, #1621) firewall.inbound_actionandfirewall.outbound_action(used to set reject vs. drop policy) were each being
applied to the opposite direction, that is now corrected. This only affects how blocked packets are answered, not
which packets the firewall allows or denies. If you set either of these you are getting the behavior of the other
one today and likely want to swap them before upgrading. (#1798)- On Windows, Nebula now installs WFP PERMIT filters for the nebula adapter and the listener port by default. WFP
sits below Windows Defender Firewall, so any WDF inbound rules you rely on for either will no longer apply. Set
tun.windows_bypass_wdfandlisten.windows_bypass_wdfto false to leave WDF in charge. (#1710) - On Windows, the nebula device is now set to the
privatenetwork category instead of whatever Windows decided,
which is usuallyPublic. This makes the host firewall less restrictive on the overlay. Set
tun.network_categorytounsetto keep the old behavior. (#1710) - Reject packets for non-TCP now use ICMP code 13, communication administratively prohibited, instead of code 3,
port unreachable. Anything keying off the old code needs updating. (#1766, #1768) - The SSH debug server's profiling commands are now confined to
sshd.sandbox_dir, which defaults to
$TMP/nebula-debug. Relative paths resolve inside it and absolute paths outside it are rejected, so anything
scriptingstart-cpu-profile,save-heap-profile, orsave-mutex-profilewith a path elsewhere needs the
directory set. The directory is not created for you. (#1622)
Added
- Sign the Windows release binaries. (#1718)
- Generate IPv6 reject packets, matching the existing IPv4 behavior. (#1766, #1767, #1768)
- Accept
-innebula-certto read from stdin or write to stdout. (#1714) - Search for both
config.ymlandconfig.yamlin service and command line modes. (#1717) - Add version labels to the Docker/OCI images. (#1772)
- Rebind the listener and re-query lighthouses on macOS when the underlay network changes, so devices moving
between wifi and wired or between networks recover without waiting for dead tunnel detection. Controlled by
listen.rebind_on_network_change(defaulttrue, not reloadable). (#1816)
Changed
- Reload the firewall when the unsafe networks in the certificate change. (#1719)
- Reconfigure, start, and stop the stats listener on a config reload instead of requiring a restart. (#1670)
- Update a static host's addresses when they change on reload. (#1713)
- Don't require a port on ICMP firewall rules. (#1609)
- Connection track ICMP traffic. (#1602)
- Return
NODATAinstead ofNXDOMAINfrom the DNS server for a name that exists but has no record of the
requested type, so clients that queryAAAAfirst (busybox/Alpine) fall through toA. (#1668) - Record the local host's details in the DNS server. (#1716)
- Install Windows unsafe routes as link routes. (#1709)
- Reduce relay handshake log spam, and only log a handshake send error at error level when the remote list
changes. (#1733, #1765, #1810) - Start, stop, and reload subsystems (DNS, stats, conntrack, ssh, punchy) cleanly without leaking goroutines. (#1640, #1654, #1661, #1667, #1669, #1708, #1806, #1815)
Controlis now safe to stop and wait on from any lifecycle state, and a newControl.Waitblocks until nebula
has fully stopped and returns the first fatal reader error. Failed starts release the udp sockets and tun fd
instead of leaking them. (#1794)- Trigger an immediate lighthouse update when reconnecting to or adding a lighthouse instead of waiting for the next update tick. (#1645)
- Bring the Darwin and OpenBSD tun implementations in line with the other BSDs. (#1703)
- Update to build against go v1.26. (#1818)
- 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)
Fixed
- Fix a data race on a host's remote address that could send packets to the wrong address during a roam. (#1773)
- Fix tunnels that could permanently escape connection manager monitoring. (#1752)
- Fix a crash when reloading the SSH server's trusted keys. (#1787)
- Fix hostmap corruption when a host has multiple overlay addresses. Each address now gets its own list instead of
a single shared chain, which also fixes two latent bugs on the add and makePrimary paths. (#1788, #1790) - Apply
remote_allow_listIPv4 rules to 4-in-6 mapped addresses. (#1786) - Don't panic in the DNS server on a short or empty query name. (#1635)
- Advance the replay window on relayed packets so a relay drops replayed frames instead of re-forwarding them. (#1751)
- Fix a race in relay state handling. (#1753)
- Lock replay window updates so concurrent readers can't corrupt it. (#1802)
- Reject malformed handshakes more reliably, including invalid ed25519 key lengths. (#1601, #1756)
- Properly handle
closetunnelpackets. (#1638) - Fix an IPv6 extension-header length overflow that could make the firewall parse the wrong protocol and ports. (#1789)
- Fix relay re-establishment when a handshake arrives over a relay entry that a one-sided teardown left
Disestablished, which silently dropped every send until dead tunnel detection forced a re-handshake. (#1805) - Don't build new relay state on a tunnel that was just discarded. (#1796)
- Don't delete the wrong pending hostinfo in the handshake manager. (#1811)
- Don't call the packet reader after a UDP error on Darwin. (#1755)
- Open the FreeBSD tun device non blocking. (#1666)
Release v1.10.3
Security
- Fix an issue where blocklist bypass is possible when using curve P256 since the signature can have 2 valid representations.
Both fingerprint representations will be tested against the blocklist.
Any newly issued P256 based certificates will have their signature clamped to the low-s form.
Nebula will assert the low-s signature form when validating certificates in a future version. GHSA-69x3-g4r3-p962
Changed
- Improve error reporting if nebula fails to start due to a tun device naming issue. (#1588)
Release v1.10.2
Release v1.10.1
See the v1.10.1 milestone for a complete list of changes.
Fixed
- Fix a bug where an unsafe route derived from the system route table could be lost on a config reload. (#1573)
- Fix the PEM banner for ECDSA P256 public keys. (#1552)
- Fix a regression on Windows from 1.9.x where nebula could fall back to a less performant UDP listener if
non-critical ioctls failed. (#1568) - Fix a bug in handshake processing when a peer sends an unexpected public key. (#1566)
Added
- Add a config option to control accepting
recv_errorpackets which defaults toalways. (#1569)
Changed
Release v1.10.0
See the v1.10.0 milestone for a complete list of changes.
NOTE: If you use unsafe_routes, please read the note in the Changed section about default_local_cidr_any. You may need to update your firewall rules in order to maintain connectivity.
Added
- Support for ipv6 and multiple ipv4/6 addresses in the overlay.
A new v2 ASN.1 based certificate format.
Certificates now have a unified interface for external implementations.
(#1212, #1216, #1345, #1359, #1381, #1419, #1464, #1466, #1451, #1476, #1467, #1481, #1399, #1488, #1492, #1495, #1468, #1521, #1535, #1538) - Add the ability to mark packets on linux to better target nebula packets in iptables/nftables. (#1331)
- Add ECMP support for
unsafe_routes. (#1332) - PKCS11 support for P256 keys when built with
pkcs11tag (#1153, #1482)
Changed
- NOTE:
default_local_cidr_anynow defaults to false, meaning that any firewall rule
intended to target anunsafe_routesentry must explicitly declare it via the
local_cidrfield. This is almost always the intended behavior. This flag is
deprecated and will be removed in a future release. (#1373) - Improve logging when a relay is in use on an inbound packet. (#1533)
- Avoid fatal errors if
rountinesis > 1 on systems that don't support more than 1 routine. (#1531) - Log a warning if a firewall rule contains an
anythat negates a more restrictive filter. (#1513) - Accept encrypted CA passphrase from an environment variable. (#1421)
- Allow handshaking with any trusted remote. (#1509)
- Log only the count of blocklisted certificate fingerprints instead of the entire list. (#1525)
- Don't fatal when the ssh server is unable to be configured successfully. (#1520)
- Update to build against go v1.25. (#1483)
- Allow projects using
nebulaas a library with userspace networking to configure theloggerand build version. (#1239) - Upgrade to
yaml.v3. (#1148, #1371, #1438, #1478)
Fixed
- Fix a potential bug with udp ipv4 only on darwin. (#1532)
- Improve lost packet statistics. (#1441, #1537)
- Honor
remote_allow_listin hole punch response. (#1186) - Fix a panic when
tun.use_system_route_tableistrueand a route lacks a destination. (#1437) - Fix an issue when
tun.use_system_route_table: truecould result in heavy CPU utilization when many thousands of routes
are present. (#1326) - Fix tests for 32 bit machines. (#1394)
- Fix a possible 32bit integer underflow in config handling. (#1353)
- Fix moving a udp address from one vpn address to another in the
static_host_map
which could cause rapid re-handshaking with an incorrect remote. (#1259) - Improve smoke tests in environments where the docker network is not the default. (#1347)
Release v1.9.7
Security
- Fix an issue where Nebula could incorrectly accept and process a packet from an erroneous source IP when the sender's
certificate is configured with unsafe_routes (cert v1/v2) or multiple IPs (cert v2). (#1494)
Changed
Release v1.9.6
Added
- 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)