Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2013

    CSF rules across multiple servers?


    I am trying to get my head around setting up a method whereby I can automatically deploy new configurations to CSF.

    My initial idea was to setup a cron that runs twice a day (12am - 12pm) and pull down a .txt file from a central server.

    But my question is, what format will this "central" config file be in? and how would i load it into CSF?

    Once the file is installed, each server will restart CSF to reload the new config.

    Is this is a bad way of doing it? How do you roll out new CSF rules / changes across many servers?

  2. #2


    have a read here


    see section 4. csf Command Line Options

    csf.conf - the main configuration file, it has helpful comments explaining what each option does

    should get you started .

  3. #3
    Join Date
    Sep 2002
    Top Secret
    CSF configs shouldn't be changed daily, hourly, weekly, etc. They should be effectively set and forget, and you really want to be careful when simply copying from A to B , as that can result in some bad things.

    If you're looking for clustering blocks, etc, take a look through the config file for lfd clustering. Should be pretty straightforward
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!

Similar Threads

  1. Manual edit csf firewall csf.allow or csf.ignore?
    By hostyourdream in forum Hosting Software and Control Panels
    Replies: 8
    Last Post: 09-14-2015, 06:31 PM
  2. CSF question - convering APF preroute.rules
    By pmabraham in forum Hosting Security and Technology
    Replies: 4
    Last Post: 05-28-2012, 11:12 AM
  3. CSF with webmin vs CSF with WHM/Cpanel
    By alsemany in forum Hosting Security and Technology
    Replies: 9
    Last Post: 10-30-2011, 08:17 AM
  4. Csf Firewall Rules Blocks Connection To My Server
    By tkanaco in forum Hosting Security and Technology
    Replies: 14
    Last Post: 09-06-2008, 09:22 PM
  5. CSF+IPTables, have to Restart CSF after reboot.
    By MikeDVB in forum Hosting Security and Technology
    Replies: 6
    Last Post: 06-03-2008, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts