This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Install CSF Firewall
#1
Install CSF Firewall
This was posted previously on our old community panel:

CSF Firewall is an extended firewall setup including audit/aide setup with web interface to manage firewall. 

Code:
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

Website:

http://www.configserver.com/cp/csf.html

Some of features included:

Quote:This suite of scripts provides:

  • Straight-forward SPI iptables firewall script

  • Daemon process that checks for login authentication failures for:

    • Courier imap, Dovecot, uw-imap, Kerio
    • openSSH
    • cPanel, WHM, Webmail (cPanel servers only)
    • Pure-ftpd, vsftpd, Proftpd
    • Password protected web pages (htpasswd)
    • Mod_security failures (v1 and v2)
    • Suhosin failures
    • Exim SMTP AUTH
    • Custom login failures with separate log file and regular expression matching

  • POP3/IMAP login tracking to enforce logins per hour

  • SSH login notification

  • SU login notification

  • Excessive connection blocking

  • UI Integration for cPanelDirectAdmin and Webmin

  • Easy upgrade between versions from within cPanel/WHM, DirectAdmin or Webmin

  • Easy upgrade between versions from shell

  • Pre-configured to work on a cPanel server with all the standard cPanel ports open

  • Pre-configured to work on a DirectAdmin server with all the standard DirectAdmin ports open

  • Auto-configures the SSH port if it's non-standard on installation

  • Block traffic on unused server IP addresses - helps reduce the risk to your server

  • Alert when end-user scripts sending excessive emails per hour - for identifying spamming scripts

  • Suspicious process reporting - reports potential exploits running on the server

  • Excessive user processes reporting

  • Excessive user process usage reporting and optional termination

  • Suspicious file reporting - reports potential exploit files in /tmp and similar directories

  • Directory and file watching - reports if a watched directory or a file changes

  • Block traffic on the DShield Block List and the Spamhaus DROP List

  • BOGON packet protection

  • Pre-configured settings for Low, Medium or High firewall security (cPanel servers only)

  • Works with multiple ethernet devices

  • Server Security Check - Performs a basic security and settings check on the server (via cPanel/DirectAdmin/Webmin UI)

  • Allow Dynamic DNS IP addresses - always allow your IP address even if it changes whenever you connect to the internet

  • Alert sent if server load average remains high for a specified length of time

  • mod_security log reporting (if installed)

  • Email relay tracking - tracks all email sent through the server and issues alerts for excessive usage (cPanel servers only)

  • IDS (Intrusion Detection System) - the last line of detection alerts you to changes to system and application binaries

  • SYN Flood protection

  • Ping of death protection

  • Port Scan tracking and blocking

  • Permanent and Temporary (with TTL) IP blocking

  • Exploit checks

  • Account modification tracking - sends alerts if an account entry is modified, e.g. if the password is changed or the login shell

  • Shared syslog aware

  • Messenger Service - Allows you to redirect connection requests from blocked IP addresses to preconfigured text and html pages to inform the visitor that they have been blocked in the firewall. This can be particularly useful for those with a large user base and help process support requests more efficiently

  • Country Code blocking - Allows you to deny or allow access by ISO Country Code

  • Port Flooding Detection - Per IP, per Port connection flooding detection and mitigation to help block DOS attacks

  • DirectAdmin UI integration

  • Updated Webmin UI integration

  • WHM root access notification (cPanel servers only)

  • lfd Clustering - allows IP address blocks to be automatically propagated around a group of servers running lfd. It allows allows cluster-wide allows, removals and configuration changes

  • Quick start csf - deferred startup by lfd for servers with large block and/or allow lists

  • Distributed Login Failure Attack detection

  • Temporary IP allows (with TTL)

  • IPv6 Support with ip6tables

  • Integrated UI - no need for a separate Control Panel or Apache to use the csf configuration

  • Integrated support for cse within the Integrated UI

  • cPanel Reseller access to per reseller configurable options Unblock, Deny, Allow and Search IP address blocks

  • System Statistics - Basic graphs showing the performance of the server, e.g. Load Averages, CPU Usage, Memory Usage, etc

Notice that this script is not suited for small VPS instances as it will add more services/packages running in the background.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by: Cantalupo , andr3selite


Messages In This Thread
Install CSF Firewall - by Me.B - 10-12-2014, 06:41 PM
RE: Install CSF Firewall - by Cantalupo - 12-18-2014, 02:38 PM
RE: Install CSF Firewall - by DimitarBG - 12-18-2014, 03:00 PM
RE: Install CSF Firewall - by DimitarBG - 12-18-2014, 03:24 PM
RE: Install CSF Firewall - by onlineth - 04-09-2015, 08:41 AM
RE: Install CSF Firewall - by Active8 - 04-10-2015, 06:34 AM
RE: Install CSF Firewall - by onlineth - 04-10-2015, 07:17 AM
RE: Install CSF Firewall - by shanjie - 02-04-2016, 03:21 AM
RE: Install CSF Firewall - by Qtech - 04-05-2017, 02:20 PM
RE: Install CSF Firewall - by apinto - 04-10-2015, 08:23 AM
RE: Install CSF Firewall - by Me.B - 04-10-2015, 04:40 PM
RE: Install CSF Firewall - by Active8 - 04-11-2015, 02:21 AM
RE: Install CSF Firewall - by apinto - 04-11-2015, 06:33 AM
RE: Install CSF Firewall - by Me.B - 04-12-2015, 12:43 AM
RE: Install CSF Firewall - by JVaranda - 02-04-2016, 05:06 AM
RE: Install CSF Firewall - by khongtuong - 05-09-2016, 01:26 PM
RE: Install CSF Firewall - by TGates - 04-06-2017, 03:34 AM
RE: Install CSF Firewall - by Qtech - 04-06-2017, 07:33 AM
RE: Install CSF Firewall - by TGates - 04-06-2017, 02:29 PM
RE: Install CSF Firewall - by CMs222 - 01-30-2018, 01:30 PM
RE: Install CSF Firewall - by CMs222 - 01-31-2018, 04:10 PM
RE: Install CSF Firewall - by CMs222 - 01-31-2018, 05:37 PM
RE: Install CSF Firewall - by CMs222 - 02-04-2018, 05:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[HOW-TO]How Install Ioncube Sentora Cantalupo 11 43 ,467 09-17-2018, 06:10 PM
Last Post: itzdaniel483
[How-To] Install Redmine/Passenger/GIT/Subversion james30263 7 27 ,138 09-13-2018, 02:16 PM
Last Post: james30263
How to install mod_pagespeed on Sentora testing 0 3 ,415 11-26-2017, 06:23 AM
Last Post: testing

Forum Jump:


Users browsing this thread: 1 Guest(s)