Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    176

    Default BFD without APF?

    I'm using a Virtuozzo VPS which appears to be unable to run APF. Does anyone know if BFD will work without APF? I know that on my old system with both installed, BFD used APF to ban the IP's from attacks. My host installed a firewall script but even if I find out how to ad IP's to it, does anyone have experience altering that behavior with BFD? I would greatly appreciate any feedback. I've posted on rfxnetworks.com but it's pretty quite over there.

    Failing anything else, are there any decent replacements available for BFD? Thanks!

    David

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    529

    Default

    BFD would be useless without APF to actually block the 'bad' ips. It is just a shell script though, so if you know or can learn the scripting language, it shouldn't be too difficult to modify how it adds the ip to the apf firewall, so you should be able to get it to work with your firewall, if your firewall supports adding ips to block in the same way that APF/iptables works.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Actually, it's very simple to configure BFD without APF (I do it for people with vps's all the time). You just need to modify /usr/local/bfd/conf.bfd and set BCMD to something that your server can deal with:

    1. Stick the IP address in /etc/hosts.deny using the example command:

    BCMD="echo ALL:$ATT_HOST >> /etc/hosts.deny"

    2. Stick it directly into iptables (but will be lost on reboot):

    BCMD="iptables -I INPUT -p tcp -s $ATT_HOST -j DROP"
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    529

    Default

    Neat... that seems pretty handy... I hadn't taken a close look at BFD in a while and forgot that it had the block command in the config file so it wasn't necessary to modify the script itself.

  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    176

    Default

    I should be able to handle that. Since I assume the BFD/APF combination blocks them permanently, I will use solution #1 to do the same. Thanks!

    David

  6. #6
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Does anybody know of a good firewall to use with VPS servers? Or DavidR, would your host object to you sharing the script they used?

  7. #7
    Member
    Join Date
    Feb 2003
    Posts
    176

    Default

    If you are using a UML (User Mode Linux) based VPS, you can install APF and set the "MONOKERN=1" in it's config. If using Virtuozzo, APF doesn't work. I will ask my host if there is any problem posting theirs for Virtuozzo VPS.

    David

  8. #8
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    The two I have are virtuozzo.

Similar Threads & Tags
Similar threads

  1. APF and BFD Install
    By niatech in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-02-2005, 11:48 AM
  2. APF and BFD issues...
    By olivier222333 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-28-2005, 12:10 PM
  3. APF+BFD+2.6.10 Kernel
    By anup123 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-31-2005, 11:39 PM
  4. APF & BFD
    By Chris Imrie in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-05-2004, 08:30 PM
  5. BFD and APF
    By circlec in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 09-02-2004, 06:35 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube