Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in and access CSF on your platform of choice.
  2. You can click the CSF tab at the top of the page or scroll down the list of options from the main interface until you find the Firewall Configuration button. Click it.
    Click on the Firewall Configuration Button in CSF
  3. The CSF configuration file is enormous, so rather than hunting manually for the section we are interested in, select Country Code Lists and Settings from the drop-down list near the top of the screen. This will automatically show only the section that we need.
    Select Country Code Lists and Settings from the Drop-Down List at the Top of the Screen
  4. First you need to decide what IP geolocation services you want to use. If you want to use MaxMind's GeoIP Lite service (this is what CSF used to use exclusively), you now need to register for a free license. You can register here. Once you have a license key (be aware you will only be shown this license key one time, when you first sign up for it), enter the key into the MM_License_Key field. Leave this field blank if you don't want to use MaxMind's service.
    Enter your MaxMind GeoIP License in the MM_LICENSE_KEY field if you Want to use This ServiceImage Added
  5. Now you need to tell CSF which geolocation service to use. Enter the number 1 to use MaxMind (only do this if you've entered the license key in step 4) or enter the number 2 to use three different currently free services (no license required). If in doubt, set CC_SRC to 2.
    Enter 2 to use the Free Geolocation Services or 1 to use Max Mind if You've Entered a Valid License in the Previous StepImage Added

  6. Next, look for The first editable item in this section is the one we need, CC_DENY:
    Enter a Comma Separated List of ISO Country Codes in the CC_DENY field
  7. Enter a comma separated list of ISO country codes into that field.
  8. When you are done, scroll all the way to the bottom of the page and click the Change button to apply your changes to the csf.conf file.
    Click the Change Button at the Bottom of the Screen
  9. Finally, click the Restart csf+lfd button to immediately implement the changes you just made.

...