Created
February 15, 2018 14:41
-
-
Save pierric/4421523762ec27a6c8f5a43c27126416 to your computer and use it in GitHub Desktop.
reset iptables' rules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables --policy INPUT ACCEPT; | |
iptables --policy OUTPUT ACCEPT; | |
iptables --policy FORWARD ACCEPT; | |
iptables -Z; # zero counters | |
iptables -F; # flush (delete) rules | |
iptables -X; # delete all extra chains | |
systemctl restart docker; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment