mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 00:22:42 -05:00
[GH-ISSUE #766] cant connect newt site to pangolin #1617
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flowy0 on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/766
I am unable to connect a newt site to pangolin.
Deployed Pangolin on VPS
Installed Newt via docker compose on NAS(Portainer)
It seems like it's unable to reach the tunnel IP.
Edit: I was able to connect a separate VM running on a proxomox server (same network)
Errors
@samumatic commented on GitHub (May 22, 2025):
Can you show your compose.yaml of Newt and an nmap scan of the VPS?
@flowy0 commented on GitHub (May 23, 2025):
compose
nmap
Is this what you meant?
@flowy0 commented on GitHub (May 23, 2025):
Sorry, i fixed this by restarting and editing my cloudflare api permissions, not sure if it was the issue though
@RichyHBM commented on GitHub (May 23, 2025):
I seem to be hitting the same issue, from what I can tell this seems to have appeared after moving my pangolin setup from one vps to a new one, as far as I can tell I correctly updated all the IPs and DNS entries
@RichyHBM commented on GitHub (May 23, 2025):
@flowy0 Don't know if you could reopen the issue?
@flowy0 commented on GitHub (May 27, 2025):
reopened
@RichyHBM commented on GitHub (May 27, 2025):
Really sorry, this seems to be issue #776, so this one can be closed again
@github-actions[bot] commented on GitHub (Jun 11, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@Craig-G-NZ commented on GitHub (Jun 14, 2025):
Hi there, I'm new to Pangolin, i setup a vps with cloudserver, setup firewall to allow 80, 443,and 51820, but also having this ping issue.
INFO: 2025/06/14 09:29:13 Newt version 1.2.1
INFO: 2025/06/14 09:29:14 Sent registration message
INFO: 2025/06/14 09:29:14 Received registration message
INFO: 2025/06/14 09:29:14 Received: {Type:newt/wg/connect Data:map[endpoint:pangolin.mydomain.com:51820 publicKey:public_key_here= serverIP:100.89.128.1 targets:map[tcp:[] udp:[]] tunnelIP:100.89.128.4]}
INFO: 2025/06/14 09:29:14 WireGuard device created. Lets ping the server now...
INFO: 2025/06/14 09:29:14 Ping attempt 1
INFO: 2025/06/14 09:29:14 Pinging 100.89.128.1
WARN: 2025/06/14 09:29:24 Ping attempt 1 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:29:24 Starting ping check
INFO: 2025/06/14 09:29:24 Ping attempt 2
INFO: 2025/06/14 09:29:24 Pinging 100.89.128.1
WARN: 2025/06/14 09:29:34 Ping attempt 2 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:29:36 Ping attempt 3
INFO: 2025/06/14 09:29:36 Pinging 100.89.128.1
WARN: 2025/06/14 09:29:46 Ping attempt 3 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:29:48 Ping attempt 4
INFO: 2025/06/14 09:29:48 Pinging 100.89.128.1
INFO: 2025/06/14 09:29:54 Pinging 100.89.128.1
WARN: 2025/06/14 09:29:58 Ping attempt 4 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:30:00 Ping attempt 5
INFO: 2025/06/14 09:30:00 Pinging 100.89.128.1
WARN: 2025/06/14 09:30:04 Connection to server lost. Continuous reconnection attempts will be made.
WARN: 2025/06/14 09:30:04 Please check your internet connection and ensure the Pangolin server is online.
WARN: 2025/06/14 09:30:04 Newt will continue reconnection attempts automatically when connectivity is restored.
WARN: 2025/06/14 09:30:10 Ping attempt 5 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:30:10 Increasing ping retry delay to 3s
INFO: 2025/06/14 09:30:13 Ping attempt 6
INFO: 2025/06/14 09:30:13 Pinging 100.89.128.1
WARN: 2025/06/14 09:30:23 Ping attempt 6 failed: failed to read ICMP packet: i/o timeout
INFO: 2025/06/14 09:30:24 Pinging 100.89.128.1
INFO: 2025/06/14 09:30:26 Ping attempt 7
INFO: 2025/06/14 09:30:26 Pinging 100.89.128.1
gerbil says i have a connection
INFO: 2025/06/14 09:14:29 Fetching remote config from http://pangolin:3001/api/v1/gerbil/get-config
INFO: 2025/06/14 09:14:29 Created WireGuard interface wg0
INFO: 2025/06/14 09:14:29 Assigned IP address 100.89.128.1/24 to interface wg0
INFO: 2025/06/14 09:14:29 Attempting to delete existing MSS clamping rule for chain INPUT
INFO: 2025/06/14 09:14:29 Attempting to delete existing MSS clamping rule for chain OUTPUT
INFO: 2025/06/14 09:14:29 Attempting to delete existing MSS clamping rule for chain FORWARD
INFO: 2025/06/14 09:14:29 Adding MSS clamping rule for chain INPUT
INFO: 2025/06/14 09:14:29 Successfully added and verified MSS clamping rule for chain INPUT
INFO: 2025/06/14 09:14:29 Adding MSS clamping rule for chain OUTPUT
INFO: 2025/06/14 09:14:29 Successfully added and verified MSS clamping rule for chain OUTPUT
INFO: 2025/06/14 09:14:29 Adding MSS clamping rule for chain FORWARD
INFO: 2025/06/14 09:14:29 Successfully added and verified MSS clamping rule for chain FORWARD
INFO: 2025/06/14 09:14:29 WireGuard interface wg0 created and configured
INFO: 2025/06/14 09:14:29 Peer redacted= added successfully
INFO: 2025/06/14 09:14:29 Starting server on :3003
INFO: 2025/06/14 09:14:39 Peer redacted= added successfully
INFO: 2025/06/14 09:15:41 Peer redacted= removed successfully
INFO: 2025/06/14 09:15:41 Peer redacted= added successfully
INFO: 2025/06/14 09:18:08 Peer redacted= removed successfully
INFO: 2025/06/14 09:18:08 Peer redacted= added successfully
INFO: 2025/06/14 09:29:14 Peer redacted= removed successfully
INFO: 2025/06/14 09:29:14 Peer redacted= added successfully
heres the commands im running for the firewall enable
sudo ufw --force reset
sudo ufw default allow outgoing
sudo ufw allow from ip_ip_address_here to any port 22
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 51820/udp
sudo ufw enable
sudo ufw status verbose
@Craig-G-NZ commented on GitHub (Jun 14, 2025):
I've just noticed that if I turn off the Cloudflare proxy to the Pangolin DNS entry the ping works ok, is this required or have I missed a step?
INFO: 2025/06/14 09:40:11 WireGuard device created. Lets ping the server now...
INFO: 2025/06/14 09:40:11 Ping attempt 1
INFO: 2025/06/14 09:40:11 Pinging 100.89.128.1
INFO: 2025/06/14 09:40:11 Ping latency: 299.905971ms
INFO: 2025/06/14 09:40:11 Starting ping check
INFO: 2025/06/14 09:40:41 Pinging 100.89.128.1
INFO: 2025/06/14 09:40:41 Ping latency: 147.0694ms
INFO: 2025/06/14 09:41:11 Pinging 100.89.128.1
INFO: 2025/06/14 09:41:11 Ping latency: 147.198775ms
INFO: 2025/06/14 09:41:41 Pinging 100.89.128.1
INFO: 2025/06/14 09:41:41 Ping latency: 147.035224ms
INFO: 2025/06/14 09:42:11 Pinging 100.89.128.1
INFO: 2025/06/14 09:42:11 Ping latency: 149.45041ms
INFO: 2025/06/14 09:42:41 Pinging 100.89.128.1
INFO: 2025/06/14 09:42:41 Ping latency: 147.757209ms
@oschwartz10612 commented on GitHub (Jun 16, 2025):
@Craig-G-NZ yes you need to have CF proxy off because it obscures the IP of the VPS and WG traffic cant get through. If you need to use CF proxy you can set the base_endpoint section of the gerbil config file to have the IP of the VPS and it should work for you.