Thursday, March 24, 2011

IP addresses to block from /var/log/secure on Centos 5


grep "Failed password" secure | grep      invalid | awk '{print $11,$13}'
grep "Failed password" secure | grep  -v invalid | awk '{print $9,$11}'


No comments:

Post a Comment

Followers

About Me

Torrance, CA, United States