I am trying to block IPs that have many port 25 connections (spam)
I have the following command:
netstat -an|grep :25| awk {'print $4'} | cut -d: -f1 | sort | uniq -c | sort -n
That produces output like:
1
1 127.0.0.1
2 185.11.11.11
10 185.11.11.22
20 185.11.11.33
50 185.11.11.44
And i would like to filter only the rows where column one is bigger than 15.
Thank you