-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpf.sh
26 lines (25 loc) · 1.01 KB
/
pf.sh
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
systemctl unmask firewalld
systemctl enable firewalld
systemctl restart firewalld
systemctl status firewalld
firewall-cmd --list-all
firewall-cmd --zone=public --permanent --add-port=10-9999/udp
firewall-cmd --zone=public --permanent --add-port=10-9999/tcp
firewall-cmd --reload
firewall-cmd --list-all
systemctl stop firewalld
systemctl mask firewalld
firewall-cmd --list-all
mkdir /etc/pf
curl -o /etc/pf/pf-linux-amd64 -L https://github.com/rezabagh/reza/raw/master/pf-linux-amd64
curl -o /etc/systemd/system/pf.service -L https://raw.githubusercontent.com/rezabagh/reza/master/pf.service
curl -o /etc/pf/add.sh -L https://raw.githubusercontent.com/rezabagh/reza/master/add.sh
curl -o /etc/pf/add.json -L https://raw.githubusercontent.com/rezabagh/reza/master/add.json
curl -o /etc/pf/rules.json -L https://raw.githubusercontent.com/rezabagh/reza/master/rules.json
chmod 777 -R /etc/pf
systemctl daemon-reload
systemctl enable pf.service
sleep 3
bash /etc/pf/add.sh
systemctl restart pf.service
systemctl status pf.service -l