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
mangle.
What are the rules for logging POSTROUTING,PREROUTING and mangle.
Help needed.
--
Thank you
Indunil Jayasooriya