Wireguard comes embedded in the Mocaccino Kernels.
First install wireguard-tools and the
wg runit service:
By default, the service sets up the
wg0 interface, with configuration at
/etc/wireguard/wg0.conf with your configuration, or to change the default interface configuration, change the
/etc/sv/wg/conf file accordingly.
To start wg, just:
or to enable at boot:
Now you should be able to see the wg interface with
For multiple connections, copy the
/etc/sv/wg/ service directory to your custom one, for example
/etc/sv/wg2 and tweak it accordingly to your needs.
You can start it afterwards with