Skip to content

Commit 1915fab

Browse files
harpchadwadey
andauthored
tun_darwin (slackhq#163)
- Remove water and replace with syscalls for tun setup - Support named interfaces - Set up routes with syscalls instead of os/exec Co-authored-by: Wade Simmons <[email protected]>
1 parent 7801b58 commit 1915fab

File tree

3 files changed

+355
-34
lines changed

3 files changed

+355
-34
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3333
is a large improvement over the TAP driver that was used in previous versions. If you had a previous version
3434
of `nebula` running, you will want to disable the tap driver in Control Panel, or uninstall the `tap0901` driver
3535
before running this version. (#289)
36-
36+
3737
- Darwin binaries are now universal (works on both amd64 and arm64), signed, and shipped in a notarized zip file.
3838
`nebula-darwin.zip` will be the only darwin release artifact. (#571)
3939

40+
- Darwin uses syscalls and AF_ROUTE to configure the routing table, instead of
41+
using `/sbin/route`. Setting `tun.dev` is now allowed on Darwin as well, it
42+
must be in the format `utun[0-9]+` or it will be ignored. (#163)
43+
4044
### Deprecated
4145

4246
- The `preferred_ranges` option has been supported as a replacement for

examples/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ punchy:
148148
tun:
149149
# When tun is disabled, a lighthouse can be started without a local tun interface (and therefore without root)
150150
disabled: false
151-
# Name of the device
151+
# Name of the device. If not set, a default will be chosen by the OS.
152+
# For macOS: if set, must be in the form `utun[0-9]+`.
153+
# For FreeBSD: Required to be set, must be in the form `tun[0-9]+`.
152154
dev: nebula1
153155
# Toggles forwarding of local broadcast packets, the address of which depends on the ip/mask encoded in pki.cert
154156
drop_local_broadcast: false

0 commit comments

Comments
 (0)