I have recently started using iptables, and I executed iptables -F without knowledge of what it might do. And suddenly I have lost connection to the node. I can't even ping the node. Any help would be highly appreciated!


The iptables -F will have flushed (deleted) all of your rules, I guess your input policy is DROP so without any explicit ACCEPT rules you're locked out. Your best bet is to reboot the node and cross your fingers.


You flushed all your iptables rules, including the default ACCEPT. You'll need to either reboot the server (and hope that it loads up a proper set of rules) or get on the console and fix it from there.

  • I forgot to mention. It's a virtual node! No physical access to get the console :-( – Ashwin Sep 16 '11 at 21:34
  • A proper VPS vendor will give you console access as well. I guess you'll need to reboot and hope for the best. – EEAA Sep 16 '11 at 21:35
  • If you have a policy of accept then iptables -F doesn't lock you out - suck it and see. – user9517 supports GoFundMonica Sep 16 '11 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.