Wireguard client

This seems fairly well documented on the WireGuard site

2 Likes

After installing wireguard on Vero 4k, how can I route all traffic through tunnel?
I tried remove line AllowedIPs = 0.0.0.0/0, ::/0 and wg0 came up, but none traffic through tunnel. Otherwise I have this error: /dev/fd/63:5:1-117: Error: Could not process rule: No such file or directory

[#] wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.0.0.1/32 dev wg0
[#] ip -6 address add xxxx:xxxx:bbbb:xxxx::5:xxxx/128 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a tun.wg0 -m 0 -x
Too few arguments.
Too few arguments.
[#] wg set wg0 fwmark 51820
[#] ip -6 route add ::/0 dev wg0 table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
/dev/fd/63:5:1-117: Error: Could not process rule: No such file or directory

[#] resolvconf -d tun.wg0 -f
Too few arguments.
Too few arguments.
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wg0

This is now probably a question to take to WireGuard, this is regarding the usage of their software.

1 Like

You actually removed the line that you needed. You need the “allowed ips” line.

0.0.0.0/0 is required to route all ipv4 traffic (and ::/0 for ipv6).