Install BFD on the server

Q>Here is a guide to install BFD on the server with APF preconfigured :
Ans>Login to your server through SSH as root user.
Step 1: Preparing for Installation
———————————————
cd /usr/local/src
wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz
tar -xvzf bfd-current.tar.gz
cd bfd-0.7
———————————————
Step 2: Installation
———————————————
./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
———————————————
Step 3: Configuration
Open the configuration file in your favorite editor mine is nano .. simple n sweet..
———————————————
nano /usr/local/bfd/conf.bfd
———————————————
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
———————————————
Prevent locking yourself out!
———————————————
nano -w /usr/local/bfd/ignore.hosts and add our IP
72.36.226.130
———————————————
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.
———————————————
Step 4: Start BFD!
———————————————
/usr/local/sbin/bfd -s
———————————————

Leave a Comment