Centos 7 tat mo port web FirewallD
Mo port:
sudo firewall-cmd –permanent –zone=public –add-service=http
sudo firewall-cmd –permanent –zone=public –add-service=https
firewall-cmd --zone=public --permanent --add-port=25565/tcp
firewall-cmd –reload
Tat port:
sudo firewall-cmd –permanent –zone=public –remove-service=http
Kiem tra port dang mo:
firewall-cmd –list-all