ufw/1.sh
2025-03-08 18:54:14 +08:00

5 lines
163 B
Bash

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