Fri, October 30, 2020, 13:18:44
Home · Latest · Trends  /  Plain Text

SSH CSF - ConfigServer Commands

Common SSH commands for CSF [ConfigServer]
csf -vShow csf version
csf -lStatus
csf -l6List/Show the IPv6 ip6tables configuration
csf -fFlush/Stop firewall rules (Note: lfd may restart csf)
csf -sStart the firewall rules
csf -rRestart firewall rules (csf)
csf -sfForce CLI restart regardless of LFDSTART setting
csf -raQuick restart (csf restarted by lfd)
csf -qRestart firewall rules (csf) and then restart lfd daemon.
csf --lfd[stop|start|restart|status] Actions to take with the lfd daemon
csf -aAllow an IP and add to /etc/csf/csf.allow Example: csf -a
csf -arRemove an IP from /etc/csf/csf.allow Example: csf -ar
csf -dDeny an IP and add to /etc/csf/csf.deny Example: csf -d
csf -dr Unblock an IP and remove from /etc/csf/csf.deny Example: csf -dr
csf -dfRemove and unblock all entries in /etc/csf/csf.deny
csf -gSearch the iptables and ip6tables rules for a match (Port Number or IP)
csf -tDisplays the current list of temporary allow and deny IP entries
csf -tfFlush all IPs from the temporary IP entries
csf -cpPING all members in an lfd Cluster
csf -mDisplay Server Check in HTML or email to [email] if present. Example: csf -m [email protected]
csf --rblProcess and display RBL Check in HTML or email to [email] if present
csf -lrInitiate Log Scanner report via lfd
csf -pView ports on the server that have a running process behind them listening for external connections
csf -xDisable csf and lfd completely
csf -eEnable csf and lfd if previously disabled
csf -cCheck for updates to csf but do not upgrade
csf -uCheck for updates to csf and upgrade if available
csf -ufForce an update of csf whether and upgrade is required or not
rated 43 times [  43] [ 0]  / comments: 2 / hits: 3067  / 4 years ago, wed, dec 28, 2016, 04:11:52
More From » Plain Text


You can also stop, restart and start csf with commands:
/etc/init.d/csf stop
/etc/init.d/csf restart
/etc/init.d/csf start
[#2] Saturday, January 7, 2017, 09:24:46
commented 4 years ago
This script should ONLY be used by the init process. To restart csf use the CLI command 'csf -r'
submitted 11 months ago, Mon, Dec 23, 2019, 11:25:58 pport
Check csf is working correctly:
perl /etc/csf/
[#3] Saturday, February 18, 2017, 12:28:08
commented 4 years ago
Your Comment
Install SpamAssassin and Exim on a CentOS
4 years ago, thu, sep 8, 2016
Simple CSS javascript social share buttons
4 years ago, tue, jan 3, 2017
Basic ClamAV antivirus engine SSH command line commands
4 years ago, thu, jan 19, 2017
How to leverage browser caching with htaccess
3 years ago, sat, jun 10, 2017
CSF / LFD block force attacks on Exim Centos
3 years ago, mon, jun 26, 2017
Basic SSH Exim mail queue commands
3 years ago, sat, sep 2, 2017
3 years ago, tue, feb 27, 2018
3 years ago, wed, feb 28, 2018


Member since Sep 7, 2016
Total Code Snippets: 12
Total Comments: 0
Location: n/a
User not following anyone yet.