Build a small Intrusion Detection System Under RedHatlinux9 System
Source: Internet
Author: User
Article Title: Build a small Intrusion Detection System Under RedHatlinux9. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. System Platform
Redhat9.0 release, install gcc and related library files, it is recommended not to install
Apache, PHP, and MySQL are compiled and installed using the source code. Security-based
You can set iptables to allow only SSH and WWW access.
Ii. Software
Http://mysql.secsup.org MySQL4.0.12
Snort2.0.0 http://www.snort.org
Http://www.apache.org Apache2.0.45
PHP4.3.1 http://www.php.net.
ADODBv3.30 http://phplens.com
Http://acidlab.sourceforge.net Acid0.9.6b23
Http://flow.dl.sourceforge.net Zlib1.1.4
JPGraph1.11 http://jpgraph.techuk.com
LibPcap0.7.2 http://www.tcpdump.org
We recommend that you download http://ftp.cdut.edu.cn/pub/linux/NEW/ at this site
You can also go to the http://www.rpmfind.com to download the related xx. src. rpm compilation installation. If the rpm package is installed, You can forcibly uninstall it.
Rpm-e-nodeps xx. xx
Iii. Installation (we recommend that you test all the package files in the same directory)
1. Install zlib1.1.4
Tar-xzvf zlib-xx.tar.gz
Cd zlib-xx
/Configure; make test
Make install
Cd ..
2. Install LibPcap0.7.2
Tar-xzvf libpcap.tar.gz
Cd libpcap-xx
/Configure
Make
Make install
Cd ..
3. Install MySQL4.0.12
3.1 create a mysql group and a mysql user
Groupadd mysql
Useradd-g mysql
Modify the. bash_profile line under/root:
PATH =? $ PATH :? $ HOME/bin is
PATH =? $ PATH :? $ HOME/bin:/usr/local/mysql/bin
3.2 install mysql
Tar-xzvf mysql-xx.tar.gz
Cd mysql-xx
/Configure -- prefix =/usr/local/mysql
Make
Make install
Cd scripts
/Mysql_install_db
Chown-R root/usr/local/mysql
Chown-R mysql/usr/local/mysql/var
Chgrp-R mysql/usr/local/mysql
Cd./support-files/my-medium.cnf/etc/my. cnf
Add two lines to/etc/ld. so. conf:/usr/local/mysql/lib/mysql
/Usr/local/lib
Load to the database, execute
Ldconfig-v
3.3 test whether mysql works:
Cd/usr/local/mysql/bin/
/Mysqld_safe -- user = mysql &
# Ps-ef | grep mysql
Check whether mysql_safe is working
3.4 set mysql to self-start:
In the support-files directory under the mysql installation directory
Copy the mysql. server File to the/etc/init. d directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service