Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-07, 13:51
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default How to install BFD (Brute Force Detection)

What is BFD (Brute Force Detection)?
BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans. BFD is available at: http://www.rfxnetworks.com/bfd.php

This guide will show you how to install and configure BFD to protect your system from brute force hack attempts.

Requirements:
- You MUST have APF Firewall Installed before installing BFD - it works with APF and requires some APF files to operate.
- Root SSH access to your server

Updated: April 13, 2005

Lets begin!
Login to your server through SSH and su to the root user.

1. cd /root/downloads or another temporary folder where you store your files.

2. wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz

3. tar -xvzf bfd-current.tar.gz

4. cd bfd-0.7

5. Run the install file: ./install.sh
You will receive a message saying it has been installed

.: BFD installed
Install path: /usr/local/bfd
Config path: /usr/local/bfd/conf.bfd
Executable path: /usr/local/sbin/bfd

6. Lets edit the configuration file: pico /usr/local/bfd/conf.bfd

7. Enable brute force hack attempt alerts:
Find: ALERT_USR="0" CHANGE TO: ALERT_USR="1"

Find: EMAIL_USR="root" CHANGE TO: EMAIL_USR="your@yourdomain.com"

Save the changes: Ctrl+X then Y

8. Prevent locking yourself out!
pico -w /usr/local/bfd/ignore.hosts and add your own trusted IPs
Eg: 192.168.1.1

Save the changes: Ctrl+X then Y

BFD uses APF' cli insert feature
and as such will override any allow_hosts.rules entries users have in-place.
So be sure to add your trusted ip addresses to the ignore file to prevent
locking yourself out.

9. Run the program!
/usr/local/sbin/bfd -s

10. Customize your applicatoins brute force configuration
Check out the rules directory in your /usr/local/bfd

Here you'll find all kinds of pre-made rules for popular services such as Apache, and ProFTPD w00t!
If you have any clue about shell scripting you can customize them or create new rules for enhanced brute force detection and prevent attacks.

Thanks to RFX Networks for creating another great script for the community, Brute Force Detection is excellent!
__________________
insert sig here
Reply With Quote
  #2 (permalink)  
Old 11-23-07, 07:43
BOD Member
 
Join Date: Oct 2007
Posts: 24
Default

Is this compatible with ISP Config.

As I am new to linux and servers and I do not want to destroy my current setup but this sounds like a very good idea security wise.

Ben.jones
Reply With Quote
  #3 (permalink)  
Old 11-23-07, 11:35
BOD Member
 
Join Date: Jul 2007
Posts: 296
Default

ummm hmm im not sure i think it is wait for linux_tech to reply he should know
__________________
insert sig here
Reply With Quote
  #4 (permalink)  
Old 11-24-07, 07:06
BOD Member
 
Join Date: Oct 2007
Posts: 34
Default

Quote:
Originally Posted by Ben.jones View Post
Is this compatible with ISP Config.

As I am new to linux and servers and I do not want to destroy my current setup but this sounds like a very good idea security wise.

Ben.jones
No BFD is useful only for linux server hosting, it can't be used for ISP Config.

Glenn...
Reply With Quote
  #5 (permalink)  
Old 11-24-07, 09:44
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default

Well to be honest, APF and BDF normally are separate from ISP config. The best part is you can install it even having any hassles with breaking into IPFC.

Make sure the firewall is opt in ISPC control panel prior to the installation. Go through the instructions first prior to any experiments on the server if you are completely new to it.

Having Great experience in the field :D

Always read before you attempt.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 03:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.