44
SSH CSF - ConfigServer Commands
Common SSH commands for CSF [ConfigServer]
csf -v | Show csf version |
csf -l | Status |
csf -l6 | List/Show the IPv6 ip6tables configuration |
csf -f | Flush/Stop firewall rules (Note: lfd may restart csf) |
csf -s | Start the firewall rules |
csf -r | Restart firewall rules (csf) |
csf -sf | Force CLI restart regardless of LFDSTART setting |
csf -ra | Quick restart (csf restarted by lfd) |
csf -q | Restart firewall rules (csf) and then restart lfd daemon. |
csf --lfd | [stop|start|restart|status] Actions to take with the lfd daemon |
csf -a | Allow an IP and add to /etc/csf/csf.allow Example: csf -a 255.255.255.0 |
csf -ar | Remove an IP from /etc/csf/csf.allow Example: csf -ar 255.255.255.0 |
csf -d | Deny 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 -df | Remove and unblock all entries in /etc/csf/csf.deny |
csf -g | Search the iptables and ip6tables rules for a match (Port Number or IP) |
csf -t | Displays the current list of temporary allow and deny IP entries |
csf -tf | Flush all IPs from the temporary IP entries |
csf -cp | PING all members in an lfd Cluster |
csf -m | Display Server Check in HTML or email to [email] if present. Example: csf -m [email protected] |
csf --rbl | Process and display RBL Check in HTML or email to [email] if present |
csf -lr | Initiate Log Scanner report via lfd |
csf -p | View ports on the server that have a running process behind them listening for external connections |
csf -x | Disable csf and lfd completely |
csf -e | Enable csf and lfd if previously disabled |
csf -c | Check for updates to csf but do not upgrade |
csf -u | Check for updates to csf and upgrade if available |
csf -uf | Force an update of csf whether and upgrade is required or not |
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 44 times
(44)
(0)
comments: 2 / hits: 4776
/ 7 years ago, wed, dec 28, 16, 04:11:52
More From
» Plain Text
Comments
6
You can also stop, restart and start csf with commands:
Code:
Code:
Code:
[#2] Saturday, January 7, 2017, 9:24:46

commented 7 years ago
jimmy
This script should ONLY be used by the init process. To restart csf use the CLI command 'csf -r'
(+1)
(-0)
commented 4 years ago, Mon, Dec 23, 2019, 11:25:58
pport
6
Check csf is working correctly:
Code:
perl /etc/csf/csftest.pl
[#3] Saturday, February 18, 2017, 12:28:08
commented 6 years ago