netclient
netclient copied to clipboard
[BUG] Client v0.20.1 cannot update endpointip
Problem
The Endpoint IP for all clients were not automatically getting set and even trying to manually set them via UI wasn't working.
I recreated my entire AWS VPN bastion network using 0.20.1. My guess is based on the image above, there's an issue communicating with turn? I'm not familiar enough.
Workaround
Downgrade the client to 0.20.0 via install script and endpointip works great again.
Both netmaker and netmaker-ui can remain 0.20.1. So far haven't noticed any issues.
Expected Result
v0.20.1 works the same as v0.20.0 - endpointip is automatically updated and/or be manually updated via UI.
https://github.com/gravitl/netmaker/issues/2378 - Original issue that I opened thinking the problem was over there.
what is output of
docker inspect netmaker | grep STUN
when run on netmaker server
@mattkasun the output of that:
root@ip-172-31-50-8:/home/ubuntu# docker inspect netmaker | grep STUN
"STUN_PORT=3478",
"STUN_LIST=stun.netmaker.internal-wireguard.jenfi.com:3478,stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302",
Also related: https://github.com/gravitl/netmaker/issues/2381
I had the same issue with oracle cloud Arm Instance <-> AMD FreeTier Instance communication, but issue is on only the ARM machine. The wireguard host was visible (wg show) on the AMD machine, but not on the ARM machine. After downgrading the client to v0.20.0 as @nitsujri's solution and specifying the local IP, ping was worked.
Same issue here. Netclient v0.20.5 is not recognizing change of external IP and seems not to update the host on netmaker server. I rolled back to v0.20.4 and will observe if this issue persists. Further, I can confirm netclient v0.20.0 is syncing the IP properly.
Same issue here. Netclient v0.20.5 is not recognizing change of external IP and seems not to update the host on netmaker server. I rolled back to v0.20.4 and will observe if this issue persists. Further, I can confirm netclient v0.20.0 is syncing the IP properly.
Have you had this issue on v0.20.4 yet?
Yupp same issue on v0.20.4 and also on latest release v0.20.6 I started digging deeper and detected tons of errors "wireguard_linux.go 146" in the log.
Also I could figure out the IP update is triggered by:
- rebooting machine
- service restart
systemctl restart netclient - using
netclient pullcommand
However it is not picking up the change of IP on its own.
Any advice?
Issue of not updating external IP persists further with v0.21.0 on several machines. I am wondering if this can be caused by DNAT setup? How does netclient catches the external IP?
@mattkasun Can you give any advice?
Netclient uses stun to set the public ip
With further testing I could figure out there is something strange since v.0.20.1. Netclient v0.20.0 is the last working version (for me), recognizing and pushing external IP to Netmaker server correctly.
- Tested on
- Debian 11
- Debian 12
- Ubuntu 22.04 --> Result: OS has no influence on issue
- Tested with different DNS resolvers
- Adguard Home active
- Adguard Home inactive
- using 8.8.8.8 and 1.1.1.1 directly --> Result: DNS has no influence on issue
- Outcome of
journalctl -xe | grep netclient
-
Version v.0.20.0
-
Version v0.21.0
I am missing the "endpoint has changed" message
Want to provide an update on this topic.
Bad news is that issue still exists on version 0.21.1 The good news, it only appears on Debian distros. Ubuntu is syncing as intended now.
Update 2: Redeployed a brand new installation of netmaker server and updated all clients to v0.21.1 --> endpoint update works properly. Not sure what caused that issue when update from a previous version.
Kudos to netmaker team! Great work, I love this awesome project.