Snort is a free intrusion Monitoring System (IDS) software. Some of its source code is developed from the famous tcpdump software. It is a network monitoring software based on libpcap package and can be used as a very effective network intrusion monitoring system. It can monitor and detect various network attacks, such as buffer overflow attacks, port scanning, CGI attacks, and SMB detection. Snort provides real-time alert capabilities. It records alerts in a special alert file-system logs, or forwards alerts to another Wind through samba.
Snort is a free intrusion Monitoring System (IDS) software. Some of its source code is developed from the famous tcpdump software. It is a network monitoring software based on libpcap package and can be used as a very effective network intrusion monitoring system. It can monitor and detect various network attacks, such as buffer overflow attacks, port scanning, CGI attacks, and SMB detection. Snort provides real-time alert capabilities. It records alerts in a special alert file-system logs, or forwards alerts to another Windows PC through samba.
Snort first creates a directory based on the remote IP address, and then stores the detected packages in the binary format of tcpdump or in its own decoded form. In this way, you can use Snort to monitor or filter the packages you need.
Some time ago, I referred to the article on installing snort + mysql on Ubuntu 12.04. However, most of the installation tasks were executed using apt-get, which is too poor in customization, attack Detection does not come out (related to RP), but also makes the system messy. The landlord suffered a lot. In anger, he took off all the tasks and made some configuration and troubleshooting on his own. Finally, he succeeded.
The entire process is implemented with the root permission temporarily, saving you some trouble.
In other words, software must be installed first.
Pcre-8.20.tar.gz
Zlib-1.2.3.tar.gz
Libpcap-1.3.0.tar.gz
Daq-1.1.1.tar.gz
Libxml2-2.6.19.tar.gz
Libpng-1.2.40.tar.gz
Gd-2.0.33.tar.gz
Jpegsrc.v7.tar.gz
DBD-mysql-3.0008.tar.gz
Httpd-2.2.14.tar.gz
Php-5.2.9.tar21312.16.bz2
Of course, you can use configure wherever you like, but for convenience, I put all their * .tar.gz files in a self-built directory/usr/local/installsnort.
Make & make install
The installation is complete, and our Big BOSS is finally our turn,
Snort-2.9.0.2.tar.gz
Snortrules-snapshot-2920.tar.gz
Cd first:
Cd, usr, local, installsnort, and snort-2.9.0.2
Then, configure, assuming that you must do this here, otherwise there will be endless troubles.
. /Configure -- with-mysql =/usr/lib/i386-linux-gnu/-- with-libpcre-supported des =/usr/local/installsnort/pcre-8.20/-- with-libpcre-libraries = // usr /local/installsnort/pcre-8.20 /. libs/-- enable-zlib
Mysql was installed before the new version was used, so its library files and everything are in the GNU tool set of linux. Only libpcre needs to be specified. Otherwise, it cannot be found, zlib will affect the future execution of snort.
Next:
Make
(There are often various problems. If you want to re-configure, use make clean)
Then there is a good friend of make:
Make install
At this point, the most basic functions of snort have been installed. Test snort-V (used to check the version number)
If this occurs, continue; otherwise, check the above installation process.
, _-*> Snort! <*-
O ")~ Version 2.9.0.2 (Build 92)
''' By Martin Roesch & The Snort Team: http://www.snort.org/snort/snort-team
Copyright (C) 1998-2010 Sourcefire, Inc., et al.
Using libpcap version 1.3.0
Using PCRE version: 8.20 2011-10-21
Using ZLIB version: 1.2.3.4
If there is no snort directory in the/etc path, create one and copy all/usr/local/installsnort/snort-2.9.0.2/etc files first, copy the preproc_rules, rules, so_rules files generated by Decompressing/usr/local/installsnort/snortrules-snapshot-2902.tar.gz.