Cannot ssh and others from outside LAN despite-port forwarding seems fine

Support for security such as Firewalls and securing linux
Post Reply
nizo67
Posts: 2
Joined: 2023/06/26 11:16:36

Cannot ssh and others from outside LAN despite-port forwarding seems fine

Post by nizo67 » 2023/06/26 11:33:07

Hello
Cannot ssh 22, Cockpit 9090 and webmin 1000, from outside LAN despite-port forwarding seems fine.

OS Centos 9 Stream. Connect from LAN to Server - SSH, Cockpit and Webmin is OK.
I can also connect successfully from outside to connect windows Server RDP Port and forwarding works fine.

I appreciate your help in advance.

Thanks.

benyaminl
Posts: 9
Joined: 2019/06/05 05:22:02

Re: Cannot ssh and others from outside LAN despite-port forwarding seems fine

Post by benyaminl » 2023/07/01 11:54:43

please provide the route -n output, I suspect when this happen, it could be because it has more than 1 default route.

2nd it could wrong profile for wrong interface for the firewalld (can be tested by stop the service and try connect, if it's still not working, see number one suspect)

nizo67
Posts: 2
Joined: 2023/06/26 11:16:36

Re: Cannot ssh and others from outside LAN despite-port forwarding seems fine

Post by nizo67 » 2023/07/03 09:20:07

Thanks for your help.

I have solved it. It was misconfiguration Forward IPs and Firewall Rules.

Post Reply