Installing netstat on Centos 7 minimal installation

Update 9th of January 2020 This post was written many years ago, when I was installing CentOS minimal, after several years I am surprised that this post is still being viewed. As recommended below in the comments, there is no need to use net-tools anymore, this package has already been deprecated although still exists in … Continue reading Installing netstat on Centos 7 minimal installation

OS: Patching the linux kernel with grsecurity patch

I have been wanted to do linux kernel hardening a long time ago. I first heard about grsecurity from my friend William who is a security enthusiast. I have read several guides on how to patch the kernel source code but by far this article is the best. I am using CentOS 6.4 for the … Continue reading OS: Patching the linux kernel with grsecurity patch

Disable SELinux

There are times when disabling SELinux is required for some webapp to work. You can modify the SELinux from /etc/selinux/config Modifying the config file will make SELinux to be enabled (default), permissive or disabled upon boot up. To temporarily disable SELinux use setenforce 0 command.

Building an IDS : installing snorby, suricata and barnyard2

Reference 1: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricata_Snorby_and_Barnyard2_set_up_guide Reference 2: http://www.aldeid.com/wiki/Suricata/Setting-up-rules Reference 3: https://www.corelan.be/index.php/2011/02/27/cheat-sheet-installing-snorby-2-2-with-apache2-and-suricata-with-barnyard2-on-ubuntu-10-x/ Reference 4: https://github.com/Snorby/snorby/issues/102#issuecomment-1704653 Reference 5: http://www.aldeid.com/wiki/Snorby Disclaimer I claimed no credits for this post, this post is for my own personal reference while installing the components onto the Ubuntu Server 12.04 LTS. No plagiarism is intended! All setup credits go to References above. Please follow the … Continue reading Building an IDS : installing snorby, suricata and barnyard2

libmysqlclient.* not found

I have encountered a problem while configure barnyard2 with mysql on unbuntu server 12.04, it turns out that the package libmysqlclient16-dev was deleted from the repository, if you need to get the package you need to add the repo into your sources.list. Without this package you cannot configure barnyard2 that uses the libmysqlclient16-dev library file. … Continue reading libmysqlclient.* not found

CentOS6.2: Static IP and default gateway

I am a debian linux user, the way CentOS configures is slightly different, this post is a reminder for myself. Statically assign ip address to an interface on boot Edit the script file /etc/sysconfig/network-scripts/ifcfg-eth0 Use a text editor to put these ONBOOT if set to yes will activate the interface id specified in DEVICE after … Continue reading CentOS6.2: Static IP and default gateway

CentOS 6.2: mcrypt and libmcrypt not found in yum repolist

mcrypt is an encryption program which replaces old unix crypt program. The libmcrypt is the library file of mcrypt. CentOS version 6 repolist does not maintain mcrypt and libmcrypt, if you really must use mcrypt or libmcrypt use the Fedoraproject EPEL repolist: rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm or rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html then do yum update You should … Continue reading CentOS 6.2: mcrypt and libmcrypt not found in yum repolist