🔥Como verificar e reiniciar o Firewall (UFW) no Linux
1. Verificar se o UFW está ativo
sudo ufw statusStatus: active2. Verificar regras configuradas
sudo ufw status numberedStatus: active
[1] 22/tcp ALLOW IN Anywhere
[2] 80/tcp ALLOW IN Anywhere
[3] 443/tcp ALLOW IN Anywhere3. Verificar informações detalhadas
4. Reiniciar o Firewall
Método 1 (Recomendado)
Método 2
5. Iniciar o Firewall
6. Desativar o Firewall
7. Verificar se o serviço está funcionando
8. Iniciar o serviço manualmente
9. Parar o serviço
10. Configurar inicialização automática
11. Verificar quais portas estão em uso
12. Verificar portas específicas
Porta
Utilização
Dicas para solução de problemas
Atualizado