I want to understand meaning of records in /proc/net/xt_recent/ip_list
file (which is created by recent
extension of iptables
), e.g:
src=127.0.0.1 ttl: 128 last_seen: 4298627364 oldest_pkt: 3 4298623492, 4298625777, 4298627364
All fields look pretty obvious and last_look
look like timestamp. But it isn't timestamp in UNIX-time format. Being converted as UNIX-time is equal 03/21/2106 18:19:24. Evidently it isn't a "last seen" time.
How can I extract correct value from last_seen
time?
Thank you.
UPDATE
Just to avoid misconception:
$ date
Mon Jun 15 14:14:00 MSK 2015
Best Answer
This should works:
And there is an output of your example:
Timezone may differ from you regional settings
Also you can check https://stackoverflow.com/questions/2731463/converting-jiffies-to-milli-seconds