Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Wireguard not reconnecting when remote IP change
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard not reconnecting when remote IP change (Read 2352 times)
nam wanda
Newbie
Posts: 1
Karma: 0
Wireguard not reconnecting when remote IP change
«
on:
May 03, 2022, 06:32:15 pm »
Hi all,
I have an issue with a Wireguard site-to-site VPN.
Here is the situation:
- I have two OPNsense boxes (A and B).
- I set up box A a dynamic DNS service.
- Box B is behind a provider NAT, and I can't reach from outside.
- I set up Wireguard in both machines to have box B connect to box A.
- Everything works perfectly but:
when the IP of box A changes, the Dynamic DNS is updated, but the connection between the two boxes is not restored until I reboot box B (I haven't tested rebooting only Wierguard service at the moment).
Where is the problem?
How can I solve that?
May I add a script to reboot Wireguard when the remote IP changes or try to force it to reconnect when it loses the connection?
Thank you.
best,
เว็บพนันแทงบอล
Logged
meyergru
Hero Member
Posts: 1694
Karma: 166
IT Aficionado
Re: Wireguard not reconnecting when remote IP change
«
Reply #1 on:
May 03, 2022, 08:35:44 pm »
Look here:
https://github.com/opnsense/plugins/pull/2956
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Wireguard not reconnecting when remote IP change