1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| systemctl status firewalld
systemctl start firewalld
firewall-cmd --list-ports
firewall-cmd --list-ports --permanent
firewall-cmd --add-port=223/tcp
firewall-cmd --add-port=223/tcp --permanent
firewall-cmd --remove-port=80/tcp
firewll-cmd --remove-port=80/tcp --permanent
firewall-cmd --reload systemctl restart firewalld
|