免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] IPFW的日志问题,大家帮看看! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-10 15:08 |只看该作者 |倒序浏览
IPFW在syslog里设置了日志文件为/var/log/ipfw.log
  1. #       Consult the syslog.conf(5) manpage.
  2. *.err;kern.warning;auth.notice;mail.crit                /dev/console
  3. *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
  4. security.*                                      /var/log/security
  5. auth.info;authpriv.info                         /var/log/auth.log
  6. mail.info                                       /var/log/maillog
  7. lpr.info                                        /var/log/lpd-errs
  8. ftp.info                                        /var/log/xferlog
  9. cron.*                                          /var/log/cron
  10. *.=debug                                        /var/log/debug.log
  11. *.emerg                                         *
  12. # uncomment this to log all writes to /dev/console to /var/log/console.log
  13. #console.info                                   /var/log/console.log
  14. # uncomment this to enable logging of all log messages to /var/log/all.log
  15. # touch /var/log/all.log and chmod it to mode 600 before it will work
  16. #*.*                                            /var/log/all.log
  17. # uncomment this to enable logging to a remote loghost named loghost
  18. #*.*                                            @loghost
  19. # uncomment these if you're running inn
  20. # news.crit                                     /var/log/news/news.crit
  21. # news.err                                      /var/log/news/news.err
  22. # news.notice                                   /var/log/news/news.notice
  23. !startslip
  24. *.*                                             /var/log/slip.log
  25. !ppp
  26. *.*                                             /var/log/ppp.log
  27. !ipfw
  28. *.*                                             /var/log/ipfw.log
复制代码

重启后ipfw.log文件里生成了日志信息,但在/var/log/secure里也有相同的日志信息,请问如何不让它在/var/log/secure里生成信息?

论坛徽章:
0
2 [报告]
发表于 2007-09-10 17:29 |只看该作者
没人知道?各位的没这种情况吗?

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
3 [报告]
发表于 2007-09-11 20:17 |只看该作者
遇到过,但是没找到原因。帮你顶一下。

论坛徽章:
0
4 [报告]
发表于 2007-09-20 09:26 |只看该作者
找到解决办法了:
在messages的那一项前面加一行:

!-ipfw

看这个贴子:
http://www.freebsdchina.org/foru ... 7789&highlight=

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
5 [报告]
发表于 2007-09-20 15:20 |只看该作者
谢谢。
还是大飞机厉害。 原来syslogd.conf里面也可以用"-"号。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP