Dear Ryo, Thanks for the package! I can install it on NetBSD 10.1 but have some trouble starting the tailscale service. Please see the error message below (looks like I don’t have the “userspace-networking” interface?): esbear# service tailscaled start esbear# logtail started Program starting: v1.81.0-ERR-BuildInfo, Go 1.23.6: []string{"/usr/pkg/bin/tailscaled", "-tun", "userspace-networking"} LogID: 6e6ef0aa8d3fb3cfc2e38a54d67e975b2584a9c5defe535bf8adb04623e3a335 logpolicy: using system state directory "/var/db/tailscale" dns: using dns.noopManager cleanUp: ifdown=[ifconfig userspace-networking down] cleanUp: interfaceName=userspace-networking ifconfig down: exit status 1 usage: ifconfig [-h] [-m] [-v] [-z] [-L] interface [ af [ address [ dest_addr ] ] [ netmask mask ] [ prefixlen n ] [ alias | -alias ] ] [ up ] [ down ] [ metric n ] [ mtu n ] [ advbase n ] [ advskew n ] [ carpdev iface ] [ pass passphrase ] [ state state ] [ vhid n ] [ maxupd n ] [ syncdev iface ] [syncpeer peer_addr] [ anycast | -anycast ] [ deprecated | -deprecated ] [ pltime n ] [ vltime n ] [ eui64 ] [ media type ] [ mediaopt opts ] [ -mediaopt opts ] [ instance minst ] [ [ af ] tunnel src_addr dest_addr ] [ deletetunnel ] [ vlan n vlanif i ] [ -vlanif i ] [ nwid network_id ] [ nwkey network_key | -nwkey ] [ list scan ] [ powersave | -powersave ] [ powersavesleep duration ] [ hidessid | -hidessid ] [ apbridge | -apbridge ] [ agrport i ] [ -agrport i ] [ session local-session-id remote-session-id ] [ cookie local-cookie-length local-cookie remote-cookie-length remote-cookie ] [ laggproto p ] [ laggport i [ pri n ] ] [ -laggport i ] [ laggportpri i [ pri n]] [ lagglacp [ dumpdu | -dumpdu ] [ stopdu | -stopdu ] [ maxports n | -maxports ] [ optimistic | -optimistic ] ] [ laggfailover] [ rx-all | -rx-all ] [ arp | -arp ] [ preference n ] [ link0 | -link0 ] [ link1 | -link1 ] [ link2 | -link2 ] [ linkstr str | -linkstr ] [ unnumbered | -unnumbered ] [ description str | descr str | -description | -descr ] ifconfig -a [-b] [-d] [-h] [-m] [-u] [-v] [-z] [ af ] ifconfig -l [-b] [-d] [-s] [-u] ifconfig -C ifconfig -w n ifconfig interface create ifconfig interface destroy wgengine.NewUserspaceEngine(tun "userspace-networking") ... dns: using dns.noopManager link state: interfaces.State{defaultRoute= ifs={wm0:[192.168.50.98/24 fd12:1869:2151:8b46:d56:52f3:6517:b497/64 llu6]} v4=true v6=true} onPortUpdate(port=65531, network=udp6) magicsock: failed to set UDP read buffer size to 7340032: set udp6 [::]:65531: setsockopt: no buffer space available magicsock: failed to set UDP write buffer size to 7340032: set udp6 [::]:65531: setsockopt: no buffer space available onPortUpdate(port=62964, network=udp4) magicsock: failed to set UDP read buffer size to 7340032: set udp4 0.0.0.0:62964: setsockopt: no buffer space available magicsock: failed to set UDP write buffer size to 7340032: set udp4 0.0.0.0:62964: setsockopt: no buffer space available magicsock: disco key = d:0f0525ae75006803 Creating WireGuard device... Bringing WireGuard device up... Bringing router up... Clearing router settings... Starting network monitor... Engine created. pm: migrating "_daemon" profile to new format logpolicy: using system state directory "/var/db/tailscale" got LocalBackend in 2ms Start Backend: logs: be:6e6ef0aa8d3fb3cfc2e38a54d67e975b2584a9c5defe535bf8adb04623e3a335 fe: Switching ipn state NoState -> NeedsLogin (WantRunning=false, nm=false) blockEngineUpdates(true) wgengine: Reconfig: configuring userspace WireGuard config (with 0/0 peers) wgengine: Reconfig: configuring router wgengine: Reconfig: configuring DNS dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0} dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]} dns: OScfg: {} health(warnable=is-using-unstable-version): error: This is an unstable version of Tailscale meant for testing and development purposes. Please report any issues to Tailscale. health(warnable=wantrunning-false): error: Tailscale is stopped. Once I can successfully run tailscale SSH, I’m willing to make the payment as promised. You can send you Venmo/Zelle/PayPal/whatever account to this email address, and we’ll figure out how to send you $200! Regarding the fact that tailscale/wireguard-go does not handle
NetBSD's tun(4) device properly so we must use userspace networking, what’s the impact and where should we open an issue? I hope this can be resolved. Bests, Qingyao |