免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1862 | 回复: 1
打印 上一主题 下一主题

Snort+Guardian中guardian无法启动? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-26 09:55 |只看该作者 |倒序浏览
系统是linux,shell是Bsehll,我是参照下面的文章做的
http://bbs.chinaunix.net/forum/29/050118/484898.html
启动提示错误
ERROR!Could not find guardina_block.sh. Please consult the README.
我读了readme和guardian.pl
readme有一段描述如下:
Guardian is now more modular than ever. When it decides to block an IP ip address, it calls a script called "guardian_block.sh" . I have included several sample scripts in the scripts directory of the Guardian package.The biggest benifit of this is that now you can have this script do whatever you like, from paging you, sending you email, or even to launch a counterattack (although I do not support or encourage such actions).

guardian.pl也有一段读取变量

foreach $mypath (split (/:/, $ENV{PATH})) {
    if (-x "$mypath/guardian_block.sh" {
      $blockpath = "$mypath/guardian_block.sh";
    }
    if (-x "$mypath/guardian_unblock.sh" {
      $unblockpath = "$mypath/guardian_unblock.sh";
    }
  }
  if ($blockpath eq "" {
    print "Error! Could not find guardian_block.sh. Please consult the README. \
n";

我不懂shell,呵呵,太菜了嘛。我改写.bash_profile的path
path=$pathHOME/bin:/usr/local/bin 黑体是我加的,但是没起作用!请各位帮忙!

论坛徽章:
0
2 [报告]
发表于 2005-01-26 14:58 |只看该作者

Snort+Guardian中guardian无法启动?

在/etc/rc.local文件中加入
/usr/bin/perl /usr/local/bin/guardian.pl -c /etc/guardian.conf
不能正常启动,后来我进入系统在命令行下输入
#/usr/bin/perl /usr/local/bin/guardian.pl -c /etc/guardian.conf
guardian确可以启动了,这是为什么?
为什么加在rc.local中不行,单独输入没问题。我肯定没写错!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP