Home / cPanel/WHM Support / Most useful ConfigServer Firewall(CSF) Commands for Unix/Linux servers.

Most useful ConfigServer Firewall(CSF) Commands for Unix/Linux servers.

/
/
/
837 Views

Config Server Firewall(CSF) is abbreviated as CSF. CSF is the most widely using firewall application to secure Unix/Linux servers. CSF has wide range of options to manage Linux firewall via command-line and from the control panel & with the help of thirdparty software. The csf installation includes preconfigured configurations and control panel UI’s for cPanel, DirectAdmin and Webmin. The installation ans usage of CSF is quit simple.

Some very useful ConfigServer Firewall (CSF) commands for managing your server firewall.

Enable csf and lfd if previously disabled

How to disable CSF from command line?

Restart CSF from command line?

To restart the CSF, you can use the ‘r’ switch.

Flush/Stop firewall rules (note: lfd may restart csf)

Flush/Stop firewall rules (note: lfd may restart csf)

Allow an IP and add to /etc/csf/csf.allow

Example:

Remove an IP from the temporary IP ban or allow list.

Example:

Flush all IPs from the temporary IP entries

Example:

Deny an IP and add to /etc/csf/csf.deny

Example:

Unblock an IP and remove from /etc/csf/csf.deny

Example:

Remove and unblock all entries in /etc/csf/csf.deny

Example:

Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number)

Example:

Displays the current list of temporary allow and deny IP entries with their TTL and comment

Example:

Add an IP to the temp IP ban list.

Example:

Remove an IP from the temporary IP ban or allow list

Flush all IPs from the temporary IP entries

Other General csf commands:

 

That’s It thank you for watching

[amazon_link asins='B017ID54G6,B00C77U612,B017ID54G6,B00AUYYVZQ,B01LYSSFM7,8126554568,8131791882,1515233146,B01GSODGZC,1534954546' template='ProductCarousel' store='thinknowledge-21' marketplace='IN' link_id='c8bd129a-4dd0-11e7-80e2-3bd285adad9e']
  • Facebook
  • Twitter
  • Google+
  • Linkedin

Leave a Comment

Your email address will not be published. Required fields are marked *

1 Shares
+1
Tweet
Share1
Share
Pin