All pastes #373819 Raw Edit

Mine

public text v1 · immutable
#373819 ·published 2007-02-27 01:00 UTC
rendered paste body
#!/bin/bash

nets2block="
62.75.128.0/17
62.146.0.0/16
80.64.128.0/20
80.237.128.0/24
81.2.128.0/18
83.216.192.0/19
85.25.0.0/16
85.14.192.0/18
85.214.0.0/15
80.190.0.0/16
81.169.128.0/18
145.18.0.0/16
192.67.198.0/24
212.112.224.0/19
212.123.96.0/19
212.227.0.0/16
213.158.96.0/19
213.202.192.0/18
213.223.12.0/24
217.172.160.0/19
217.196.64.0/19"


iptables -F
iptables -X

for net in $nets2block ; do
        iptables -A INPUT -p all -s $net -j REJECT
	iptables -A OUTPUT -p all -d $net -j REJECT
done