- Incluir no iptables (Bloquear)
iptables -I INPUT -s 192.168.0.??? -j DROP
iptables -I OUTPUT -s 192.168.0.??? -j DROP
iptables -I FORWARD -s 192.168.0.??? -j DROP
- Consultar a linha que a regra se encontra na tabela iptables:
iptables -L INPUT -n --line-numbers |grep 192.168.0.???
iptables -L OUTPUT -n --line-numbers |grep 192.168.0.???
iptables -L FORWARD -n --line-numbers |grep 192.168.0.???
- Excluir do iptables (Desbloquear)
iptables -D INPUT 1
iptables -D OUTPUT 1
iptables -D FORWARD 1