- 论坛徽章:
- 0
|
如何将一个已经创建TCP连接断开?
原帖由 "wufeiwf"]不管用,我对iptables只是了解,但是我的理解和txkss一样,这种方式对已经建立的tcp连接有用吗?而且我用你的命令试过了,没有断开[/quote 发表:
你是怎么试的?
man iptables
[quote]
state
This module, when combined with connection tracking, allows access to
the connection tracking state for this packet.
--state state
Where state is a comma separated list of the connection states
to match. Possible states are INVALID meaning that the packet
could not be identified for some reason which includes running
out of memory and ICMP errors which don't correspond to any
known connection, ESTABLISHED meaning that the packet is associ-
ated with a connection which has seen packets in both direc-
tions, NEW meaning that the packet has started a new connection,
or otherwise associated with a connection which has not seen
packets in both directions, and RELATED meaning that the packet
is starting a new connection, but is associated with an existing
connection, such as an FTP data transfer, or an ICMP error. |
|