Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard with endpoint that changes IP daily
« previous
next »
Print
Pages: [
1
]
Author
Topic: wireguard with endpoint that changes IP daily (Read 3543 times)
mater
Newbie
Posts: 25
Karma: 0
wireguard with endpoint that changes IP daily
«
on:
February 03, 2021, 12:27:50 pm »
Hi,
i have the situation that I have to run an Site to Site VPN over wireguard, with one endpoint that changes its IP daily.
I can define the time of day when this can happen, but it must happen every 24h (it's defined by the ISP)
The other endpoint changes their IP only, when the cablemodem gets reset, so maybe once a year or so.
Now I'm using dyndns to get the IPs of the endpoints.
When the wireguard connection is running, it doesn't detect the IP Change.
So I thought, I could restart the wireguard connection once a day with a cronjob. Or ist there a better solution?
Logged
chemlud
Hero Member
Posts: 2485
Karma: 112
Re: wireguard with endpoint that changes IP daily
«
Reply #1 on:
February 03, 2021, 01:34:31 pm »
Not that I'm aware of....
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
mater
Newbie
Posts: 25
Karma: 0
Re: wireguard with endpoint that changes IP daily
«
Reply #2 on:
February 03, 2021, 06:08:54 pm »
Ok, thank you
Logged
mnaim
Jr. Member
Posts: 55
Karma: 5
Re: wireguard with endpoint that changes IP daily
«
Reply #3 on:
February 04, 2021, 02:21:06 pm »
wireguard can work in mode when one side has dynamic address, just dont fill it at all.
Im using that setup with no problem...eg. mobile phone, laptop etc. connecting to vpn
Logged
mater
Newbie
Posts: 25
Karma: 0
Re: wireguard with endpoint that changes IP daily
«
Reply #4 on:
February 06, 2021, 12:46:13 pm »
@mnaim
This VPN is a Site 2 Site VPN.
Both Sites must have access to each other.
What you talking about is a road warrior setup, as far as I know.
I have an other idea for a solution.
I try to use this script in opnsense:
https://wiki.archlinux.org/index.php/WireGuard#Endpoint_with_changing_IP
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard with endpoint that changes IP daily