Missing route table configuration on "Quick Start" section

Rémi Lapeyre remi.lapeyre at lenstra.fr
Fri Jul 16 12:53:32 UTC 2021


Hi, in the “Command-line Interface” paragraph of the “Quick Start” section at https://www.wireguard.com/quickstart/#command-line-interface it seems to me like the list of commands given: 

# ip link add dev wg0 type wireguard
# ip address add dev wg0 192.168.2.1/24
# ip address add dev wg0 192.168.2.1 peer 192.168.2.2
# wg setconf wg0 myconfig.conf
# wg set wg0 listen-port 51820 private-key /path/to/private-key peer ABCDEF... allowed-ips 192.168.88.0/24 endpoint 209.202.254.14:8172
# ip link set up dev wg0


is missing the route table configuration with “ip rule add …”. Those are given just a bit later in the GIF that shows 'wg-quick’ working but I’m not sure whether configuring the wireguard interface with the command given will actually work.

Cheers,
Rémi


More information about the WireGuard mailing list