免费注册 查看新帖 |

Chinaunix

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

[系统安全] iptables规则自动改变? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2012-12-10 22:14 |只看该作者
本帖最后由 knight_zt 于 2012-12-10 22:15 编辑
q1208c 发表于 2012-12-10 19:34
回复 9# knight_zt


[root@server~]# dmesg
[19803932.924236] ip_tables: udp match: only valid for protocol 17
[19803989.473128] ip_tables: udp match: only valid for protocol 17
[19803995.069349] ip_tables: udp match: only valid for protocol 17
[19804034.368763] ip_tables: udp match: only valid for protocol 17
[19804042.745036] ip_tables: udp match: only valid for protocol 17
[19818591.000542] ip_tables: udp match: only valid for protocol 17
[19818648.508023] ip_tables: udp match: only valid for protocol 17
[19833283.844078] ip_tables: udp match: only valid for protocol 17
[19833397.579515] ip_tables: udp match: only valid for protocol 17
[19833897.668653] ip_tables: udp match: only valid for protocol 17
[19834055.332678] ip_tables: udp match: only valid for protocol 17
[19871151.412001] ip_tables: udp match: only valid for protocol 17
[19871172.921432] ip_tables: udp match: only valid for protocol 17
[root@server~]#



这个应该是有一次我设置防火墙的时候,参数写错了,我用service iptables restart的时候它提示防火墙语法有问题,然后让我用dmesg命令查看,我打开就是上面这几条。
另外,我没有特意配置系统日志的路径,那么默认应该是/var/log/messages:

  1. Dec  9 03:01:05 server kernel: imklog 4.6.2, log source = /proc/kmsg started.
  2. Dec  9 03:01:05 server rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="424" x-info="http://www.rsyslog.com"] (re)start
  3. Dec 10 03:01:10 server logrotate: ALERT exited abnormally with [1]
复制代码
另外还有一个以日期命名的messages:
  1. Dec  2 03:01:04 server kernel: imklog 4.6.2, log source = /proc/kmsg started.
  2. Dec  2 03:01:04 server rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="424" x-info="http://www.rsyslog.com"] (re)start
  3. Dec  2 03:01:04 server logrotate: ALERT exited abnormally with [1]
  4. Dec  3 03:01:05 server logrotate: ALERT exited abnormally with [1]
  5. Dec  4 03:01:05 server logrotate: ALERT exited abnormally with [1]
  6. Dec  4 23:49:11 server yum[15803]: Installed: zlib-devel-1.2.3-27.el6.i686
  7. Dec  5 00:08:16 server yum[23276]: Updated: 1:perl-Pod-Escapes-1.04-127.el6.i686
  8. Dec  5 00:08:16 server yum[23276]: Updated: 1:perl-Module-Pluggable-3.90-127.el6.i686
  9. Dec  5 00:08:16 server yum[23276]: Updated: 3:perl-version-0.77-127.el6.i686
  10. Dec  5 00:08:18 server yum[23276]: Updated: 4:perl-libs-5.10.1-127.el6.i686
  11. Dec  5 00:08:19 server yum[23276]: Updated: 1:perl-Pod-Simple-3.13-127.el6.i686
  12. Dec  5 00:08:26 server yum[23276]: Updated: 4:perl-5.10.1-127.el6.i686
  13. Dec  5 00:08:27 server yum[23276]: Installed: perl-IO-Compress-Base-2.020-127.el6.i686
  14. Dec  5 00:08:27 server yum[23276]: Installed: 1:perl-Compress-Raw-Zlib-2.020-127.el6.i686
  15. Dec  5 00:08:27 server yum[23276]: Installed: perl-IO-Compress-Zlib-2.020-127.el6.i686
  16. Dec  5 00:08:27 server yum[23276]: Installed: perl-Compress-Zlib-2.020-127.el6.i686
  17. Dec  5 03:01:05 server logrotate: ALERT exited abnormally with [1]
  18. Dec  5 15:06:31 server kernel: [19803932.924236] ip_tables: udp match: only valid for protocol 17
  19. Dec  5 15:07:27 server kernel: [19803989.473128] ip_tables: udp match: only valid for protocol 17
  20. Dec  5 15:07:33 server kernel: [19803995.069349] ip_tables: udp match: only valid for protocol 17
  21. Dec  5 15:08:12 server kernel: [19804034.368763] ip_tables: udp match: only valid for protocol 17
  22. Dec  5 15:08:21 server kernel: [19804042.745036] ip_tables: udp match: only valid for protocol 17
  23. Dec  5 19:10:49 server kernel: [19818591.000542] ip_tables: udp match: only valid for protocol 17
  24. Dec  5 19:11:46 server kernel: [19818648.508023] ip_tables: udp match: only valid for protocol 17
  25. Dec  5 23:15:42 server kernel: [19833283.844078] ip_tables: udp match: only valid for protocol 17
  26. Dec  5 23:17:36 server kernel: [19833397.579515] ip_tables: udp match: only valid for protocol 17
  27. Dec  5 23:25:56 server kernel: [19833897.668653] ip_tables: udp match: only valid for protocol 17
  28. Dec  5 23:28:33 server kernel: [19834055.332678] ip_tables: udp match: only valid for protocol 17
  29. Dec  6 03:01:03 server logrotate: ALERT exited abnormally with [1]
  30. Dec  6 09:46:49 server kernel: [19871151.412001] ip_tables: udp match: only valid for protocol 17
  31. Dec  6 09:47:11 server kernel: [19871172.921432] ip_tables: udp match: only valid for protocol 17
  32. Dec  7 03:01:03 server logrotate: ALERT exited abnormally with [1]
  33. Dec  8 03:01:05 server logrotate: ALERT exited abnormally with [1]
  34. Dec  9 03:01:04 server rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="424" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'restart'.
  35. Dec  9 03:01:05 server kernel: Kernel logging (proc) stopped.
复制代码
上面就是防火墙异常当天的日志。请大侠过目

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
12 [报告]
发表于 2012-12-10 22:43 |只看该作者
回复 11# knight_zt


你的机器上日志好少呀.

如果能确认机器其它方面是正常的, 那可能是kernel的一个 bug.

你看看你的kernel相关的bugfix吧.
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP