军哥问一下 关于 《iptables防火墙的基本应用教程 》的问题!
# 允许已建立的或相关连的通行iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
通过ssh 运行此命令时 提示 :【在网上搜了一下,有人说是:openvz 没有把 MASQ 模块虚拟化 】不明白 求解
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables: No chain/target/match by that name.
还有这个:#service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found
#service iptables status
Table: mangle
Chain PREROUTING (policy ACCEPT)
numtarget prot opt source destination
Chain INPUT (policy ACCEPT)
numtarget prot opt source destination
Chain FORWARD (policy ACCEPT)
numtarget prot opt source destination
Chain OUTPUT (policy ACCEPT)
numtarget prot opt source destination
Chain POSTROUTING (policy ACCEPT)
numtarget prot opt source destination
Table: filter
Chain INPUT (policy ACCEPT)
numtarget prot opt source destination
Chain FORWARD (policy ACCEPT)
numtarget prot opt source destination
Chain OUTPUT (policy ACCEPT)
numtarget prot opt source destination
请问是什么原因 谢谢
[ 本帖最后由 fastbits 于 2012-6-28 17:05 编辑 ] openvz相当于阉割的,有些是不支持的。
回复 2# 的帖子
问题是输入其他命令没有报错是和我安装的版本有关系吗 CentOS 6 32 bit保存问题 ,查了一下是缺少policycoreutils这个包 安装上就好了。
#service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found【之前其实虽然报错,但是配置也还是可以保存的?】
#service iptables status 也没问题了 现在的问题就是
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables: No chain/target/match by that name.
[ 本帖最后由 fastbits 于 2012-6-28 21:58 编辑 ]
页:
[1]