Hi I have looked all over the internet but could not find a solution. I am not saying that I didn't find anything, I am saying that I tried so many things and nothing worked. So hopefully someone can help.
I have a FreeNAS set up at my home and I can SSH into it with my local ip address. I have a smart linksys router and when I try to connect to the home server with my public IP I get connection timed out.
debug1: Connecting to <My Public IP> [<My Public IP>] port 22.
If you want me to include anything else let me know.
I have port forwarding setup. Here is a image of what my single port forwarding looks like.
I came across that while reading about this problem on the internet. I looked at my NAS firewall. Tried to stop it with /etc/rc.d/ipfw stop and it said that firewall_enable="NO". I set it to "YES" and then I ran the stop command again. Then I tested the SSH with my public ip and still got connection timed out. Then I turned off my linksys and freenas firewall. Still connection timed out. So I am not sure what I am doing incorrectly. So would it be possible to give me a step by step on how to turn off both firewalls correctly.
I have put the linksys firewall settings back since I it was not working correctly.
It may be that a firewall is blocking SSH access to your NAS from external IP addresses, while allowing access from a private IP in the LAN. Check your firewall config (if any) on the NAS and the router.
The used public ip has to be purchase one and should get it from your local ISP. If that so, i think there should not be a problem you to ssh over that public ip address. Is this the case.?
"What is my ip" will of course give you a public ip, but note that it is dynamic and not persist to you all the time. OK, let assume what you get by typing "what is my ip" is persist for the time being, however, I have experienced that there are some ISPs will not add routes to those dynamic public ips within the Internet domain. So, this might be the case for you.
Even if your local ISP allow access to those dynamic public ips, there are further at least two steps you need to set up on your local router.
excluding NAT for a specific local ip. What i mean by local ip is the ip address that you assigned to your local server. This is about making sure your local router will not do any IP/port translation when it forwards traffic.
Not the answer you're looking for? Browse other questions tagged linux ssh freenas or ask your own question.
Linux ssh (bug/broken) still working even when the service is stopped on linux ubuntu?