I have a new installation of DirectAdmin & CFS on a Centos VPS. At the moment my web design clients' sites still reside on a re-seller server elsewhere, whilst I am learning to make the the VPS system more secure. (may take some time, LOL)
I have had 115 hack attempts from a particular IP which show up on the Brute Force Monitor. I am trying to get these logs and use grep to output lines with the offending IP address to a file, as requested by the network admin where the IP resides. So far, I have looked at the logs...
/usr/local/directadmin/data/admin/brute_log_entries.list
However, the logs have characters in-between the numbers of the IP addresses, like % which makes using the following command ineffective, as the resultant text file is empty:-
grep {IPAddress} /usr/local/directadmin/data/admin/brute_log_entries.list >> hackattempt.txt
Is there a way to get an output as seen in the Brute Force Monitor without all these additional characters?
In addition, how can I get the server to ban the IP earlier than the 115 attempts? Does this have to be done with IP tables, or can CFS be used more easily?
PS - Hope I have posted in the right place.
themadguru
I have had 115 hack attempts from a particular IP which show up on the Brute Force Monitor. I am trying to get these logs and use grep to output lines with the offending IP address to a file, as requested by the network admin where the IP resides. So far, I have looked at the logs...
/usr/local/directadmin/data/admin/brute_log_entries.list
However, the logs have characters in-between the numbers of the IP addresses, like % which makes using the following command ineffective, as the resultant text file is empty:-
grep {IPAddress} /usr/local/directadmin/data/admin/brute_log_entries.list >> hackattempt.txt
Is there a way to get an output as seen in the Brute Force Monitor without all these additional characters?
In addition, how can I get the server to ban the IP earlier than the 115 attempts? Does this have to be done with IP tables, or can CFS be used more easily?
PS - Hope I have posted in the right place.
themadguru