From: Sebastian Arcus <shop@open-t.co.uk>
To: netfilter@vger.kernel.org
Subject: Iptables "-m time" option doesn't update when the clock changes
Date: Thu, 29 Mar 2012 10:10:18 +0100 [thread overview]
Message-ID: <4F7426FA.2060902@open-t.co.uk> (raw)
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?
next reply other threads:[~2012-03-29 9:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 9:10 Sebastian Arcus [this message]
2012-03-29 9:12 ` Iptables "-m time" option doesn't update when the clock changes 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7426FA.2060902@open-t.co.uk \
--to=shop@open-t.co.uk \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.