dry-gold-67311
10/24/2022, 6:16 PMdry-gold-67311
10/24/2022, 6:16 PMsudo netclient join -t <mytoken> --port 51840 on the same VPS. Got a new node with the IP of 10.20.30.1. Now I have two nodes deployed on the same host.
4. Ran sudo netclient join -t <mytoken> on another server (sits within my LAN). Got one more node with the IP of 10.20.30.2.
5. Now, trying to validate connectivity in the mesh with pings in all possible directions. Here's what I am getting:
* From 10.20.30.1:
* ping to 10.20.30.2 succeeds
* ping to 10.20.30.254 fails with ping: sendmsg: Required key not available message
* From 10.20.30.2:
* pings to both 10.20.30.1 and 10.20.30.254 succeed
* From 10.20.30.254:
* ping to 10.20.30.1 fails with ping: sendto: Destination address required message
* ping to 10.20.30.2 succeeds
So, 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.dry-gold-67311
10/24/2022, 6:16 PMsudo 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:
[Interface]
ListenPort = 51840
PrivateKey = <redacted>
[Peer]
PublicKey = I9zImybbBw9TyHQy92ePYMwoYNPtstFbI1xKICMG0iI=
AllowedIPs = 10.20.30.2/32
Endpoint = XXX.YYY.ZZZ.74:54206
PersistentKeepalive = 20
On 10.20.30.2:
[Interface]
ListenPort = 54206
PrivateKey = <redacted>
[Peer]
PublicKey = 0wuGST3vFYBR9z4xTCIf4q2xmLJDU5Ee1WboEQ0dx3U=
AllowedIPs = 10.20.30.254/32
Endpoint = AAA.BBB.CCC.208:51821
PersistentKeepalive = 20
[Peer]
PublicKey = QQiiv2TtBvRv6vvv8yLzl3oJJVnIqrQwm9+umptYJzE=
AllowedIPs = 10.20.30.1/32
Endpoint = AAA.BBB.CCC.208:51840
PersistentKeepalive = 20
On 10.20.30.254:
[Interface]
ListenPort = 51821
PrivateKey = <redacted>
[Peer]
PublicKey = I9zImybbBw9TyHQy92ePYMwoYNPtstFbI1xKICMG0iI=
AllowedIPs = 10.20.30.2/32
Endpoint = XXX.YYY.ZZZ.74:54206
PersistentKeepalive = 20
[Peer]
PublicKey = QQiiv2TtBvRv6vvv8yLzl3oJJVnIqrQwm9+umptYJzE=
AllowedIPs = 10.20.30.1/32
PersistentKeepalive = 20
What looks wrong to me is that config on 10.20.30.1 does not have a peer entry for 10.20.30.254. Also, config on 10.20.30.254 has the peer entry for 10.20.30.1, but it is missing the Endpoint attribute.
All the problematic observations are limited to the nodes deployed on the VPS. The client node on the server inside my LAN looks perfectly correct. Wondering if I misconfigured something somewhere. Any help appreciated.bored-island-21407
10/24/2022, 6:20 PMbored-island-21407
10/24/2022, 6:21 PMnetclient pull on node with ip 10.20.30.1bored-island-21407
10/24/2022, 6:24 PMWhat looks wrong to me is that config on 10.20.30.1 does not have a peer entry for 10.20.30.254. Also, config on 10.20.30.254 has the peer entry for 10.20.30.1, but it is missing the Endpoint attribute.
the pull should cure the problem on 10.20.30.1...... the reason why 10.20.30.254 does not have an endpoint for x.x.x.1 is because x.x.x.1 has to initiate comms with the server before the endpoint is populated (but x.x.x.1 cannot initiate comms as it does not have the server node as a peer ----- a pull command (or waiting 5 minutes for a periodic peer update) should fix everythingdry-gold-67311
10/24/2022, 6:36 PMbored-island-21407
10/24/2022, 6:40 PMbored-island-21407
10/24/2022, 6:40 PMdry-gold-67311
10/24/2022, 6:41 PMdry-gold-67311
10/24/2022, 6:42 PMbored-island-21407
10/24/2022, 6:43 PMbored-island-21407
10/24/2022, 6:43 PMdry-gold-67311
10/24/2022, 6:46 PMdry-gold-67311
10/24/2022, 6:47 PMbored-island-21407
10/24/2022, 6:50 PMwget https://github.com/gravitl/netmaker/releases/download/v0.16.2/netclient -O /tmp/netclient
sudo chmod +x /tmp/netclient
sudo /tmp/netclient install -vvvvdry-gold-67311
10/24/2022, 7:00 PMdry-gold-67311
10/24/2022, 7:01 PMbored-island-21407
10/24/2022, 7:01 PMbored-island-21407
10/25/2022, 8:33 PMwonderful-autumn-13904
04/26/2023, 1:28 PMbored-island-21407
04/26/2023, 1:31 PM