neocturne / fastd

Fast and Secure Tunnelling Daemon
Other
115 stars 16 forks source link

Fix building on NetBSD #18

Closed alarixnia closed 3 years ago

alarixnia commented 3 years ago

Just a simple case of using the code shared with macOS.

neocturne commented 3 years ago

Thanks! A few questions:

alarixnia commented 3 years ago

I've only tested running with dropped privileges, which seems to involve fastd using an existing tap interface - it complains in the log if the interface doesn't already exist.

Do you know if needing to name interfaces tunX and tapX is a limitation of the NetBSD kernel, or if renaming could be supported in theory?

The underlying device must be named the same as the kernel driver, i.e. tunX or tapX, but it can be assigned a 64 character description which will appear in ifconfig.

neocturne commented 3 years ago

I gave this a spin, and TAP mode is working great. TUN mode seems to need some more work (the TUNSIFHEAD ioctl might be related, currently checking this).

neocturne commented 3 years ago

Merged with a few additional fixes :)

alarixnia commented 3 years ago

Awesome, thank you!