commit 443ecbc4d41224b37578deda150089b69b8ba84c Author: lqs <441785369@qq.com> Date: Sat Mar 8 18:54:14 2025 +0800 添加 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