Saturday, June 6, 2020

allow http/https by using firewall-cmd on RHEL 7


[root@server ~]# firewall-cmd --get-active-zones
public
  interfaces: eth0




firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload

No comments:

Post a Comment