fedora 23 droplet refuses all connections after editing iptables

January 22, 2016 749 views
Firewall Fedora CentOS 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.