WireGuard systemd-networkd routing configuration
jugs at protonmail.ch
Thu Feb 8 20:27:16 CET 2018
Given WireGuard support is in systemd 237, it may be preferable to have systemd manage the interfaces on some distros.
I'm having issues recreating the routing table with systemd-networkd to do `AllowedIPs=0.0.0.0/0` aka setting the default route for all system traffic to use the wg0 interface. I would appreciate some suggestions on how to change my config to make this happen. I've tried various combinations for the dhcp.network and the wg.network with no success.
Below is my equivalent config as to having my wg.conf with `AllowedIPs=192.168.100.0/24`:
[me at host network]$ pwd
[me at host network]$ ll
-rw-r----- 1 root systemd-network 300 Feb 7 12:00 25-wireguard.netdev
-rw-r----- 1 root systemd-network 60 Feb 7 12:00 40-dhcp.network
-rw-r----- 1 root systemd-network 100 Feb 7 12:00 50-static-wg.network
[me at host network]$ cat 25-wireguard.netdev
[me at host network]$ cat 40-dhcp.network
[me at host network]$ cat 50-static-wg.network
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the WireGuard