Score:1

Syslog : I am trying to generate separate iptables.log file for IPTABLES,

us flag

My Ubuntu 20.4 LTS My efforts are as follows:-

1.) Created IPTABLES rules with LOGGING by mentioning --log-prefix="IPTABLES-BLOCKED: " Logs are successfully generated by iptables, I have checked it in kern.log file

2.) I edited this file /etc/syslog.conf as follows:-

:msg,contains,"IPTABLES-BLOCKED: " -/var/log/ipv6.log & stop

3.) restarted the syslogd service sudo systemctl restart inetutils-syslogd.service

But I cannot get logs on separate file. I am not using rsyslog and syslog-ng

4.) I have given right permissions to /var/log/iptables.log i.e. 777

Does this syslog service not provide this functionality? Do I have to use syslog-ng or rsyslog?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.