I run a SFTP Server (openSSH) on a HP Microserver G7 (CentOS 8) listening on 0.0.0.0 port 22. I can access the server from other devices on the SAME network (local network), but I can't access it from another network (WLAN/internet).
So I accessed my modem/router (an ZTE H108NS) and went to Advanced Setup -> NAT -> Virtual Server and added a port forwarded service for the SFTP Server as shown in the screenshot:
I use my public IP and port 22 to my SFTP client to connect to my server but I can't. Connection is timed out.
The router's firewall is enabled, but as I know it doesn't matter when I use port forwarding. Am I right? Does SSH protocol also needs port tunneling?
Here is some of my router settings that may be useful to you:
9922
) to22
. (3) You may be behind a Carrier-Grade NAT. Read this.