Welcome to Centmin Mod Community
Become a Member

CSF How To Backup & Restore CSF Firewall Configuration Profiles

Discussion in 'Other Centmin Mod Installed software' started by eva2000, Apr 7, 2019.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    54,384
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    10:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How to backup/restore CSF Firewall configuration instructions have been added to https://centminmod.com/csf_firewall.html#backuprestore

    To backup CSF Firewall's current configuration profile run command where backup-name is name of your back which will have auto appended a date timestamp prefix in front when running csf --profile list command
    Code (Text):
    csf --profile backup backup-name


    To restore original CSF firewall backup profile, run commands to list backup profiles, then restore specific named backup profile, restart CSF Firewall+LFD services, and finally update CSF Firewall
    Code (Text):
    csf --profile list
    csf --profile restore 1547784956_cmm_after_whitelist
    csf -ra
    csf -u
    

    profile list will list csf profile backups look for listing name containing
    cmm_after_whitelist with date timestamp prefix in front i.e. for me date timestamp prefix is 1547784956_cmm_after_whitelist

    example csf --profile list output
    Code (Text):
    csf --profile list
    
    Configuration Profiles
    ======================
    block_all_perm
    block_all_temp
    disable_alerts
    protection_high
    protection_low
    protection_medium
    reset_to_defaults
    
    Configuration Backups
    =====================
    1547784956_cmm_after_whitelist (Fri Jan 18 04:15:56 2019)
    1547784954_cmm_b4_whitelist (Fri Jan 18 04:15:54 2019)
    1547784920_cmm_b4_shodan_block (Fri Jan 18 04:15:20 2019)
    1547784919_cmm_b4_censys_block (Fri Jan 18 04:15:19 2019)
    1547784918_cmm_default_tweaked (Fri Jan 18 04:15:18 2019)
    1547784917_cmm_before_ptload_action (Fri Jan 18 04:15:17 2019)
    1547784915_initial_default (Fri Jan 18 04:15:15 2019)
    1547784914_pre_v12_09_upgrade (Fri Jan 18 04:15:14 2019)
    


     
Thread Status:
Not open for further replies.