Development discussion of WireGuard
 help / color / mirror / Atom feed
* Tunnels not coming up on reboot
@ 2019-04-19  2:07 Erik Jerde
  0 siblings, 0 replies; only message in thread
From: Erik Jerde @ 2019-04-19  2:07 UTC (permalink / raw)
  To: wireguard

I’ve got two VMs running Ubuntu 18.10 with wireguard 0.0.20190406-wg1~cosmic installed.  I’ve enabled the Wireguard interface to come up with the systemctl enable wg-quick@wg0.service on both systems.  The interface goes up and down as expected when using the systemctl start and stop commands.  My problem is that when either of the VMs are rebooted the tunnels do not come back up.  The WG command shows that the interface is up but there’s no handshake/transfer/etc.  On the system that was rebooted if I issue a systemctl stop then start command the tunnel comes right up and performs as expected.

I’m pretty green with systemctl but this reminds me of problems I’ve seen with other daemons that didn’t have all of their needs being met before they started.  In the old days of init.d I could fix this but now I’m kinda stuck.  My .service file is showing After=network-online.target nss-lookup.target and Wants=network-online.target nss-lookup.target.  Is there something more that should be in there?  Any ideas of what else might be causing the tunnel to not come up?

Thanks!
Erik

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-06 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19  2:07 Tunnels not coming up on reboot Erik Jerde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).