-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoint IP randomly changes to incorrect IP #113
Comments
Hi, I think I opened an issue with an similar bug. #116 In my case I use two Tunnels to different IPs. The second one uses the Tunnel Endpoint from the first tunnel. On the other side is a Debian Server with two IPs. I have added two static routes at my ER-12 to redirect traffic over 2 Different DSL Connections.
I hope you could help here. |
@MichelGreijmans I did some further research on the matter. Can you confirm it? |
May very well be, I'm not in the position to test/prove this at this moment. I did swap out the router for this client from an ER-X to an ER-4, this also solved a bunch of wg-related issues. I believe the ER-X is way under-powered. As of now, with the above configuration the router is still connected with the IP. We also swapped out the router on the other side from an ER-4 to an Mikrotik CHR, this might also have played a role. |
I have this problem on my laptop, seems it's fixed after restarting my router. |
Package version
1.0.20211208
Firmware version
1.10.10
Device
EdgeRouter 4 / 6P / 12 - e300
Issue description
The Primary router has two public IP's : .29 and .30. This is on purpose as we want to force the "client" routers to force wireguard traffic to IP .30 through an alternative route.
This works fine, but for some reason after some time the clients would to the "bad" ip at .29. (see below example). It appears the wireguard configuration just suddenly changes by itself to the wrong IP (which was never configured on the client router!).
I've tried disabling, commiting, and re-enabling the wg interface, but it keeps going back to the wrong IP. I even deleted, committed, and re-loaded and commited the saved (correct working) config, but it keeps going back to the wrong IP. Rebooting the router solves this, until it magically goes back to the wrong IP again...
Aside from the fact that this appears to me as a bug, this could be solved by forcing the wireguard process on the primary router to only listen on the .29 IP (not port!). But as far as I can see wg can only be configured to listen to a port and not a specific IP, which I find really strange.
Configuration and log output
The text was updated successfully, but these errors were encountered: