You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article. The magical 3 commands are: ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host ssh remote-hostls /tmp ssh-keygen […]
How to Install iftop
How to Install iftop on RedHat 6 64 bits, CentOS. iftop is a very very cool tool. It displays what connections are made and their usage etc… Script to Install #!/bin/bash #Install iftop RedHat 6 #by Felipe Ferreira http://felipeferreira.net:81conf July/2011 […]
Varnish security.vcl
How to setup Security.vcl on Varnish 3.0 Download it wget https://github.com/KristianLyng/varnish/tree/my2.1/varnish-tools/security.vcl # cd vcl/ # make # cp -a vcl/ /etc/varnish/security.vcl/ (alternatively you could symlink it, of course). Now all it has to be done is edit your normal VCL […]
How to install varnish
How to install varnish This is a step-by-step on howto setup and run varnish web cache. This was done for Linux RedHat 6 64bits, same works for CentOS 5.5 64bits with varnish 3.0 This install is made of Varnish and […]
How to setup sshguard
How to setup sshguard Using Iptables and centos or redhat (another option is to use fail2ban, checkout my howto here ) 1.Download sshguard source and compile it (could also try yum install sshguard) # wget http://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-1.5/sshguard-1.5.tar.bz2 Other downloads from here […]
check log script
Nagios bash check_log Its often needed to check log files for a keyword. So I wrote a simple bash script to do that plus integrate with nagios and perfdata so it also generate graphic. The script is based on tail […]
How to install snort on centos 5.5
How to install snort on centos 5.5 This guide is a step by step on how to install from source snort-2.9.0.5 on CentOS 5.5 64bits it should work the same way for RedHat. Also with the mysql option enabled. The […]
