Can't login to Debian (OpenVZ guest) server after setting up IPTables. How to Fix it?

Posted by EApubs on Server Fault See other posts from Server Fault or by EApubs
Published on 2012-11-08T05:01:59Z Indexed on 2012/11/08 5:04 UTC
Read the original article Hit count: 230

Filed under:
|
|

I have an OpenVZ VPS server with Debian. I just setup IPTables to allow the SSH port rebooted it. (Also set the rules to auto load on startup). Now I can't login to the server! How to fix this?

Here are the rules :

    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:325 
    DROP       all  --  anywhere             anywhere            

    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         

    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination  

© Server Fault or respective owner

Related posts about debian

Related posts about iptables