lawrence
asked Sep 26 2017
Answer
use below command
Block the port in firewall
firewall-cmd --permanent --add-rich-rule 'rule family=ipv4 source address=ipaddress port port=80 protocol=tcp reject'
firewall-cmd --reload
Open the port in firewall
firewall-cmd --permanent --remove-rich-rule 'rule family=ipv4 source address=ipaddress port port=80 protocol=tcp reject'
firewall-cmd --reload
arunkumarak
asked Dec 03 2017
edited Oct 05 2018
How to block/open http port in firewalld commands
hello .., in centos 7 out block incoming and out going http/https access via firewalld command.