How To block IP address from command line in CSF Firewall - Linux Server?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Shane
    Senior Member
    • Jun 2006
    • 264

    How To block IP address from command line in CSF Firewall - Linux Server?

    Hello All,

    In order block IP address/es from CSF Firewall at command line on Linux Server,one need to execute below mentioned commands:

    1) Login into the server via shell access.
    2) Go to the path of APF firewall. It should be:
    /etc/csf
    3) Edit the file csf.deny.
    vi csf.deny
    4) Add the IP address in the list and save the file to block the IP address.

    Once the IP address added one need to restart the Firewall?To Restart Firewall one need to execute below mentioned command:

    csf -r

    That?s it!

    Thanks,

    Shane G.
    AccuWebHosting.Com
    Last edited by Marc_AccuWebHosting; 01-01-2018, 05:30 PM.
Working...
X