Solved Issue with iptables logging in Kamoj addon 5.4b6

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

R. Gerrits

Senior Member
Running addon version 5.4b6 and have some issues with iptables logs.

After reboot, I do get iptables log messages in /var/log/log-message (messages from aegis blocking some connections).
After some time, those iptables log messages are no longer logged there.
(this time latest message was 9984:[ 9983.118994] [aegis] IN=brwan....)

dmesg also does not work. (shows nothing)

If I disable "Save the system logs to USB. (or /opt/kamoj/logs if no USB detected)" then dmesg starts working again.
dmesg then also shows the latest iptables log messages.

But these iptables log messages are still not appended to /var/log/log-message
(that only continues to show messages from DHCP or admin login)

Any ideas what could cause this??

EDIT:
I do see that with "Save the system logs to USB" dmesg logs indeed are on /mnt/sda1/system_logs/dmesg.txt.
But I think aegis is only looking at /var/log/log-message
 
Last edited:

kamoj

Very Senior Member
I have the same issue, the Aegis logs stops being output to /var/log/log-message after uptime 9989 for me.
The aegis logs are still coming in the dmesg log though.

Running addon version 5.4b6 and have some issues with iptables logs.

After reboot, I do get iptables log messages in /var/log/log-message (messages from aegis blocking some connections).
After some time, those iptables log messages are no longer logged there.
(this time latest message was 9984:[ 9983.118994] [aegis] IN=brwan....)

dmesg also does not work. (shows nothing)

If I disable "Save the system logs to USB. (or /opt/kamoj/logs if no USB detected)" then dmesg starts working again.
dmesg then also shows the latest iptables log messages.

But these iptables log messages are still not appended to /var/log/log-message
(that only continues to show messages from DHCP or admin login)

Any ideas what could cause this??

EDIT:
I do see that with "Save the system logs to USB" dmesg logs indeed are on /mnt/sda1/system_logs/dmesg.txt.
But I think aegis is only looking at /var/log/log-message
 
  • Like
Reactions: KW.

kamoj

Very Senior Member
Ok, found out how to get the Aegis logs back...
Don't know what kind of bug it is. Probably we need @Voxel to solve that riddle.
Code:
 echo "N" >/sys/module/printk/parameters/time

I also set this but don't know if it matters:
Code:
dmesg -n 8
I set this to Y in my add-on to get timestamps on dmesg events.
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top