http://www.360doc.com/content/14/1009/11/2633_415482198.shtml
需要先进行设置
使用iptables -t mangle -A POSTROUTING -j LOG --log-level debug --log-prefix "OUT PACKETS:"
然后修改/etc/syslog.conf
加上一行 kern.debug /var/log/iptables
重启syslog服务
这样,所有通过iptables的包就会被记录在/var/log/iptables里面