Announcement

Collapse
No announcement yet.

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

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

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

    WordPress Hosting on SSD Servers
    Hello All,

    In order block IP address/es from CSF Firewall at command line 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
Working...
X
Sign up for a News Letter Click here to sign up