From 443ecbc4d41224b37578deda150089b69b8ba84c Mon Sep 17 00:00:00 2001 From: lqs <441785369@qq.com> Date: Sat, 8 Mar 2025 18:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=201.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 1.sh diff --git a/1.sh b/1.sh new file mode 100644 index 0000000..ddb0232 --- /dev/null +++ b/1.sh @@ -0,0 +1,5 @@ +sudo ufw allow 22/tcp comment "SSH" +sudo ufw allow 80/tcp comment "HTTP" +sudo ufw allow 443/tcp comment "HTTPS" +sudo systemctl enable ufw +sudo systemctl ufw status \ No newline at end of file