fedora 23 droplet refuses all connections after editing iptables

January 22, 2016 2.5k views
CentOS Fedora Firewall FreeBSD

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.

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!