Giter VIP home page Giter VIP logo

Comments (11)

mattkasun avatar mattkasun commented on August 9, 2024 1

Netclient uses stun to set the public ip

from netclient.

mattkasun avatar mattkasun commented on August 9, 2024

what is output of
docker inspect netmaker | grep STUN
when run on netmaker server

from netclient.

nitsujri avatar nitsujri commented on August 9, 2024

@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",

from netclient.

nitsujri avatar nitsujri commented on August 9, 2024

Also related: gravitl/netmaker#2381

from netclient.

miyu4u avatar miyu4u commented on August 9, 2024

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.

from netclient.

pernetz avatar pernetz commented on August 9, 2024

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.

from netclient.

senses3 avatar senses3 commented on August 9, 2024

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?

from netclient.

pernetz avatar pernetz commented on August 9, 2024

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.

image

Also I could figure out the IP update is triggered by:

  1. rebooting machine
  2. service restart systemctl restart netclient
  3. using netclient pull command

However it is not picking up the change of IP on its own.

Any advice?

from netclient.

pernetz avatar pernetz commented on August 9, 2024

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?

from netclient.

pernetz avatar pernetz commented on August 9, 2024

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.

  1. Tested on
  • Debian 11
  • Debian 12
  • Ubuntu 22.04
    --> Result: OS has no influence on issue
  1. 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
  1. Outcome of journalctl -xe | grep netclient
  • Version v.0.20.0
    image

  • Version v0.21.0
    image

I am missing the "endpoint has changed" message

from netclient.

pernetz avatar pernetz commented on August 9, 2024

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.

from netclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.