Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Wireguard, refresh DNS to Endpoint?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard, refresh DNS to Endpoint? (Read 2813 times)
Bytechanger
Full Member
Posts: 239
Karma: 0
Wireguard, refresh DNS to Endpoint?
«
on:
May 07, 2021, 10:12:04 am »
Hi,
I´ve set up an connection to an wireguard server. He has an dynamic ip, so I set Endpoint to an dyndns-address.
It works, but when the server gets at night a new ip, my wireguard doesn´t refresh the Endpoint IP.
So is there a way to restart this wireguard connection to get this new dns inside (with monit or else?).
Greets
Byte
Logged
lfirewall1243
Hero Member
Posts: 1386
Karma: 45
Re: Wireguard, refresh DNS to Endpoint?
«
Reply #1 on:
May 07, 2021, 10:51:10 am »
I had the same problem.
I looked when the other side gets a new IP, mostly its every day at the same time.
A few minutes later i run a cron job whch restarts wireguard
Wireguard has no support for dyndns. The cron job at the bottom solved my problem
https://github.com/opnsense/plugins/issues/2268
«
Last Edit: May 07, 2021, 11:31:08 am by lfirewall1243
»
Logged
(Unoffial Community) OPNsense Telegram Group:
https://t.me/joinchat/0o9JuLUXRFpiNmJk
PM for paid support
Mondmann
Jr. Member
Posts: 73
Karma: 7
Re: Wireguard, refresh DNS to Endpoint?
«
Reply #2 on:
May 07, 2021, 04:04:57 pm »
@lfirewall1243
Hi guys,
thanks a lot for this food for thought.
This solution was just too simple for me to come up with.
Zitat from lfirewall1243:
"Created a cron Job which is rebooting the Wireguard Service after 00:01 where the IP changes always"
Greetings from Germany
Logged
OPNsense 22.7.9*WG-kmod*OpenSSL*OpenVPN* AdGuardHome*i7-7700*32GB*256SSD*ix0-1, igb0-4, em0*OpenVPN+Wireguard WG0, WG1*NetGear ProSafe XS508*AP Netgear WAX610*alles echtes Blech* Sorry, my English is translated via app*
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Wireguard, refresh DNS to Endpoint?