Re: ssh connection timeout issue
I am not too experienced in this, but it looks to me like you locked yourself out. Do you have a file that is loading these rules on every boot? If not, restarting the VPS might let you in again.
You didn't allow port 22 for SSH (or another port if you plan to change it) in the rules. So, it is blocking you too.
Also, the last three rules are sort of redundant. Usually you would set that with the general policy (first three lines), and not adding a rule at the end to drop packets. Something like:
*filter
:INPUT DROP
:FORWARD DROP
:OUTPUT ACCEPT
Then all the packets that are not accepted with one of the -A rules, will get dropped in the input and forward chains without having the drop commands at the end. Because the policy is set to drop.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks