Build a small Intrusion Detection System Under Linux9 System
Source: Internet
Author: User
Build a small Intrusion Detection System Under Linux9-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: Taipa comes from: Taipa studio ::
I. System Platform
Redhat9.0 release, install gcc and related library files, it is recommended not to install Apache, PHP, MySQL, we will use the source code to compile and install. For security considerations, you can set iptables to only allow 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 reverse install 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.
/* File format of charts ('png ', 'jpeg', 'gif ')*/
#8194; $ chart_file_format = "png ";
Go to the web page:
Http: // yourhost/acid/acid_main.php
Click "Setup Page" link-> Create Acid AG
Access http: // yourhost/acid to view the ACID interface.
Vi. Test System
Restart the system or directly start related background programs:
/Etc/init. d/mysql restart
/Etc/init. d/snort start
/Etc/init. d/httpd start
Use nmap, nessus, CIS or X-scan to scan the system and generate alarm records.
Http: // yourhost/acid.
So far, a powerful IDS configuration has been completed. You can remotely log on to the web interface to monitor the local area network of the host, and install phpMyAdmin to control the mysql database.
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