brash-table-42375
01/22/2022, 7:25 PMserver # ping -c100 10.101.0.3 | grep loss
100 packets transmitted, 100 received, 0% packet loss, time 99123ms
The connection from the normal client to the server client was not reliable.
normal # ping -c100 10.101.0.2 | grep loss
100 packets transmitted, 43 received, 57% packet loss, time 99658ms
I found that the server client was listening on port 51115
.
server # wg show nm-default | grep listening
listening port: 51115
But the port on which the normal client was was trying to contact the
server client was alternating between 51115
(the correct port) and
51821
(one of the ports dedicated to the Netmaker server). Packets
were lost unless the port was 51115
.
normal # wg show nm-default | grep 10.101.0.2 -B1 | head -n 1 ; ping -c1 10.101.0.2 | grep loss
endpoint: [SERVER IP ADDRESS]:51821
1 packets transmitted, 0 received, 100% packet loss, time 0ms
normal # wg show nm-default | grep 10.101.0.2 -B1 | head -n 1 ; ping -c1 10.101.0.2 | grep loss
endpoint: [SERVER IP ADDRESS]:51115
1 packets transmitted, 1 received, 0% packet loss, time 0ms
normal # wg show nm-default | grep 10.101.0.2 -B1 | head -n 1 ; ping -c1 10.101.0.2 | grep loss
endpoint: [SERVER IP ADDRESS]:51821
1 packets transmitted, 0 received, 100% packet loss, time 0ms
It appears that the Netmaker control program that runs on the server
has a logic error and does not consistently configure normal clients
to access the listening port of the server client.