-
Notifications
You must be signed in to change notification settings - Fork 1
/
firewall.sh
22 lines (20 loc) · 892 Bytes
/
firewall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
useradd lynn && passwd lynn
systemclt start firewalld.service
firewall-cmd --get-active-zones
firewall-cmd --list-ports
#firewall-cmd --zone=dmz --add-service=http --permanent
#firewall-cmd --zone=dmz --add-service=https --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --zone=public --add-port=26408/tcp --permanent
firewall-cmd --zone=public --add-port=28000/tcp --permanent
firewall-cmd --zone=public --add-port=29000/tcp --permanent
firewall-cmd --zone=public --add-port=7000/tcp --permanent
firewall-cmd --zone=public --add-port=8000/tcp --permanent
firewall-cmd --zone=public --add-port=8082/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --reload
yum update -y
yum insgtall -y iptraf
iptraf-ng