Skip to content

stokes84/ConfigServer-Firewall-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 

Repository files navigation

ConfigServer Firewall Installer

Installation

wget --no-check-certificate https://raw.github.com/stokes84/ConfigServer-Firewall-Installer/master/install.sh; bash install.sh; rm -f install.sh

Description

Installs ConfigServer Firewall (CSF) and additional UI with credentials and port specified during install. Also installs shared SSL cert if needed (required for CSF UI) automatically and configures vhost accordingly. Tested and verified working on compatible distro's listed below (possibly more?).

###CentOS### Will yum update & install these dependencies: sed openssl perl-Time-HiRes perl-libwww-perl perl-GDGraph perl-IO-Socket-SSL.noarch perl-Net-SSLeay perl-Net-LibIDN perl-IO-Socket-INET6 perl-Socket6 net-tools rsyslog mod_ssl

Installs cert and key files @ /etc/pki/tls/certs (if chosing "y" to install ssl during install), mod_ssl, and edits /etc/httpd/conf.d/ssl.conf with locations.

###Ubuntu### Will apt-get update & install these dependencies: apache2 sed openssl libio-socket-ssl-perl libcrypt-ssleay-perl libnet-libidn-perl libio-socket-inet6-perl libsocket6-perl

Installs cert and key files @ /etc/apache2/ssl (if chosing "y" to install ssl during install), mod_ssl, and generates vhost @ /etc/apache2/sites-available/domain.com.conf with /var/www/html as root dir.

Compatability

CentOS 5/6/7
Ubuntu 12/14

Notes

If you find the GUI not loading it's likely because you are blocked from it. Make sure you whitelist yourself.

sed -i -e "s|IGNORE_ALLOW = "0"|IGNORE_ALLOW = "1"|g" /etc/csf/csf.conf
csf -a 1.1.1.1 /etc/init.d/csf restart

In CentOS 7 you must first stop and disable firewalld before (or after is fine too just restart) installing CSF.

systemctl stop firewalld
systemctl disable firewalld

GUI not serving a page after firewall changes? Try stopping and restarting in this order.

service csf stop && service lfd stop
service csf start && service lfd start

About

ConfigServer Firewall Installer /w UI for Centos 5/6/7 & Ubuntu 12/14

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages