displaynamethrowaway 0 Posted ... Hello, I have a computer running Fedora 39 Server Edition and I would like it to have it always be connected to AirVPN. I downloaded a Wireguard conf file from the generator and moved it to /etc/wireguard/wg0.conf . Then I ran "sudo nmcli connection import type wireguard file /etc/wireguard/wg0.conf". Initially, this works. I can connect and traffic is routed throuh the VPN connection. However, when I restart the machine, the connection breaks and I cannot connect to anything through it ("ping google.com" fails). However, I can run "sudo nmcli up wg0" it works again. It is set up to connect automatically. Here is some relevant output from "nmcli con show wg0". connection.autoconnect: yes connection.autoconnect-priority: 0 connection.autoconnect-retries: -1 (default) Please let me know what other information would be helpful for troubleshooting. How can I get the connection to come up on its own without my intervention? Thank you. Quote Share this post Link to post
wombat 2 Posted ... Add Wireguard as a service using systemd which will connect on startup. sudo systemctl enable wg-quick@wg0.service sudo systemctl daemon-reload Start the service manually: sudo systemctl start wg-quick@wg0 Reboot and check if Wireguard has started and connected automatically. 1 cousinhub reacted to this Quote Share this post Link to post