Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to resource #227

Open
L3nski opened this issue Feb 20, 2025 · 7 comments
Open

Unable to connect to resource #227

L3nski opened this issue Feb 20, 2025 · 7 comments

Comments

@L3nski
Copy link

L3nski commented 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.

Image

@Lokowitz
Copy link

Lokowitz commented Feb 20, 2025

Hey,
is port 51820/udp open in your firewall in front of pangolin installation?

@L3nski
Copy link
Author

L3nski commented Feb 20, 2025

According to the VPS yes. I have tried both in a VPS and on my local server.

@oschwartz10612
Copy link
Member

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.com
tcpdump -i any -n udp port 51820
nc -uv {vps_ip} 51820

@L3nski
Copy link
Author

L3nski commented Feb 21, 2025

Thanks all for the advise. Looks like 51820 is blocked somehow but cant find where.

@oschwartz10612
Copy link
Member

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 -L
ufw show added

@L3nski
Copy link
Author

L3nski commented 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

Image

@L3nski
Copy link
Author

L3nski commented Feb 21, 2025

Yes the port is supposed to be forwarded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants