Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Wireguard autostart
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard autostart (Read 928 times)
Curly060
Newbie
Posts: 8
Karma: 2
Wireguard autostart
«
on:
September 06, 2022, 10:26:09 pm »
Hi!
I am having trouble to get Wireguard auto started in the following scenarios:
- at boot
- WAN changes from offline => online (e.g. PPPoE finally connects)
So pretty much the same like in
https://forum.opnsense.org/index.php?topic=18956.0
However, I did not like the proposed solutions of this thread (late rc hook/static unbound mapping) because they are just awkward workarounds and actually do not help in my case at all (endpoints have dynamic IP addresses).
The last post in this thread states that the Wireguard implementation of OPNsense does not use the newannip event listener. I wondered why and simply created a patch to support just that and applied it via
Code:
[Select]
opnsense-patch -a Curly060 -c plugins -r opnsense-plugins -V d97ec27df00
and voila:
Wireguard comes up after a reboot and whenever the WAN ip changes! Perfect!
Now the question is: Is it really that simple? If so, why isn't this implemented yet?
Are there any drawbacks from this solution that I am not aware of?
For my purposes it looks like a robust and reliable solution to get Wireguard started.
Cheers, Curly060 =;->
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Wireguard autostart