netbird
netbird copied to clipboard
WG through kernel on Pis w/ Ubuntu 20.04
Hello,
Ubuntu 20.04 ships 5.4.0 of the kernel on the Raspberry Pis.
I was wondering if wireguard-go is used instead of the kernel implementation?
@agneevX Yes. If there is no WireGuard module available on the system, we use the wireguard-go implementation.
Is there a way to actually test this @braginini?
Hello, @agneevX you can see the interface type after you run the netbird up command followed by ip -d link show wt0. See the example below with an output of a kernel Wireguard interface:
ip -d link show wt0
76: wt0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/none promiscuity 0 minmtu 0 maxmtu 2147483552
wireguard addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
Wireguard type should appear in the second or third line.
This appears to be the same on my system:
~> ip -d link show wt0
56: wt0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/none promiscuity 0 minmtu 0 maxmtu 2147483552
wireguard addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
I ran a iperf3 test between two machines and I got speeds low enough that it indicated the usage of wireguard-go.
@agneevX would you mind pinging us on slack? Let's debug it there -> slack channel
Since v0.20.0 we've refactored the connection layer. This should increase the rate of direct connection, therefore improving the connection speeds.