CentOS 7开放防火墙端口

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

firewall-cmd --list-all

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=80/udp --permanent
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8080/udp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=443/udp --permanent
firewall-cmd --zone=public --add-port=25960-25970/tcp --permanent
firewall-cmd --zone=public --add-port=25960-25970/udp --permanent
firewall-cmd --zone=public --add-port=32760-32770/tcp --permanent
firewall-cmd --zone=public --add-port=32760-32770/udp --permanent
firewall-cmd --zone=public --add-port=57360-57370/tcp --permanent
firewall-cmd --zone=public --add-port=57360-57370/udp --permanent
firewall-cmd --zone=public --add-port=60000-60010/tcp --permanent
firewall-cmd --zone=public --add-port=60000-60010/udp --permanent

firewall-cmd --reload