How iptables behaves on timezone change?

Posted by pradipta on Super User See other posts from Super User or by pradipta
Published on 2013-06-06T09:28:30Z Indexed on 2013/06/25 10:24 UTC
Read the original article Hit count: 166

Filed under:
|
|

I have doubt how iptables keep changing the info in iptables when timezone is change. I am using iptables s v 1.4.8

I have blocked one IP with following details

 # date
    Thu Jun 6 12:46:42 IST 2013

#iptables -A INPUT -s 10.0.3.128 -m time --datestart 2013-6-6T12:0:00 --datestop 2013-6-6T13:0:00 -j DROP

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 10.0.3.128 anywhere TIME starting from 2013-06-06 12:00:00 until date 2013-06-06 13:00:00

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

But after I change the timezone following things happened automatically .

AFTER TIME ZONE CHANGE +++++++++++++++++++++++

#date
Thu Jun 6 15:17:48 HKT 2013

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 10.0.3.128 anywhere TIME starting from 2013-06-06 14:30:00 until date 2013-06-06 15:30:00

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
#

The time value is changed in the rule . It is changing with the timezone how. Where iptables keeps track of timezone.

Kindly explain me.

© Super User or respective owner

Related posts about linux

Related posts about networking