Firewalld is blocking my ip from accessing to ssh

Viewed 14

I'm using Rocky Linux 8. I can't login anymore to ssh port 22. After waiting a while I get: "Network Error: Connection Timed Out".

I can connect with a VPN though. I can also connect when I disabled FirewallD without VPN.

I don't have fail2ban or iptables activated.

I couldn't find my ip in this command:

firewall-cmd --list-all-zones

I tried this command also but without success:

firewall-cmd --direct --add-rule ipv4 filter INPUT 1 -m tcp --source myip -p tcp --dport 22 -j ACCEPT

Thanks for your help.

0 Answers
Related