Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[SOLVED] wireguard-go will stop while uplink ist not ready after boot
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] wireguard-go will stop while uplink ist not ready after boot (Read 1177 times)
christianw
Newbie
Posts: 12
Karma: 1
[SOLVED] wireguard-go will stop while uplink ist not ready after boot
«
on:
May 04, 2022, 08:54:10 am »
Hi people,
we have the task, that we have an OPNsense VM with wireguard set up.
The OPNsense connects to an wireguard Endpoint (at Internet) through another virtual Router, that builds up the connection through a mesh network.
Now, after reboot of both machines, the virtual router needs "some" time to establish an internet connection.
OPNsense starts, has no Internet link and wireguard-go stops and never tries again.
We tried to delay the boot of OPNsense, but this is just an insufficient workaround.
Is Monit the way of doing this? Did we miss something?
Regards
Christian
«
Last Edit: May 05, 2022, 04:57:32 am by christianw
»
Logged
zerwes
Full Member
Posts: 125
Karma: 8
Re: wireguard-go will stop while uplink ist not ready after boot
«
Reply #1 on:
May 04, 2022, 09:17:18 am »
Is the WG peer configured as IP or DNS?If you use DNS, it might just be a DNS issue and you can try to switch to IP ... in case your peer has a static ip ...WG just resolves DNS on startup, so if it can not do this, it can not start...
Logged
christianw
Newbie
Posts: 12
Karma: 1
Re: wireguard-go will stop while uplink ist not ready after boot
«
Reply #2 on:
May 04, 2022, 11:17:56 am »
Dear zerwes,
thank you for pointing out this detail of DNS handling by wireguard!
We did use DN. I switched to IP now... and will test.
Logged
christianw
Newbie
Posts: 12
Karma: 1
Re: wireguard-go will stop while uplink ist not ready after boot
«
Reply #3 on:
May 05, 2022, 04:51:35 am »
I'm happy. :-) Great!
Thank you!
«
Last Edit: May 05, 2022, 04:55:03 am by christianw
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
[SOLVED] wireguard-go will stop while uplink ist not ready after boot