CentOS 7 Firewall

Some useful commands for CentOS 7 Firewall.

Start|Stop
service firewalld start|stop

List Services
firewall-cmd --get-services

Allow a service
sudo firewall-cmd --zone=public --add-service=mysql

Was this answer helpful?

 Print this Article

Also Read

Extending LVM partitions

--------- MT 26/9/2022 Extend Virtual Disk via vCenter lvextend -r -L +25G /dev/vgdata/lvdata...

Disable iptables firewall

# service iptables save # service iptables stop # chkconfig iptables off

Add multiple IP addresses

You can assign multiple ip address range as follows to eth0: vi...