Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CentOS 7 Firewall Setup
sudo systemctl start firewalld
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo systemctl enable firewalld
#To see any additional services that you can enable by name, type:
sudo firewall-cmd --get-services
#To list all services permanently added to firewall, type:
sudo firewall-cmd --permanent --list-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.