Skip to content

Instantly share code, notes, and snippets.

@skt-bford
Last active December 13, 2015 22:49
Show Gist options
  • Save skt-bford/4987466 to your computer and use it in GitHub Desktop.
Save skt-bford/4987466 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# requirements
yum -y install wget perl-libwww-perl perl-Time-HiRes iptables
# install csf
cd /usr/local/src
wget http://configserver.com/free/csf.tgz
tar xf csf.tgz
cd csf
./install.sh
cd /usr/local/src
rm -rf csf*
wget https://gist.github.com/skt-bford/4987434/raw/csf.conf.default
mv -f csf.conf.default /etc/csf/csf.conf
/etc/init.d/csf restart
/sbin/chkconfig --levels 235 csf on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment