Skip to contentSkip to conversation

IPTables stops logging after long uptime

DISCUSSION Fabrice MARIE 3 participants 3 messages Feb 9, 2003 – Feb 11, 2003

lore
Share & tools
lore
#0 lore raw

Anybody had this problem ?

[I don't have this problem since my
uptime is never that long..]

Have a nice day,

Fabrice.

---------- Forwarded Message ----------

Subject: IPTables stops logging after long uptime
Date: Saturday 08 February 2003 01:21
From: Chris Travers <[email protected]>
To: [email protected]

Hi all--

I was wondering if anyone has seen similar problems with IPTables/Netfilter.

I am running a firewall which consists of a small system (AMD K5 @133MHz w/32 MB Ram). It has 2 3c509 ethernet cards, is running FreeS/wan, and IPTables. It also has all QoS options enabled. The kernel is compiled without support for LKM so all of these are statically linked. I am running the Linux Kernel 2.4.18.

If the system has been up for a month or so and I try to reapply the firewall rules, something odd happens. Instead of getting the normal IPTables entries:
Feb 2 18:29:47 fwhost -- MARK --

Rebooting solves the problem. As the kernel is entirely statically linked, I can't remove and reinstall the IPTables module into the kernel. Note that restarting Syslog does not solve the problem, and syslog does log everything else correctly. so the problem appears to be with the kernel at this point.

Any ideas what causes this? Or should I file a bug with the Linux Kernel email list?

Best Wishes,
Chris Travers
-----------------------------------------

--
Fabrice MARIE

"Silly hacker, root is for administrators"
-Unknown

#1 lore raw
Quoted 4 lines · Fabrice MARIE

Anybody had this problem ?

[I don't have this problem since my
uptime is never that long..]

I have the same behaviour...
I looked at logs after I read this mail. Uptime of my system is 84 days and I do not see any syslog firewall entries in my oldest rotated logs... so it happened a lot time ago.. [Also I have simmilar problem with crontab which pauses logging after few days..]

2.4.19-grsec; iptables v1.2.7a

Regards
tw

Signature · 4 lines
----------------
 ck.eter.tym.pl

"Never let shooling disturb Your education"
#2 lore raw
Quoted 6 lines · Tomasz Wrona
Quoted 4 lines · Fabrice MARIE

Anybody had this problem ?

[I don't have this problem since my
uptime is never that long..]

Quoted 7 lines

I have the same behaviour...
I looked at logs after I read this mail. Uptime of my system is 84 days and I do not see any syslog firewall entries in my oldest rotated logs... so it happened a lot time ago.. [Also I have simmilar problem with crontab which pauses logging after few days..]

2.4.19-grsec; iptables v1.2.7a

I too had a problem with Iptables logs vanishing after a while.
I found it was entirely due to a misconfiguration of syslog, in which when the log files were rolled, the restart of syslogd started it with the wrong settings, resulting in the messages from iptables >/dev/null as they were of insufficient priority.

It was sufficiently mysterious to me at the time to seem magical.. *grin*

Alistair

FYI it was on Slackware 7.1, iptables 1.2.5ish setup ...