ufw/1.sh

5 lines
163 B
Bash
Raw Permalink Normal View History

2025-03-08 18:54:14 +08:00
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