Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default bfd-0.6

    BFD-0.6 has rules for exim and pure-ftpd
    Does this mean that Dictionary Attack ACL can be removed from Exim?

    Anup

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    76

    Default

    well it looks like BFD does only a basic check for dictionary attacks. and it gives them 20 chances by default. far too many IMO. but I understand why it is set so high, and in the end it's probably a good thing for those using Chirpy's dictionary ACL

    while it may work, I feel that Chirpy's dictionary ACL offers a much more useful set of functions - mainly clearing down the blocked ip list on a scheduled basis, whereas BFD will simply add that IP to deny_hosts.

  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

    Personally, I don't like the method used with BFD for the following reasons:

    1. If you get a lot of spam through dictionary attacks, then your iptables will become huge (since zombie PC's are usually used, so it's not uncommon to 10's of thousands of separate IP addresses coming in). This could cause serious overhead for all of your network traffic.

    2. It doesn't provide a regular method of purging, so innocent mistakes will be permanently blocked.

    3. It not only blocks port 25 access, but access to the whole server (pretty pointless if it's a spammer).

    4. You have no way to distinguish IP addresses blocked for RCPT failures and those added to your iptables forewall for any other misdemeanor, which makes 1. very diffuclt to script.

    So, I would recommend not using it and to continue with the dictionary attack which provides a method to clear down IP addresses regularly and only imposes a small overhead and only for mail.
    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
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    I am sure i missed on the auto purging since never reeally checked for updated features on Dictionary Attack ACL ever since i had it going.

    Fine what you say was there on my mind wrt complete blockage and had been carefully following the BFD mails. So in order to not use BFD's rule, would deleting rules/exim be fine?

    Thanks
    Anup

  5. #5
    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

    Yup, just delete the file. It simply picks up whatever files that you do have within the rules/ subdirectory of BFD.
    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

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Thanks. I just update the Dictionary Attack ACL and deleted the exim rule.
    If there could be something similar for high spam IP's like following:

    One IP starts sending high score SPAM mails (say i reject at 20+)
    Once more than 3/4/5 (configurable) are rejected then just like Dictionary Attack ACL, the IP is denied connection for 1 hour (or maybe less -- again configurable). This could perhaps reduce the load on SA. Just a thought, i could just be sounding wierd though.

    Thanks
    Anup

  7. #7
    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

    Well, with the dictionary attack ACL in the place where I have indicated, emails from an identified source don't get anywhere near SA - the connection to the offending server is dropped before any of the email DATA hits the server for the duration that it is in /etc/exim_deny - if they re-offend after an hour, they'll be blocked again for another hour.
    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

  8. #8
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Agreed. Actually i meant following scenario:

    (1) IP is Not A Dictionary Attack IP.
    (2) It Sends Out High Scoring SPAM

    Recepient domain in question Has "Catchall" type of setup.

    With mail passing through (1), it gets rejected at (2) (20+ score) but after causing loads. Say this IP sent our "n" mails in short burst directed towards catcahll account type of setup.

    Now with such an IP have something similar to Dictionary Attack ACL to block this IP (High Spam Score) for configurable period of time.

    Thanks
    Anup

  9. #9
    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

    Ah! I understand. Hmmm, that's got me thinking...

    All you'd need to do would be to append the offending IP address to /etc/exim_deny after doing the SA checks. Hmmm.
    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

  10. #10
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Yup. So that the same IP doesn't trigger SA again for the duration that it stays in exim_deny
    Idea is that with a heavy traffic on SA enabled server, there is more legitimate mail that can be pushed

    Thanks
    Anup

  11. #11
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    The idea of exim_deny-ing mail sent from IPs where mail from the same IP was previously tagged as high scoring spam seems like the best idea I've heard of in a while.

    If anyone could suggest a way of doing this I'm sure a lot of people could benefit from it. I wish I knew how . . .

  12. #12
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Jonnathan@Chirpy is the person who can do it (or perhaps alreay done it and waiting for tests to complete before releasing). Just waiting

    Anup

  13. #13
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by chirpy
    Ah! I understand. Hmmm, that's got me thinking...

    All you'd need to do would be to append the offending IP address to /etc/exim_deny after doing the SA checks. Hmmm.
    Yes, from the above I can almost hear the gears of Chirpy's brain working . . .

  14. #14
    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

    It's on my todo list
    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

Similar Threads & Tags
Similar threads

  1. BFD not working
    By ctbhost in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-19-2005, 11:32 AM
  2. BFD just not working right...
    By lamp in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-31-2005, 06:07 AM
  3. Problem with BFD???
    By JP-HOST in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-27-2005, 12:46 PM
  4. BFD without APF?
    By DavidR in forum cPanel Developers
    Replies: 7
    Last Post: 12-31-2004, 12:19 AM
  5. Bfd
    By binumvk in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-23-2004, 05:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube