Skip to content

Instantly share code, notes, and snippets.

@kzltp
Last active June 10, 2023 04:49
Show Gist options
  • Select an option

  • Save kzltp/6c7ad258d4b915f94321d4b495cb832d to your computer and use it in GitHub Desktop.

Select an option

Save kzltp/6c7ad258d4b915f94321d4b495cb832d to your computer and use it in GitHub Desktop.
docker iptables bad rule (does a matching rule exist in that chain )
WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching rule exist in that chain?).
1-) The firewalld application is updated.
yum update firewalld
2-) Firewalld rule is added.
firewall-cmd --zone=public --permanent --add-masquerade
3-) And reload firewall
firewall-cmd --complete-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment