Welcome to HighlyDriven.com!

Every business has technology requirements, and every business worries about their bottom line.  We understand.  We have developed groups of service offerings that together cover all of your business technology needs from the most routine tech support to complex CRM solutions - we have business technology covered.

We provide top notch computer consulting services including but not limited to:

  • Web Application and Site Design
  • Network Infrastructure Design, Implementation, and Maintenance
  • Web Application Programming
  • Penetration Testing
  • Computer Installation and Repair

Our service area covers all cities in the Tidewater area. This includes Williamsburg, James City County, Yorktown, Poquoson, Newport News, Hampton, Norfolk, Virginia Beach, Chesapeake, Suffolk, and Portsmouth.

Working with us is simple.  You can start by speaking with one of our business technology experts who will listen to your needs, concerns, and goals. We will offer you  technology solutions that work and are very affordable.
 
Call today 757.508.2697 
Last Updated ( Wednesday, 12 November 2008 )
 
Fedora fail2ban ssh regex

So I've been working with fail2ban recently and had the hardest time getting the sshd.conf regex to hit on the failed login attempts.  I searched and tried many different examples to no avail.

I couldn't give up though and found something very helpful, the fail2ban-regex command.  You can call the fail2ban-regex utility that will pull the failregex patterns from your conf files and evaluate them against any log file you specify.  So with Fedora I used it as such:

#>fail2ban-regex /var/log/messages /etc/fail2ban/filter.d/sshd.conf

Failregex
|- Regular expressions:
|  [1] [1] (?:Authentication failure|Failed [-/\w+]+) for .*(?: from|FROM) <HOST>
|
`- Number of matches:
   [1] 133 match(es)

I also learned a couple of more things in regards to Fedora and fail2ban, the jail.conf file has the sshd regex being evaluated against /var/log/secure, but nothing would match, ever.  So that leads me to the valid regex pattern that would react to the authentication failures against this given system.

The first thing I did was tell jail.conf that the ssh failures should be watched from /var/log/messages instead of /var/log/secure then I added this one line to my failregex code in the /etc/fail2ban/filter.d/sshd.conf :

failregex = (?:Authentication failure|Failed [-/\w+]+) for .*(?: from|FROM) <HOST>

Restarted the fail2ban service and tested a few false authentications from another host, FINALLY, success!

Hopefully this info helps someone else out there, because it had me frustrated trying to find the correct regex pattern. Enough so that I just had get over here and document it.

Last Updated ( Tuesday, 28 April 2009 )
 
Useful Cheat Sheets for Web Designers


Click for CheatsheetsCheat sheets (also known as reference cards, reference sheets, etc.) help you remember things quickly and they can also serve as some excellent wall decorations for your workspace.

Last Updated ( Sunday, 12 October 2008 )
 
Tweet from your Linux command line
Today I read a great article from Dave Taylor regarding the usage of curl and how nifty it really is.  The output of the article was a wonderful bash script that will allow you to tweet from the CLI.
Last Updated ( Sunday, 14 September 2008 )
Read more...
 
Introduction to bash Shell Scripting
Like all the shells available in Linux, the Bourne Again SHell is not only an excellent command line shell, but a scripting language in itself. Shell scripting, allows you to fully utilize the shell's abilities and to automate a lot of tasks that would otherwise require a lot of commands to perform. A lot of programs lying around your Linux box are shell scripts. If you are interested in learning how they work, or in modifying them, it is essential that you understand the bash syntax and semantics. In addition, by understanding the bash language, you will be able to write your own programs to do things exactly the way you want them done.
Last Updated ( Saturday, 02 August 2008 )
Read more...
 
<< Start < Prev 1 2 Next > End >>

Latest Blog