树莓派(Debian)系统开启iptables的raw表实现日志输出

说明:可能Debian默认不开启iptables的raw表,所以无法通过其实现日志跟踪。

日志跟踪:http://www.cnblogs.com/EasonJim/p/8413563.html

解决方法:

modprobe ipt_LOG
modprobe nf_log_ipv4
sysctl net.netfilter.nf_log.2=nf_log_ipv4

查看日志:/var/log/syslog或者/var/log/kern.log或者/var/log/messages

 

参考:

https://serverfault.com/questions/385937/how-to-enable-iptables-trace-target-on-debian-squeeze-6/529854

posted @ 2018-02-07 15:24  EasonJim  阅读(1859)  评论(0编辑  收藏  举报