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.