CentOS,  Linux

CentOS firewall-cmd tips

Some tips for CentOS 7 firewall-cmd tool:

 

  • Allow openvpn
firewall-cmd --zone=public --add-service openvpn --permanent
firewall-cmd reload
  • Add a rule
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd reload