|
|
我想将自己的机器配置成“用于共享intelnet连接的防火墙”
我的linux有两块网卡:eth1为外网(211.71.233.78) eth0为内网(192.168.2.1)
然后找了一台机器作为内网的机器,配置ip(192.168.2.2)
但是在编写码时出现了如下问题:
[root@zhang root]# iptables -A INPUT -p ALL -i eth0 -s 192.168.2.0/24 -j ACCEPT
[root@zhang root]# iptables -A INPUT -p ALL -i io -s 127.0.0.1 -j ACCEPT
[root@zhang root]# iptables -A INPUT -p ALL -i io -s 192.168.2.1 -j ACCEPT
[root@zhang root]# iptables -A INPUT -P ALL -i io -s 211.71.233.78 -j ACCEPT
iptables v1.2.7a: Can't use -P with -A
Try `iptables -h' or 'iptables --help' for more information.
[root@zhang root]# iptables -A INPUT -P ALL -i eth0 -s 192.168.2.255 -j ACCEPT
iptables v1.2.7a: Can't use -P with -A
Try `iptables -h' or 'iptables --help' for more information.
这是怎么回事呢?为什么不可以使用-P,-A这两个参数呢? |
|