Install and configure grsecurity on Debian and Ubuntu

Grsecurity is an innovative approach to security utilizing a multi-layered detection, prevention, and containment model. It is licensed under the GNU GPL. In this article we will discuss how to setup and configure grseurity (http://www.grsecurity.net/index.php) in a few minutes to your server.

Step 1

Edit your sources file, type:
vi /etc/apt/sources.list

and with the vi or any other editor insert on the bottom the following:
deb http://ubuntu.cr0.org/repo/ kernel-security/    ---> if you are running Ubuntu
or
deb http://debian.cr0.org/repo/ kernel-security/ (don't forget the trailing /)   ---> if you are running Debian

Step 2

Download the repository's gpg key and use: apt-key add kernel-security.asc

Step 3

Install, type:
apt-get install linux-image-2.6.32.15-1-grsec linux-headers-2.6.32.15-1-grsec linux-source-2.6.32.15-1-grsec
Wait a few minutes and reboot to the new kernel. Make sure the new kernel is running fine:
root@zimbra1:~# uname -r
2.6.32.15-1-grsec

Done!

Posted on: 04/02/2011








0 Comments
If you want to leave a comment please Login or Register