If you’ve wonked your iptables…

So if you run some cryptic iptables command that’s made your computer not able to talk to the outside world what do you do? Simple. Run these:

iptables -X
iptables -F
iptables -P INPUT ACCEPT

Write it down somewhere, might come in handy.
In case you’re wondering, the first command deletes all user defined chains. The second, should delete all chains, the third through fifth, define policy to accept everything.

Disclaimer: This will reset your rules. If you know what you’re doing, its best to properly fix your problem. If you’re just trying out something you found on a forum that didn’t work, these commands may just come in handy…

This entry was posted in Open Source. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.