3

I need some help troubleshooting my problem. I am trying to ssh into my pi from a non lan pc. I have port forwarded before and did not expect it to be this difficult. Here is what I have done:

1: Set up port forwarding on my router, the Asus rt-ac66u. These are the configurations: imgur link (Sorry not enough reputation here to post the picture )

2:Restarting the router.

3:Turning on ssh on the pi. I am running raspbian lite(no desktop) version 4.9. I can access the pi over ssh on lan.

4:Google searching "what is my ip" to find my ip. Use this ip and the port in step one to ssh to the pi using putty. I get a timeout error.

I posted the question here on the raspberry pi stackexchange. I was told that it could be the ISP blocking the connections. If it is the ISP how would I confirm that this is the issue and if so fix it?

5
  • 1
    I don't think it is your ISP. Have you done anything to troubleshoot your firewall rules on the pi? Maybe it only allows connections from your local network. How about tcpdump to see where the connection is breaking down? Commented Sep 30, 2017 at 15:56
  • Your ISP may be using CGNAT which is why you can't access it from outside your LAN. I had a similar problem with my port forwarding. Hope this post I've linked below helps you. Which IP address do I use to access my server?
    – Zohair
    Commented Sep 30, 2017 at 16:16
  • I have done some digging and it seems that the pi has the firewall off by default. I don't think it is CGNAT. When I google "what is my ip" it matches what is listed on my router(from reading your link that seems to be one symptom). Commented Sep 30, 2017 at 16:23
  • Can you install wireshark on sometyhing. If so then port forward to the device with wireshark and ensure you can see the packets coming in after port translation also if you can setup a SSH server confirm you can see packets going out and going back out. If the ISP is blocking , then the only way is to get them to stop or try different ports. Since essentially you are trying the second that seems unlikely
    – Ross
    Commented Dec 31, 2017 at 0:59
  • You can use a service like tunnelin.com which will forward your connection through a secure tunnel and allow you to connect (ssh, vnc, https etc.) to your device over the internet. It does not require any configuration and not depend on your (ISP) network topology.
    – simon
    Commented Jun 27, 2020 at 23:34

1 Answer 1

0

I use the web service called dataplicity is more or less easy to install and free for one device. After installing you can access to the CLI via company web or native Android or IOS applications.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .