De link :
% bl0ck_qu0te% Ao trabalhar com ufw
, você deve fornecer um conjunto muito específico de regras que você gostaria de usar. Pode ser necessário adicionar especificamente os detalhes da conexão que você deseja usar.
Parece que você terá que escolher entre ajustar o perfil ufw
ou configurar manualmente as regras.
Supondo que tudo o que você quer fazer é bloquear as conexões de entrada de (1) 69.xxx.xxx.91 e (2) < em> 91.xxx.0.0 / 16 Sugiro que largue o uso de ufw
e utilize iptables
.
O bloqueio do tráfego da maneira mais simples em iptables
é feito por variações do seguinte comando:
sudo iptables -A INPUT -j DROP
Mais informações podem ser encontradas aqui: Como fazer o Ubuntu IPtables e aqui: Exibir exemplos de tabelas