Intrusion Detector quick install
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install fail2ban
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install fail2ban
I mantain a self-hosted JIRA instance and wanted to also use my existing domain SSL certificate for it. 1. prepare your existing certificate (crt), private key and the CA cert (you can re-download them from your SSL vendor if needed … Continue reading
I was woken up yesterday morning by my service that checks the health of the server. I am an early bird but not that early, the good side was that nobody noticed the server went down at that hour so … Continue reading
I had apache 2.4.6 already installed so Note: – I downloaded the sources for 2.4.6 – You need mod_so wget http://archive.apache.org/dist/httpd/httpd-2.4.6.tar.gz tar -xf httpd-2.4.6.tar.gz cd httpd-2.4.6 cd modules/proxy /usr/local/apache/bin/apxs -i -a -c mod_proxy_wstunnel mod_proxy_wstunnel.c as a bonus: to configure apache … Continue reading
In order to keep the linux server as safe as possible I wrote two quick bash scripts that will scan for infected files and then send me an email report to take action. On the server I have centos with … Continue reading
In order to send an email from command line with a custom subject and the content taken from a from file: sendmail -v [email protected] < /path/to/file where path/to/file is something like: Subject: my subject body that i want to send … Continue reading
Sometimes I need to reset all php fastcgi processes especially when I change the php version for users in their php-wrapper pgrep php-cgi | xargs kill -9
I installed it for the latest stable version of php 5.3 (5.3.21). Feel free to change the version to your own needs # download the latest stable version from http://pecl.php.net/package/xdebug wget http://pecl.php.net/get/xdebug-2.2.1.tgz # unarchive tar -xf xdebug-2.2.1.tgz cd xdebug-2.2.1 # … Continue reading
dd if=/dev/zero of=/tmp/output.img bs=8k count=256k rm /tmp/output.img
———- install ruby ——————– /scripts/installruby ———- install libpcap ——————– yum install libpcap-devel libpcap I removed from /etc/yum.conf : ruby and perl from the exclude list vi /etc/yum.conf ———- install rrdtool ——————– yum install rrdtool yum install rrdtool-devel ———- install nDPI … Continue reading