Page 1 of 1

ip ranges

Posted: 27 Dec 2014, 10:05
by ajbird
HI there

I am trying to block

202.46.0.0. - 202.46.255.255

with

csf -d 202.46.0.0/16

However, my client is still complaining that these IP are trawling the site and I can still see them attached to the server

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
1 122.225.109.220
1 202.46.49.101
1 202.46.50.128

any ideas what I am doing wrong?

Re: ip ranges

Posted: 27 Dec 2014, 18:12
by sawbuck
Seems the range you need is more like 202.46.0.0 - 202.46.15.255 which would translate to 202.46.0.0/20.

Other option would be to block 202. completely: 202.0.0.0/8

Re: ip ranges

Posted: 28 Dec 2014, 10:46
by ajbird
many thanks.. worked a treat