Skip to content

Instantly share code, notes, and snippets.

@iain17
Created August 7, 2017 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iain17/e77c6c2d8421f51dcef6b4d1562f224f to your computer and use it in GitHub Desktop.
Save iain17/e77c6c2d8421f51dcef6b4d1562f224f to your computer and use it in GitHub Desktop.
centos iptables keeps resetting

FirewallD is frontend controller for iptables used to implement persistent network traffic rules. It provides command line and graphical interfaces and is available in the repositories of most Linux distributions. Working with FirewallD has two main differences compared to directly controlling iptables:

FirewallD uses zones and services instead of chain and rules. It manages rulesets dynamically, allowing updates without breaking existing sessions and connections.

If you are like me, this stupid preinstalled service might be blocking you. Stop and disable it by doing:

sudo systemctl stop firewalld
sudo systemctl disable firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment