Quantcast
Channel: MondoUnix » IPTABLES
Viewing all articles
Browse latest Browse all 15

Iptables : bloccare range di ip (drop)

$
0
0

Semplice esempio di utilizzo :

iptables -A INPUT -s 192.168.1.0/24 -j DROP
iptables -A INPUT -s 10.10.0.0/16 -j DROP
iptables -A INPUT -s 127.0.0.0/8 -j DROP

Il comando blocca i seguenti range di indirizzi ip :

192.168.1.0 - 192.168.1.255
10.10.0.0 - 10.10.255.255
127.0.0.0 - 127.255.255.255


Viewing all articles
Browse latest Browse all 15