meshbird / meshbird

Distributed private networking

Home Page:https://meshbird.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

err: open /dev/net/tun: no such file or directory on FreeBSD

zhou0 opened this issue · comments

commented

meshbird join
2017/10/02 22:22:32 generate IP income: 10.7.0.0/16
2017/10/02 22:22:32 generate IP out: 10.7.154.194
[local] 2017/10/02 22:22:32 Initializing iface...
[main] 2017/10/02 22:22:32 node start error: Initialision of iface finished with error: create interface err: create new tun interface err: open /dev/net/tun: no such file or directory

If you're comfortable modifying the source, try testing /dev/tun0 instead of /dev/net/tun https://forums.freebsd.org/threads/tun-tap-programming.43893/

See https://github.com/meshbird/meshbird/blob/78488b803f607154c7db9f16c4043b4feb94dff4/src/meshbird/iface/iface.go
Actual Meshbird version 2.1 not supports FreeBSD because Meshbird uses package "github.com/songgao/water" for TUN/TAP. This package not have implementation for FreeBSD.

Here is version the same package but it was adopted for FreeBSD https://github.com/yggdrasil-network/water

Notes from documentation for https://github.com/yggdrasil-network/yggdrasil-go

FreeBSD, NetBSD

  • Works in TAP mode, but currently doesn't work in TUN mode.
  • You may need to create the TAP adapter first if it doesn't already exist, i.e. ifconfig tap0 create.