I was trying to set firewall rules to my website but I messed up with IP table rules and locked out myself. Now, I can't access to the VPS via SSH. When I try it I get that message:
ssh: connect to host [IP address] port [Port]: Connection timed out
Firstly, I have done those steps for setting the firewall rules. And after
iptables -A INPUT -j DROP I think I've blocked myself as I couldn't add any command after all.
So, what can I do for fixing this problem and add a strong firewall?
Note 1: I'm new in those stuff and trying to learn it tho, Note 2: I don't have access to instance’s management page but I can ask my friend who is hosting the website to do stuff. So priority fixation can be on SSH