I'm following these instructions for setting up a (kernel-space) Wireguard VPN on OpenBSD. In my particular case, the VPN server is running OpenBSD and is confirmed to be working correctly (as one of my local OpenBSD machines has been set up as a client).
Most of my local machines aren't OpenBSD boxes though - they're running Debian. As such, I'm trying to stitch together both the aforementioned tutorial and this Debian-specific one.
I'm at the stage where I need to define the client's routes. On OpenBSD, these look like:
On the client side two additional routes are needed:
- A more specific route to the server (aa.bb.cc.dd) over the local default gateway (ww.xx.yy.zz)
- A default route towards the IP address of the tunnel endpoint
Set the rules as follows:
client# route add -priority 2 aa.bb.cc.dd ww.xx.yy.zz client# route add -priority 7 default 192.168.23.1
These instructions, in their current form, obviously don't work on Linux.
What are the equivalent commands on Debian?