newt isnt connecting to gerbil #1713

Closed
opened 2026-04-05 19:40:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Jonnylyy13 on 3/15/2025

Hi, I am running newt in an lxc on proxmox. When trying to connect to pangolin i get 5 connection timeouts:

root@newt:~# ./newt --id ididididid --secret secretidsecretidsecretid --endpoint https://pangolin.example.com
INFO: 2025/03/15 09:48:29 Sent registration message
INFO: 2025/03/15 09:48:29 Received registration message
INFO: 2025/03/15 09:48:29 Received: {Type:newt/wg/connect Data:map[endpoint:pangolin.example.org:51820 publicKey:keykeykeykey= serverIP:100.89.128.1 targets:map[tcp:[] udp:[]] tunnelIP:100.89.128.4]}
INFO: 2025/03/15 09:48:29 WireGuard device created. Lets ping the server now...
INFO: 2025/03/15 09:48:29 Ping attempt 1 of 5
INFO: 2025/03/15 09:48:29 Pinging 100.89.128.1
WARN: 2025/03/15 09:48:39 Ping attempt 1 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/03/15 09:48:41 Ping attempt 2 of 5
INFO: 2025/03/15 09:48:41 Pinging 100.89.128.1
WARN: 2025/03/15 09:48:51 Ping attempt 2 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/03/15 09:48:53 Ping attempt 3 of 5
INFO: 2025/03/15 09:48:53 Pinging 100.89.128.1
WARN: 2025/03/15 09:49:03 Ping attempt 3 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/03/15 09:49:05 Ping attempt 4 of 5
INFO: 2025/03/15 09:49:05 Pinging 100.89.128.1
WARN: 2025/03/15 09:49:15 Ping attempt 4 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/03/15 09:49:17 Ping attempt 5 of 5
INFO: 2025/03/15 09:49:17 Pinging 100.89.128.1
WARN: 2025/03/15 09:49:27 Ping attempt 5 failed: failed to read ICMP packet: i/o timeout
ERROR: 2025/03/15 09:49:27 Failed to ping 100.89.128.1: all ping attempts failed after 5 tries, last error: failed to read ICMP packet: i/o timeout
INFO: 2025/03/15 09:49:27 Starting ping check

apparently newt is able to connect to the vps an pangolin but isn't able to connect to the gerbil wireguard container in docker. Checking the logs of gerbil gives me multiple errors where gerbil isnt able to connect to the pangolin container:

ERROR: 2025/03/13 21:20:22 Error fetching remote config http://pangolin:3001/api/v1/gerbil/get-config: Post "http://pangolin:3001/api/v1/gerbil/get-config": dial tcp 172.18.0.4:3001: connect: connection refused

I tried checking if the communication between these two containers is possible at all and i didn't encounter any
errors so I have no idea how to troubleshoot further:

for recreation:

  • Install pangolin on vps with wget script
  • Install newt in docker or lxc with given istallation scripts from the documentation
  • Try connecting, realise that port 51820 may not be open on vps try opening with ufw
  • keep getting connection errors

would be greatfull for tips

*Originally created by @Jonnylyy13 on 3/15/2025* Hi, I am running newt in an lxc on proxmox. When trying to connect to pangolin i get 5 connection timeouts: ``` root@newt:~# ./newt --id ididididid --secret secretidsecretidsecretid --endpoint https://pangolin.example.com INFO: 2025/03/15 09:48:29 Sent registration message INFO: 2025/03/15 09:48:29 Received registration message INFO: 2025/03/15 09:48:29 Received: {Type:newt/wg/connect Data:map[endpoint:pangolin.example.org:51820 publicKey:keykeykeykey= serverIP:100.89.128.1 targets:map[tcp:[] udp:[]] tunnelIP:100.89.128.4]} INFO: 2025/03/15 09:48:29 WireGuard device created. Lets ping the server now... INFO: 2025/03/15 09:48:29 Ping attempt 1 of 5 INFO: 2025/03/15 09:48:29 Pinging 100.89.128.1 WARN: 2025/03/15 09:48:39 Ping attempt 1 failed: failed to read ICMP packet: i/o timeout INFO: 2025/03/15 09:48:41 Ping attempt 2 of 5 INFO: 2025/03/15 09:48:41 Pinging 100.89.128.1 WARN: 2025/03/15 09:48:51 Ping attempt 2 failed: failed to read ICMP packet: i/o timeout INFO: 2025/03/15 09:48:53 Ping attempt 3 of 5 INFO: 2025/03/15 09:48:53 Pinging 100.89.128.1 WARN: 2025/03/15 09:49:03 Ping attempt 3 failed: failed to read ICMP packet: i/o timeout INFO: 2025/03/15 09:49:05 Ping attempt 4 of 5 INFO: 2025/03/15 09:49:05 Pinging 100.89.128.1 WARN: 2025/03/15 09:49:15 Ping attempt 4 failed: failed to read ICMP packet: i/o timeout INFO: 2025/03/15 09:49:17 Ping attempt 5 of 5 INFO: 2025/03/15 09:49:17 Pinging 100.89.128.1 WARN: 2025/03/15 09:49:27 Ping attempt 5 failed: failed to read ICMP packet: i/o timeout ERROR: 2025/03/15 09:49:27 Failed to ping 100.89.128.1: all ping attempts failed after 5 tries, last error: failed to read ICMP packet: i/o timeout INFO: 2025/03/15 09:49:27 Starting ping check ``` apparently newt is able to connect to the vps an pangolin but isn't able to connect to the gerbil wireguard container in docker. Checking the logs of gerbil gives me multiple errors where gerbil isnt able to connect to the pangolin container: ``` ERROR: 2025/03/13 21:20:22 Error fetching remote config http://pangolin:3001/api/v1/gerbil/get-config: Post "http://pangolin:3001/api/v1/gerbil/get-config": dial tcp 172.18.0.4:3001: connect: connection refused ``` I tried checking if the communication between these two containers is possible at all and i didn't encounter any errors so I have no idea how to troubleshoot further: for recreation: - Install pangolin on vps with wget script - Install newt in docker or lxc with given istallation scripts from the documentation - Try connecting, realise that port 51820 may not be open on vps try opening with ufw - keep getting connection errors would be greatfull for tips
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1713