mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 01:44:06 -05:00
Unable to connect to resource #98
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 @L3nski on GitHub (Feb 20, 2025).
I have tried multiple different hosts to install the newt agent on. I have tried my primary network as well as vlans.
@Lokowitz commented on GitHub (Feb 20, 2025):
Hey,
is port 51820/udp open in your firewall in front of pangolin installation?
@L3nski commented on GitHub (Feb 20, 2025):
According to the VPS yes. I have tried both in a VPS and on my local server.
@oschwartz10612 commented on GitHub (Feb 20, 2025):
A couple of things you could check: make sure the endpoint on the Newt logs and in the Gerbil section of the config.yml resolves to your VPS IP from your Newt location. Usually you can run nslookup to check.
Next make sure one more time nothing is blocking that port and you did allow UDP. UFW or iptables can block.
Finally if all that is good run a tcpdump on the VPS and filter for that port and see if you are getting packets. You can run newt to connect or see if you can connect with netcat
nslookup example.comtcpdump -i any -n udp port 51820nc -uv {vps_ip} 51820@L3nski commented on GitHub (Feb 21, 2025):
Thanks all for the advise. Looks like 51820 is blocked somehow but cant find where.
@oschwartz10612 commented on GitHub (Feb 21, 2025):
Hum that's odd. You could look through your VPS settings maybe in the hosting provider and also check UFW and IPTABLES rules to make sure it is not blocked.
Who is your hosting provider?
iptables -Lufw show added@L3nski commented on GitHub (Feb 21, 2025):
VPS is RackNerd. I think that it has to do with my local firewall. I'm running PFSsense. Reason I say that is that it's not working even if I run. Pangolin locally so I feel like the Newt connection is the issue which is local in both cases. VPS iptables
@L3nski commented on GitHub (Feb 21, 2025):
Yes the port is supposed to be forwarded
@smoothml commented on GitHub (Feb 27, 2025):
I'm not sure if this is helpful, but it's tangentially related. I had this issue and Newt prompted me to open port 51280 on my Pangolin server. I did this and now everything works, though as far as I can tell no traffic is actually being sent to this port. Here are the Newt logs. The
Failed to connectlogs were because I rebooted my Pangolin server.@x86txt commented on GitHub (Apr 6, 2025):
If you change the gerbil
start_portin config.yml from 51280, you have to update the port forward in the docker-compose.yml also.That's the cause of the ping failures.
I can't run any WG on port 51820, so I moved Newt to 51830 but I noticed the docker network proxy was still listening on 51820.
I made the change below and the site finally came up.
docker-compose.yml:
to
@Soitora commented on GitHub (Jul 29, 2025):
Reading this comment solved 15 hours of debugging on my Unraid system. I was never able to test the 51822 port that Gerbil had as it was busy by other services, but now that I tried it, it solved every issue I had.