Article title: trapping intruders in Linux (2 ). 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.
Author: Hong Xiaoye
Install
It should be noted that installing a host-based intrusion detection system does not provide protection for the system. It aims to help administrators analyze and record potential attacks. Therefore, this article assumes that the SNARE server has become more stable by disabling unnecessary services, changing the default file access permissions, and installing the latest patches.
SNARE application packages can be downloaded on InterSect's website (http://www.intersectalliance.com/projects/Snare. SNARE is divided into two parts: core package and GUI. There are rpm packages for Red Hat 7.1 and Red Hat 7.2 on the Internet, as well as source code packages for download. I like to use the source code for installation, so that the program runs correctly in my system environment, so I downloaded the latest source code, which is now Version 0.9. In Red Hat 7.1, the two files are named snare-0.9.tar.gzand snare-core-0.9.tar.gz.
Run the following command to uncompress:
# Gunzip snare-core-0.9.tar.gz
# Tar xvf snare-core-0.9.tar
The SNARE release is very small. It also includes documents that can be found on the InterSect site. In the downloaded file, the auditd monitoring program has been compiled. of course, you can use the following command to re-compile it:
# Make clean
# Make
# Make install
The auditd monitoring program is installed under/usr/sbin. In addition, a script for recording start/stop will be placed in the/etc/init. d Directory. You can switch to the/etc/init. d Directory and run the following command to start the auditd process:
#./Audit start
Install the GUI below. Switch to the snare-0.9 directory, and then type the following commands:
#./Autogen. sh
#./Make
#./Make install
In this way, these GUI files will be copied to the/usr/local/share directory. After all this is done, we can run the program using the following command:
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