Closed afirix closed 1 year ago
I might have gotten to the bottom of it myself. I checked the output of the call to /api/nodes/testnet1
when client nodes join the network, and the peers
attribute didn't contain an entry for 10.20.30.254 when called from 10.20.30.1. So, the client node of 10.20.30.1 never gets to know of existence of the server node of 10.20.30.254.
I tried debugging it further and it looks like the server node is getting filtered out of the list of peers here. Indeed, both nodes have the same endpoint (as they are on the same physical host), and server node's LocalAddress is not set, so the logic falls through to that continue
statement and doesn't append the server peer to the output list.
I have tried a couple things to work around:
Would be great to hear from netmaker team regarding this.
Same issue here, following!
PR #1692 fixes
I can confirm the described scenario works with 0.17.1.
What happened?
I have issues with running the Netmaker server (in a container) and a client node (on host OS) on the same machine. They don't seem to be able to ping each other, but according to documentation at the 2nd paragraph of https://docs.netmaker.org/troubleshoot.html#server it should be possible.
Some details about what I've been doing:
sudo netclient join -t <mytoken> --port 51840
. Got a new node with the IP of 10.20.30.1. Now I have two nodes deployed on the same host.sudo netclient join -t <mytoken>
on another server (sits within my LAN). Got one more node with the IP of 10.20.30.2.ping: sendmsg: Required key not available
messageping: sendto: Destination address required
messageSo, 10.20.30.1 and 10.20.30.254 cannot ping each other. Ports 51821-51830 and 51840 are both open in the iptables and VPS web console.
I tried running
sudo wg showconf nm-testnet1
on all nodes and here is what I am seeing (public IPs and private keys redacted):On 10.20.30.1:
On 10.20.30.2:
On 10.20.30.254:
What looks wrong to me is that config on 10.20.30.1 does not have a peer entry for 10.20.30.254.
What I also tried:
netclient pull
on 10.20.30.1All the problematic observations are limited to the nodes deployed on the VPS. The client node on the other server that's inside my LAN looks perfectly correct. Wondering if I misconfigured something somewhere, but I exhausted my troubleshooting options, not sure where else to look. Any help appreciated.
Version
v0.16.1
What OS are you using?
Linux
Relevant log output
No response
Contributing guidelines