snort base daq ids

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介:

约定:未提示下载地址的 均能在sourceforge下载到

 一、配置lamp环境

 
  1. yum install pcre pcre-devel php php-common php-gd php-cli php-mysql mysql mysql-devel mysql-bench mysql-server  kernel-devel libxml2-devel vim-enhanced 
  2. service httpd start 
  3. service mysqld start 
  4. chkconfig --add httpd  
  5. chkconfig --add mysqld  
  6. chkconfig httpd on 
  7. chkconfig mysqld on 

二、配置libpcap

 

 
  1. [root@onlinepay src]# tar -xf ~/libpcap-1.0.0.tar.gz   
  2. [root@onlinepay src]# ls 
  3. libpcap-1.0.0  snort-2.9.4 
  4. [root@onlinepay src]# cd libpcap-1.0.0/ 
  5. [root@onlinepay libpcap-1.0.0]# ./configure --prefix=/usr/local/libpcap
  6. [root@onlinepay libpcap-1.0.0]#mkdir -p /usr/local/libpcap/bin/ 
  7. [root@onlinepay libpcap-1.0.0]#make && make test && make install

  8.  

三、配置libdnet

 

 
  1. [root@onlinepay src]# tar -xf ~/libdnet-1.12.tgz
  2. [root@onlinepay src]# cd libdnet-1.12/ 
  3. [root@onlinepay libdnet-1.12]# ./configure --prefix=/usr/local/libdnet 
  4. [root@onlinepay libdnet-1.12]# make && make install

四、配置daq

daq下载地址 http://www.snort.org/downloads/2103

  1. [root@onlinepay daq-2.0.0]# ./configure  --prefix=/usr/local/daq \
  2. --with-libpcap-libraries=/usr/local/libpcap/lib/ \
  3. --with-libpcap-includes=/usr/local/libpcap/include 
  4. [root@onlinepay daq-2.0.0]# make && make install

五、编译snort

 

 
  1. [root@onlinepay snort-2.9.4]# ls 
  2. aclocal.m4    config.sub    COPYING  install-sh  Makefile.am    preproc_rules  snort.pc.in  verstuff.pl 
  3. ChangeLog     configure     depcomp  LICENSE     Makefile.in    RELEASE.NOTES  src          ylwrap 
  4. config.guess  configure.in  doc      ltmain.sh   missing        rpm            templates 
  5. config.h.in   contrib       etc      m4          mkinstalldirs  snort.8        tools 
  6. ./configure --prefix=/usr/local/snort --with-mysql\
  7. --with-libpcap-libraries=/usr/local/libpcap/lib\
  8. --with-libpcap-includes=/usr/local/libpcap/include\
  9. --with-dnet-libraries=/usr/local/libdnet/lib\
  10. --with-dnet-includes=/usr/local/libdnet/include\
  11. --with-daq-includes=/usr/local/daq/include\
  12. --with-daq-libraries=/usr/local/daq/lib/daq --enable-zlib

 如果出现./configure: line 21270: daq-modules-config: command not found 请检查是否将daq-modules-config加入path,以及是否有可执行权限.

 

 
  1. configure: WARNING: unrecognized options: --with-mysql 
  2. [root@onlinepay snort-2.9.4]# make && make install 

此处报错 可以忽略 

 

六.配置snort

 

 
  1. [root@onlinepay snort-2.9.4]# mkdir /etc/snort 
  2. [root@onlinepay snort-2.9.4]# mkdir -p /var/log/snort 
  3. [root@onlinepay snort-2.9.4]# pwd 
  4. /usr/local/src/snort-2.9.4 
  5. [root@onlinepay snort-2.9.4]# cp etc/* /etc/snort/ 
  6. [root@onlinepay snort-2.9.4]#  

七、装载规则文件

下载解压规则文件snortrules-snapshot-2.8.tar.gz  http://vdisk.weibo.com/s/lB1gI

 

  

  1. [root@onlinepay src]# tar -xvf ~/snortrules-snapshot-2.8.tar.gz
  2. [root@onlinepay src]# cp -R so_rules/ /etc/snort/

八、测试snort 安装

 

 
  1. [root@onlinepay src]# /usr/local/snort/bin/snort -V 
  2.  
  3.    ,,_     -*> Snort! <*- 
  4.   o"  )~   Version 2.9.4 GRE (Build 40)  
  5.    ''''    By Martin Roesch & The Snort Team: http://www.snort.org/snort/snort-team 
  6.            Copyright (C) 1998-2012 Sourcefire, Inc., et al. 
  7.            Using libpcap version 1.0.0 
  8.            Using PCRE version: 6.6 06-Feb-2006 
  9.            Using ZLIB version: 1.2.3 

出现如上提示就说明可以用了

九、数据库设置

 未完待续




     本文转自 珏石头 51CTO博客,原文链接:http://blog.51cto.com/gavinshaw/1100055,如需转载请自行联系原作者



相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
14天前
|
Linux PHP
zabbix3.0在centos7环境下always_populate_raw_post_data的设置
zabbix3.0在centos7环境下always_populate_raw_post_data的设置
10 0
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
155 0
|
2月前
|
Java
No tag [else] defined in tag library imported with prefix [c]] with root cause
No tag [else] defined in tag library imported with prefix [c]] with root cause 错误处理
16 0
|
Unix 应用服务中间件 nginx
安装nginx:src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘curren
安装nginx:src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘curren
774 0
安装nginx:src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘curren
add file in debian/source/include-binaries if you want to store the modified binary in the debian
add file in debian/source/include-binaries if you want to store the modified binary in the debian
194 0
|
安全 大数据
frequency file /var/lib/ntp/drift/ntp.drift.TEMP: Permission denied 的解决方案
frequency file /var/lib/ntp/drift/ntp.drift.TEMP: Permission denied 的解决方案
207 0
|
Linux 开发工具 开发者
有关Linux系统出现Malformed line 1 in source list /etc/apt/sources.list (type)问题的解决方式
以下内容仅代表个人意见,本人亲测有效,如果没有效果可以现将之前的sources.list备份的文件恢复 重要的事情说三遍:记得备份,记得备份,记得备份 本文中所阐述的问题大致是因为由于不正常的关闭影响的sources.list文件的异常,以导致这种问题生成的原因,因此在这里考虑进行重新创建sources.list文件来解决问题的处理方式 本蒟蒻在昨晚做Linux(我用的是Debian,教学要求 )的时候,因为要在 /etc/apt/sources.list里添加一些东西,但是更改完之后,发生了错误:
563 0
有关Linux系统出现Malformed line 1 in source list /etc/apt/sources.list (type)问题的解决方式
|
Web App开发 安全 关系型数据库

热门文章

最新文章