LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 581|回复: 4

请教一条命令的意思

[复制链接]
发表于 2005-4-18 15:55:47 | 显示全部楼层 |阅读模式
iptables -A INPUT -m state --state ETABLISHED,RELATED -j ACCEPT
这个是做什么用的,是什么意思
发表于 2005-4-18 16:16:05 | 显示全部楼层
--state包的连接状态
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-18 16:43:58 | 显示全部楼层
完整一点,我也知道是包的连接状态,什么包的连接状态,这个命令有来做什么用的
回复 支持 反对

使用道具 举报

发表于 2005-4-19 15:12:13 | 显示全部楼层
Connection Tracking

Requires state module (-m state).

Packet STATES:
NEW         = A new connection
ESTABLISHED = Packet is part of an existing connection
RELATED     = Packet is related to an existing connection (e.g. ICMP error messages)
INVALID     = Packet doesn't belong to any other connection
               

Tracking FTP Connections:
Because of the nature of the FTP protocol, tracking ftp connections requires a special kernel module: ip_conntrack_ftp. If you wish to use NAT with ftp connection tracking, you must also load the ip_nat_ftp kernel module
回复 支持 反对

使用道具 举报

发表于 2005-4-19 20:45:58 | 显示全部楼层
数据包进来时候的状态是连接状态,或者你发出去请求的回应 可以通过
就是这个意思,我表达的可能不清楚,小学语文没学好,见谅,呵呵
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表