This is a community-developed WireGuard snap that includes a oneshot
service to help automate VPN configuration.
This snap can be installed from the Snap Store using the following command:
sudo snap install wireguard-dtp
First, connect the firewall-control
and network-control
interfaces.
sudo snap connect wireguard-dtp:network-control
sudo snap connect wireguard-dtp:firewall-control
Then, drop your *.conf
files under /var/snap/wireguard-dtp/current/etc
.
sudo cp wg0.conf /var/snap/wireguard-dtp/current/etc
Finally, restart WireGuard.
sudo snap restart wireguard-dtp
Note
Due to strict confinement, updating DNS in /etc/resolv.conf
automatically is not supported.