Home · Latest · Trends  /  Plain Text
18

SSH CSF - ConfigServer Commands

rated 18 times [  18] [ 0]  / comments: 2 / hits: 1665  / 2 years ago, wed, dec 28, 2016, 04:11:52
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 255.255.255.0
csf -arRemove an IP from /etc/csf/csf.allow Example: csf -ar 255.255.255.0
csf -dDeny an IP and add to /etc/csf/csf.deny Example: csf -d 255.255.255.0
csf -dr Unblock an IP and remove from /etc/csf/csf.deny Example: csf -dr 255.255.255.0
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 admin@example.com
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
More From » Plain Text
 

Comments

3
You can also stop, restart and start csf with commands:
Code:
/etc/init.d/csf stop
Code:
/etc/init.d/csf restart
Code:
/etc/init.d/csf start
[#2] Saturday, January 7, 2017, 09:24:46
 
jimmy
commented 2 years ago
3
Check csf is working correctly:
Code:
perl /etc/csf/csftest.pl
[#3] Saturday, February 18, 2017, 12:28:08
 
Micky
commented 2 years ago
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
Install SpamAssassin and Exim on a CentOS
3 years ago, thu, sep 8, 2016
Simple CSS javascript social share buttons
2 years ago, tue, jan 3, 2017
Basic ClamAV antivirus engine SSH command line commands
2 years ago, thu, jan 19, 2017
How to leverage browser caching with htaccess
2 years ago, sat, jun 10, 2017
CSF / LFD block force attacks on Exim Centos
2 years ago, mon, jun 26, 2017
Basic SSH Exim mail queue commands
2 years ago, sat, sep 2, 2017
1 year ago, tue, feb 27, 2018
1 year ago, wed, feb 28, 2018
Posted
paki

paki

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