Skip to content

Instantly share code, notes, and snippets.

@pierric
Created February 15, 2018 14:41
Show Gist options
  • Save pierric/4421523762ec27a6c8f5a43c27126416 to your computer and use it in GitHub Desktop.
Save pierric/4421523762ec27a6c8f5a43c27126416 to your computer and use it in GitHub Desktop.
reset iptables' rules.
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