On Wed, 7 Feb 2018 10:03:43 +0100 Henning Reich wrote: > Hi, > > I'm not sure if this a problem of wg/wg-quick or my system but maybe > somebody can help. > [snip] > It looks for me like wireguard can't resolve my remote site at this > moment. I tried a static resolv.conf file and also systemd-resolved. > Both sites have dynamic IPs so I can't use direct IPs. > If I run "systemctl restart wg-quick@wg0" it works as expected, so my > workaround is to add a 'sleep 5' to the service file. > > Any better solutions or is this a "bug"? > > Merci wg-quick@.service orders itself After=network-online.target. Systemd will only activate this target once it knows the network is online, which it can only know if your network manager tells it that. You'll need to enable the appropriate service: NetworkManager-wait-online.service systemd-networkd-wait-online.service ifup-wait-all-auto.service Enable whichever of those is appropriate for your configuration, reboot, and see if it works this time. ~Celti