netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Arcus <shop@open-t.co.uk>
To: netfilter@vger.kernel.org
Subject: Iptables, timestart and timestop arguments and daylight saving time in UK
Date: Tue, 29 Mar 2011 14:47:07 +0100	[thread overview]
Message-ID: <4D91E2DB.4020801@open-t.co.uk> (raw)

Hi all,

The clock changed over the weekend in the UK by one hour (daylight 
saving time). I a setup where I block some MAC addresses access to the 
Internet based on time, using iptables, "timestart" and "timestop" 
arguments. The command is the following:

iptables -A FORWARD -p ALL -o eth0 -m mac  --mac-source  $BLOCKED_MAC1 \
    -m time --timestart 13:00 --timestop 12:00 -j DROP


After the weekend, the server kept on blocking as per the old winter 
time. I checked the server time with the "date" command and the time on 
the client machine (Windows XP) - and in both places the clock is 
updated as per new time / summer time. The iptables on server kept on 
blocking according to winter time for two days. Even restarting the 
iptables script (which flushes the tables) didn't make a different. 
Finally, when I restarted the whole server, it started blocking 
according to new summer time. Here is the setup:

Client: Windows XP Home
Server: Slackware 13.0
Kernel: 2.6.29.6
Iptables: 1.4.3.2

Is this a known bug in the kernel, or am I doing something wrong?

Thanks for any contributions,

Sebastian

                 reply	other threads:[~2011-03-29 13:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D91E2DB.4020801@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 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).