-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tun0 is not assigned IP and routes on OpenBSD #1372
Comments
Confirmed. You're hitting:
(Yes, the error message says |
Looks like a duplicate of #1160. |
I installed tailscale built from today's tree on an OpenBSD 6.8 VM, and see the same symptom:
This happens in wgengine/router/router_openbsd.go in the Set() routine:
This was intended to apply to having multiple IPv4 addresses, where we don't have a suitable aliases implementation for OpenBSD. However with the addition of IPv6 we now have len(cfg.LocalAddrs) == 2, which we definitely could support. |
I think this can be pretty straightforward to resolve, if we want to support one IPv4 and one IPv6 address on the interface. I had it use a /48 prefix, like FreeBSD now does, so as to not need to deal with IPv6 routes.
|
Seems to work, I can ping another machine on my tailnet using both IPv4 and IPv6:
|
Similar to FreeBSD in tailscale#1307, add IPv6 addresses with a prefix length of 48. Fixes tailscale#1372 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
The route creation for the `tun` device was augmented in tailscale#1469 but didn't account for adding IPv4 vs. IPv6 routes. There are 2 primary changes as a result: * Ensure that either `-inet` or `-inet6` was used in the [`route(8)`](https://man.openbsd.org/route) command * Use either the `localAddr4` or `localAddr6` for the gateway argument depending which destination network is being added The basis for the approach is based on the implementation from `router_userspace_bsd.go`, including the `inet()` helper function. Fixes tailscale#1372 References tailscale#1469 Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
Describe the bug
tailscaled seems to successfully bring up the interface, but the tun0 interface is left unconfigured.
To Reproduce
I am using the following rc unit on an OpenBSD 6.8 machine.
After starting tailscaled, the interface has no IP.
If I manually configure the interface, everything works great!
Version information:
@latest
)Additional context
I am told by a very reliable source that
The text was updated successfully, but these errors were encountered: