netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Iptables "-m time" option doesn't update when the clock changes
@ 2012-03-29  9:10 Sebastian Arcus
  2012-03-29  9:12 ` Jan Engelhardt
  0 siblings, 1 reply; 13+ messages in thread
From: Sebastian Arcus @ 2012-03-29  9:10 UTC (permalink / raw)
  To: netfilter

I'm using the following line in my iptables firewall to block internet 
access for one of the machines on the network for one hour a day:

Code:

iptables -A FORWARD -p ALL -o $INET_IFACE -m mac --mac-source 
$BLOCKED_MAC1 -m time --timestart $BLOCKED_TIMESTART1 --timestop 
$BLOCKED_TIMESTOP1 -j DROP


Everything works fine - except that when the clocks change from winter 
time to summer time (in UK) - the rule keeps on working on the old time. 
The clock of this server (checked with "date") updates correctly. If I 
restart the server - the rule finally starts working on the correct 
time. Last year when this happened, I posted here and I was advised to 
change the hardware clock to UTC (from local time) - which I did. 
However, now that the clock just changed again from winter time to 
summer time - the user is complaining again that their Internet access 
slot is off by an hour.

Does anybody know why is this happening?

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-04-04 13:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29  9:10 Iptables "-m time" option doesn't update when the clock changes Sebastian Arcus
2012-03-29  9:12 ` Jan Engelhardt
2012-03-29  9:30   ` Sebastian Arcus
2012-03-29 10:00     ` Jan Engelhardt
2012-03-29 10:21       ` Sebastian Arcus
2012-03-29 10:45         ` Jan Engelhardt
2012-03-29 13:45         ` /dev/rob0
2012-04-02 19:57           ` Sebastian Arcus
2012-04-02 22:07             ` /dev/rob0
2012-04-03 11:31               ` Sebastian Arcus
2012-04-04  9:35                 ` John Haxby
2012-04-04 13:14                   ` /dev/rob0
2012-04-04 13:52                     ` John Haxby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).