Apf & Bfd

bdk

Verified User
Joined
Feb 11, 2004
Messages
24
Advanced Policy Firewall (APF)
Brute Force Detection (BFD)

Has anyone gotten these working under Debian?

I downloaded both and tried to configure them over a period of a couple of days but to no avail.

I can see the BFD cron job runs every 10 minutes but never picks anything up.

I had to adjust the log file that it was looking for for authentication info from /var/log/secure (rh & slackware method) to /var/log/auth.log (debian). Not knowing if pattern.auth in BFD is case sensative I added 'Illegal user', but it still never picked up on anything in my auth.log.

There were other changes that I made in hopes that BFD would react to my log files. It never did.

WIth APF I was able ping flood my server and see that it was working to limit the inbound ICMP packages to 30/sec and that when I manually added myself to it's deny files it would block me. Like with BFD I couldn't get APF to generate an email or take defensive action.

The author doesn't have a timeline on a Debian port for this, but I think that with some other Debian SysAdmin's help we can get this to work.

-bdk
 
Last edited:
Here's the APF installation process for Debian:
1)wget http://www.r-fx.ca/downloads/apf-current.tar.gz
2)tar -xzf apf-current.tar.gz
3)cd apf-0.9.6-1/ (or whatever version is the current)
4)./install.sh
5)cp apf.init /etc/init.d/apf
6)update-rc.d apf defaults
Don't forget to config /etc/apf/conf.apf !
Cheers
 
Last edited:
For reference in case anyone else is looking to do this, I tried the steps as posted by payman on Debian 3.1 and all appears to be working fine. :)
 
I tried what payman said and i am still getting this error when I try and execute /etc/init.d/apf start
 
Last edited:
Hi! everyone
I have little question. how can I block ping request in firewall, which place? anyone know? I use APF firewall
 
In APF, in conf.apf, remove type 8 from the ICMP_TYPES to globally block ping.
 
Any problems with the /etc/init.d/ and /etc/rc.d/init.d/ can be solved adding a symbolic link:

Code:
#mkdir /etc/rc.d/; cd /etc/rc.d/; ln -s /etc/init.d/ init.d
 
Back
Top