Wireguard: FIB table does not exist

Hi all.

I’m trying to run Wireguard, when bringing up wg0, I’m getting the following errors:

squigly@shrimp:[~]$ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
Error: ipv4: FIB table does not exist.
Dump terminated
Error: ipv6: FIB table does not exist.
Dump terminated
[#] wg set wg0 fwmark 51820
[#] ip -4 route add dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0

wg0 interface does come up, but granted, nothing work.

Any ideas?

“nothing work”

i do have no idea, and also no idea what is Wireguard ??
What is your issue? and what you want to get working with wireguard and why?

Welcome at the forum b.t.w. have fun and be verbose! :smile:

Wireguard is a new form of VPN.
It is very different from openvpn/openswan etc.

It’s very simple to use, highly efficient, resilient, extremely fast with very low overhead and over all a true joy to use.
Read here: https://www.wireguard.com/

Linus Torvalds specifically praised it on several merits calling it “a work of art”.
Wireguard is now making it’s way to mainline kernel, so hopefully soon enough it will be part of the kernel.
An overview (somewhat old, but a good intro) can be found here:

I have used wireguard extensively for few years now, and it’s nothing short but amazing, (I even tested it on a trans-Atlantic flight with very unstable satellite internet, and where other VPN services just died, it preformed beautifully, resuming connections, etc.

(There are couple of commercial VPN services that now offers wireguard as an option other then IPSec and sslvpn).

My current situation is that when I try to route all of my traffic through the VPN, I get the FIB error (it has to do with updating the routing tables, I guess it breaks on or something).
When I route only a subnet (say it works fine.

Anyhow, I highly recommend you check out wireguard, it’s really a must-have tool (assuming you need a VPN of course).