[CentOS] iptables logging

Tue Mar 6 07:52:49 UTC 2007
Indunil Jayasooriya <indunil75 at gmail.com>

I am having below 3 rules for Logging with iptables . They are INPUT,FORWARD
and OUTPUT chains.

#Log INPUT chain
iptables -A INPUT -j LOG --log-level 7 --log-prefix "INPUT: "

#Log FORWARD chain
iptables -A FORWARD -j LOG --log-level 7 --log-prefix "FORWARD: "

#Log OUTPUT chain
iptables -A OUTPUT -j LOG --log-level 7 --log-prefix "OUTPUT: "

In addition to that, I want to have logging for POSTROUTING,PREROUTING and

What are the rules for logging POSTROUTING,PREROUTING and mangle.

Help needed.

Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20070306/35b6321f/attachment-0004.html>