Thu, December 2, 2021
InterServer Web Hosting and VPS
Home · Latest · Trends

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 44 times (44) (0)
comments: 2 / hits: 3974  / 5 years ago, wed, dec 28, 16, 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, 9:24:46
commented 5 years ago
This script should ONLY be used by the init process. To restart csf use the CLI command 'csf -r'
commented 2 years 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 5 years ago
Only authorized users can post. Please sign in first, or register a free account
Login with Google
Member since Sep 7, 2016
Total Code Snippets: 12
Total Comments: 0
Location: n/a
paki snippets
5 years ago, thu, sep 8, 16, 3:04:22
comments: 0 / hits: 5482
5 years ago, tue, jan 3, 17, 3:37:12
comments: 0 / hits: 2366
5 years ago, thu, jan 19, 17, 5:40:32
comments: 0 / hits: 5926
5 years ago, sat, jun 10, 17, 3:16:28
comments: 0 / hits: 2430
5 years ago, mon, jun 26, 17, 9:21:15
comments: 0 / hits: 3458
4 years ago, sat, sep 2, 17, 4:26:09
comments: 1 / hits: 2618
4 years ago, tue, feb 27, 18, 9:25:15
comments: 0 / hits: 1863
4 years ago, tue, feb 27, 18, 9:41:12
comments: 0 / hits: 1878
4 years ago, wed, feb 28, 18, 11:02:34
comments: 0 / hits: 1859