Server Security
Table of Contents
- root@host:~ yum update
- ConfigServer Firewall
- root@host:~ wget http://www.configserver.com/free/csf.tgz
- root@host:~ tar -xzf csf.tgz ; root@host:~ cd csf ; root@host/csf:~ sh install.sh;
- root@host:~ perl /usr/local/csf/bin/csftest.pl
- root@host:~ vi /etc/csf/csf.conf ; Change testing mode 0 to 1
- cphulk / fork bomb protection
- root@host:~ cd /tmp ; root@host:~ wget http://rackbank.com/mirror/rkhunter-1.4.0.tar.gz ; root@host:~ tar -zxvf rkhunter-1.4.0.tar.gz ;
- root@host:~ cd /temp/rkhunter-1.4.0 root@host:~ ./installer.sh –install
- root@host:~ vi /etc/cron.daily/rkhunter.sh ; #!/bin/sh ( /usr/local/bin/rkhunter --versioncheck /usr/local/bin/rkhunter --update /usr/local/bin/rkhunter -c --cronjob --report-warnings-only ) | /bin/mail -s 'rkhunter Daily Run (Servername)' mailid@mail.com,
- root@host:~ chmod 755 /etc/cron.daily/rkhunter.sh
- 4 views today
- 5 uses today
Tips
Secure server from attacks.