iptables 最近的 proc 文件的时间戳格式是什么?

sha*_*ote 3 iptables timestamp

我想了解文件中记录的含义(由扩展名/proc/net/xt_recent/ip_list创建),例如:recentiptables

src=127.0.0.1 ttl: 128 last_seen: 4298627364 oldest_pkt: 3 4298623492, 4298625777, 4298627364
Run Code Online (Sandbox Code Playgroud)

所有字段看起来都非常明显并且last_look看起来像时间戳。但它不是 UNIX 时间格式的时间戳。转换为 UNIX 时间等于 03/21/2106 18:19:24。显然这不是“最后一次见面”的时间。

如何从last_seen时间中提取正确的值?

谢谢。

更新

只是为了避免误解:

$ date 
Mon Jun 15 14:14:00 MSK 2015
Run Code Online (Sandbox Code Playgroud)

小智 5

我写了这个:

https://github.com/peppelinux/xt_recent_parser

输出是这样的:

python3 xt_recent_parser.py 
XT_RECENT python parser
<giuseppe.demarco@unical.it>


114.241.108.160, last seen: 2017-03-25 18:21:42 after 13 Connections 
46.165.210.17, last seen: 2017-03-25 13:07:54 after 10 Connections 
61.53.219.162, last seen: 2017-03-25 17:39:17 after 20 Connections 
179.37.141.232, last seen: 2017-03-25 18:08:23 after 2 Connections 
114.42.117.39, last seen: 2017-03-25 13:22:14 after 18 Connections 
177.12.84.234, last seen: 2017-03-25 16:22:14 after 17 Connections 
Run Code Online (Sandbox Code Playgroud)