Cerca nel blog

mercoledì 6 aprile 2016

Comandi Iptables

iptables -A INPUT -s x.x.x.x/32 -j DROP




#BLOCCA L'IP x.x.x.x
iptables -A INPUT -s x.x.x.x/32 -j DROP

#ELENCA LE REGOLE
iptables -L INPUT -n --line-numbers

#CANCELLA LA RIGA 7 RECUPERATA CON IL COMANDO QUI SOPRA
iptables -D INPUT 7

#SALVA LA CONFIGURAZIONE IN CASO DI REBOOT
service iptables save

Nessun commento:

Posta un commento