Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Verificar si UFW está instalado
- if ! command -v ufw &> /dev/null; then
- echo "Instalando UFW..."
- sudo apt-get update
- sudo apt-get install -y ufw
- fi
- # Habilitar UFW
- sudo ufw enable
- # Abrir puertos
- echo "Abriendo puertos 8091, 53, 1080, 8080 y 443..."
- sudo ufw allow 8091
- sudo ufw allow 53
- sudo ufw allow 1080
- sudo ufw allow 8080
- sudo ufw allow 443
- # Mostrar el estado de UFW
- sudo ufw status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement