免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: jerrywjl
打印 上一主题 下一主题

RHEL5.1+Snort+Apache+MySql+Php+Gd with Gd & Image_Graph监控系统安装与配置 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-03-05 17:54 |只看该作者

回复 #1 jerrywjl 的帖子

赞~~!
先顶后看!

论坛徽章:
0
12 [报告]
发表于 2008-03-05 20:21 |只看该作者
顶起来```

论坛徽章:
0
13 [报告]
发表于 2008-03-05 20:33 |只看该作者
首先感谢你指出我的文档中错误的地方
我文档中
“preprocessor stream4_reassemble”
add a line that looks like
preprocessor stream4_reassemble: both,ports 21 23 25 53 80 110 111 139 143 445 513 1433

是开始做的时候参考别的文档,如果这么做确实会出现问题,所以我在阅读配置文档
# Stream5 is a target-based stream engine for Snort.  Its functionality
# replaces that of Stream4.  Consequently, BOTH Stream4 and Stream5
# cannot be used simultaneously.  Comment out the stream4 configurations
# above to use Stream5.
后 和你用一样的方法实现 ,就是注释掉了stream4_reassemble相关的内容,直接使用Stream5
之后一直 没有更新文档,确实是不负责任的做法!

还有你文中提到的
#alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC ///cgi-bin access"; flow:to_server,established; uricontent:"///cgi-bin"; nocase; rawbytes; reference:nessus,11032; classtype:attempted-recon; sid:1143; rev:7
#alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC /cgi-bin/// access"; flow:to_server,established; uricontent:"/cgi-bin///"; nocase; rawbytes; reference:nessus,11032; classtype:attempted-recon; sid:1144; rev:7
我也是注释掉的,也是后来没有更新文档,不好意思!

mysql> SET PASSWORD FOR snort@localhost=PASSWORD('123456');                        --源文在这里有错
你说的这个地方 ,我应该没有写错吧?

非常感谢,后头我也把自己的文档改正一下。
另外你的问题也是我关心的,希望高手指点!

论坛徽章:
0
14 [报告]
发表于 2008-03-05 22:04 |只看该作者
原来是banevv是原创,失敬失敬!

希望不要介意我的一通牢骚!

这个帖子尽管俺是原创,但是主体是在你的结构上搭建起来的。所以非常感谢!如果有solution希望大家能一起学习提高!

求职 : Linux运维
论坛徽章:
19
CU大牛徽章
日期:2013-03-13 15:15:0815-16赛季CBA联赛之山东
日期:2016-10-31 10:40:10综合交流区版块每日发帖之星
日期:2016-07-06 06:20:00IT运维版块每日发帖之星
日期:2016-02-08 06:20:00数据库技术版块每日发帖之星
日期:2016-01-15 06:20:00IT运维版块每日发帖之星
日期:2016-01-15 06:20:00IT运维版块每日发帖之星
日期:2016-01-10 06:20:00黄金圣斗士
日期:2015-11-24 10:45:10IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-08-13 06:20:00IT运维版块每日发帖之星
日期:2015-07-30 09:40:012015年亚洲杯之巴勒斯坦
日期:2015-05-05 10:19:03
15 [报告]
发表于 2008-03-05 23:08 |只看该作者
顶起来.好贴呀
1111

论坛徽章:
0
16 [报告]
发表于 2008-03-06 09:46 |只看该作者
还是我关心的两个问题,等高手加入,谢谢了!

第一,在启动snort中出现的几个错误,迫使我将/etc/snort/rules/web-misc.rules 注释,否则服务起不来。具体是什么原因?
#alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC ///cgi-bin access"; flow:to_server,established; uricontent:"///cgi-bin"; nocase; rawbytes; reference:nessus,11032; classtype:attempted-recon; sid:1143; rev:7
#alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC /cgi-bin/// access"; flow:to_server,established; uricontent:"/cgi-bin///"; nocase; rawbytes; reference:nessus,11032; classtype:attempted-recon; sid:1144; rev:7
#alert tcp $EXTERNAL_NET any -> $HOME_NET 8090 (msg:"WEB-MISC TrackerCam ComGetLogFile.php3 directory traversal attempt"; flow:to_server,established; content:"/ComGetLogFile.php3"; distance:0; nocase; pcre:"/fn=\x2e\x2e(\x2f|\x5c)/Rmsi"; reference:bugtraq,12592; reference:cve,2005-0481; classtype:web-application-attack; sid:3544; rev:2
#alert tcp $EXTERNAL_NET any -> $HOME_NET 8090 (msg:"WEB-MISC TrackerCam ComGetLogFile.php3 log information disclosure"; flow:to_server,established; content:"/ComGetLogFile.php3"; nocase; pcre:"fn=Eye\d{4}_\d{2}.log/Rmsi"; reference:bugtraq,12592; reference:cve,2005-0481; classtype:web-application-activity; sid:3545; rev:2

出错信息:
[root@localhost ~]# tail -f /var/log/messages
Mar  5 21:34:06 localhost snort[647]:     Alert if memcap exceeded DISABLED
Mar  5 21:34:06 localhost snort[647]:  
Mar  5 21:34:06 localhost snort[647]: DNS config:  
Mar  5 21:34:06 localhost snort[647]:     DNS Client rdata txt Overflow Alert: ACTIVE
Mar  5 21:34:06 localhost snort[647]:     Obsolete DNS RR Types Alert: INACTIVE
Mar  5 21:34:06 localhost snort[647]:     Experimental DNS RR Types Alert: INACTIVE
Mar  5 21:34:06 localhost snort[647]:     Ports:
Mar  5 21:34:06 localhost snort[647]:  53
Mar  5 21:34:06 localhost snort[647]:  
Mar  5 21:34:07 localhost snort[647]: FATAL ERROR: (/etc/snort/rules/web-misc.rules)97 => Cannot use 'rawbytes' and 'http_uri' as modifiers for the same "content" nor use 'rawbytes' with "uricontent".


[root@localhost ~]# tail -f /var/log/messages
Mar  5 21:42:37 localhost snort[707]:     Alert if memcap exceeded DISABLED
Mar  5 21:42:37 localhost snort[707]:  
Mar  5 21:42:37 localhost snort[707]: DNS config:  
Mar  5 21:42:37 localhost snort[707]:     DNS Client rdata txt Overflow Alert: ACTIVE
Mar  5 21:42:37 localhost snort[707]:     Obsolete DNS RR Types Alert: INACTIVE
Mar  5 21:42:37 localhost snort[707]:     Experimental DNS RR Types Alert: INACTIVE
Mar  5 21:42:37 localhost snort[707]:     Ports:
Mar  5 21:42:37 localhost snort[707]:  53
Mar  5 21:42:37 localhost snort[707]:  
Mar  5 21:42:38 localhost snort[707]: FATAL ERROR: ERROR /etc/snort/rules/web-misc.rules Line 452 => unable to parse pcre regex "fn=Eye\d{4}_\d{2}.log/Rmsi

第二,snort这个东西具体使用方法是怎样的?

论坛徽章:
0
17 [报告]
发表于 2008-03-06 10:28 |只看该作者
1)不知道snort.conf包含哪些规则,包含其他http规则类似的带pcre的是否有相同的情况。
2)snort规则升级一般使用oinkmaster,在snort注册并get code做cron每天自动升级规则就可以。
规则取舍需要根据自己网络具体情况,一般把snort.conf最后一句include threshold.conf打开,不用的规则可以抑制。

论坛徽章:
0
18 [报告]
发表于 2008-03-06 10:48 |只看该作者
不是非常明白,这些规则的格式,我附件出来看能否提供一些相关的资料参考。

snort.rar

12.06 KB, 下载次数: 84

论坛徽章:
0
19 [报告]
发表于 2008-03-06 12:42 |只看该作者

水平有限,期待高手解决后出一个完整无错的配置文件

发扬楼主精神,不怕错,只怕不做.

论坛徽章:
0
20 [报告]
发表于 2008-03-06 12:49 |只看该作者
光看LZ发的这些帖子的长度,就知道真的是花了大量时间和精力的。赞一个先!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP