LinuxSir.cn,穿越时空的Linuxsir!

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

iptables中无法使用--state

[复制链接]
发表于 2004-3-1 14:05:40 | 显示全部楼层 |阅读模式
各位高手,本人在使用iptables坐端口映射的时候,参考别人的意见,准备打开FORWARD链。但是不知道为什么无法使用。命令如下:望各位高手指点
iptables -t nat -A PREROUTING -d a.b.c.d -p tcp --dport 80 -j DNAT --to 192.168.1.10(无提示,正确)
iptables -A FORWARD -o eth0 -d 192.168.1.10 -p tcp --dport 80 -j ACCEPT(无提示,正确)
iptables -A FORWARD -i eth0 -s 192.168.1.10 -p tcp --sport 80 -m --state ESTABLISHED -j ACCEPT
提示为:iptables1.2.7a: Couldn't load match '--state' :/lib/iptables/libipt_state.so: cannot open shared object file :No such file of directory
本人在两台计算机上实验,均出现如上提示。而在相应目录下也有libipt_state.so.望各位高手指点
 楼主| 发表于 2004-3-1 14:43:36 | 显示全部楼层

已经解决

已经解决,原因是因为在-m 后边少加了一个state,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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