Re: iptables logs
Reply #6 –
You probably need to up the iptables --log-level .Default seems to be 'warning'.
I just played around with setting iptables -A INPUT -j LOG --log-level debug
and also iptables -A INPUT -j LOG --log-level debug --log-prefix "[IPTABLES] "
And then blocking all traffic. Whole bunch of entries in /var/log/everything.log but also, as a surprise to me, /var/log/iptables.log was created with the same entries.
I do not remember ever doing anything special to get an separate iptables log file but I may have done and forgotten.
Doubt it though /etc/syslog-ng/syslog-ng.conf contains
destination d_iptables { file("/var/log/iptables.log"); };
So you probably need to up the level to debug or info to see what you wish and where the logs end up will depend on how / what handles your logging and how it's setup.