openbsd pfctl -ss 时间点

OpenBSD的安装、升级、更新等日常问题。

版主: chenjun天地乾坤

回复
openbsdsir008
铁 Fe
帖子: 80
注册时间: 2014-03-20 16:19

openbsd pfctl -ss 时间点

帖子 openbsdsir008 » 2014-07-01 8:54

#pfctl -ss
看到的内容没有时间信息
如何能看到每一行信息发生的时间?

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

Re: openbsd pfctl -ss 时间点

帖子 acheng » 2014-07-01 13:43

pfctl -ss Show the current state table

代码: 全选

# pfctl -ss
all udp 255.255.255.255:10001 <- 192.168.1.1:10000       NO_TRAFFIC:SINGLE
all tcp 192.168.1.48:22 <- 218.188.93.140:57707       ESTABLISHED:ESTABLISHED
all tcp 192.168.1.48:843 <- 221.192.199.57:2000       TIME_WAIT:TIME_WAIT
all udp 255.255.255.255:67 <- 0.0.0.0:68       NO_TRAFFIC:SINGLE
all udp 192.168.1.48:48947 -> 202.112.10.36:123       SINGLE:NO_TRAFFIC
all udp 192.168.1.48:46708 -> 202.120.2.101:123       SINGLE:NO_TRAFFIC
上面的输出中,每一行代表目前存在的一个状态(state)。你的意思是想要了解每一个状态最初建立的时间?

openbsdsir008
铁 Fe
帖子: 80
注册时间: 2014-03-20 16:19

Re: openbsd pfctl -ss 时间点

帖子 openbsdsir008 » 2014-07-08 12:21

是的
我想了解这个状态最初建立的时间。
这个状态会保持多长时间?

头像
toor
钾 K
帖子: 17
注册时间: 2013-03-08 14:03

Re: openbsd pfctl -ss 时间点

帖子 toor » 2014-07-12 16:48

这个状态在第一个匹配某个规则的数据包通过时建立,有数据通过时时一直保持的。当没有数据通过,处于空闲状态时会保留多长时间,这个不清楚。需要查一下手册

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 11 访客