I run CentOS 7 on a HP ProLiant MicroServer.
Using my internal IP works fine, but using my public IP doesn't work. I use FileZilla client and get:
"Connection timed out after 20 seconds of inactivity"
I port forwarded a port on my router to port 22 where my server listens.
I even asked my ISP to disable CGN from my internet connection.
This is what service sshd status gives:
Code: Select all
Feb 14 13:25:39 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...
Feb 14 13:25:39 localhost.localdomain sshd[949]: Server listening on 0.0.0.0 port 22.
Feb 14 13:25:39 localhost.localdomain sshd[949]: Server listening on :: port 22.
Feb 14 13:25:39 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
And that's the list of my firewall's rules:
Code: Select all
external (active)
target: default
icmp-block-inversion: no
interfaces: enp2s0
sources:
services: ssh
ports: 22/tcp
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules: