Skip to content

Commit 57b60c1

Browse files
. Block all incoming traffic but
1 parent 688f1cc commit 57b60c1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
echo -e "Updating\n"
2+
3+
sudo apt-get update
4+
5+
echo -e "Installing UFW\n"
6+
7+
sudo apt-get install -y ufw
8+
9+
echo -e "configuring UFW...\n"
10+
11+
# Allow Outgoing and Deny Incoming
12+
sudo ufw default deny incoming
13+
sudo ufw default allow outgoing
14+
15+
# Allow ports
16+
sudo ufw allow 22
17+
sudo ufw allow 80
18+
sudo ufw allow 443
19+
20+
# Enable Fire Wall
21+
sudo ufw enable
22+
23+
echo -e "Process Completed.\n"

0 commit comments

Comments
 (0)