fedora 23 droplet refuses all connections after editing iptables

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?


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.

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

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.

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

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