Question

fedora 23 droplet refuses all connections after editing iptables

Posted January 22, 2016 2.6k views
CentOSFedoraFirewallFreeBSD

i edited the iptables file on my fedora 23 droplet and i can’t ssh into it any way except through the web application. i assume i did something wrong. how can i restore the default configuration to my firewall and to iptables?

1 comment
  • I recommend first saving your current iptables and examining the output to the following:

    iptables-save > somefilesomewhere
    

    Look for what could possibly have gone wrong. One way I would do it is to start up a brand new fedora 23 install (you pay by the hour, but it’s a quick a relatively cheap way to compare configurations) and save its iptables, then compare with your broken system. Some things may not be equivalent, so copying and using ‘iptables-restore’ blindly from the fresh droplet could make it worse.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

For future reference and just in case you didn’t see this yet, a script to flush your iptables

thanks for the response. i created a new droplet and ended up not using it so i am back to ubuntu. i appreciate the help

Submit an Answer