|
发表于 2005-10-14 19:46:48
|
显示全部楼层
Post by netjune
#iptables -A INPUT -i eth0 -p tcp -state RELATED -j ACCEPT
Bad argument `RELATED'
Try `iptables -h' or 'iptables --help' for more information.
#iptables -A INPUT -i eth0 -p tcp --ctstate RELATED -j DROP
iptables v1.3.3: Unknown arg `--ctstate'
Try `iptables -h' or 'iptables --help' for more information.
#iptables -A INPUT -i eth0 -dports 1:23 -j ACCEPT
Bad argument `1:23'
Try `iptables -h' or 'iptables --help' for more information.
#iptables -A INPUT -i eth0 -dports 1,23 -j ACCEPT
Bad argument `1,23'
Try `iptables -h' or 'iptables --help' for more information.
所有target都编进bzImage了,怕记不住
可能是kernel版本老吧,2.6.9的。难道是用法错误吗?
#iptables -A INPUT -i eth0 -p tcp -state RELATED -j ACCEPT
- #iptables -A INPUT-i eth0 -p tcp -m state --state RELATED -j ACCEPT
复制代码
#iptables -A INPUT -i eth0 -p tcp --ctstate RELATED -j DROP
- #iptables -A INPUT -i eth0 -p tcp -m conncrack --ctstate RELATED -j DROP
复制代码
#iptables -A INPUT -i eth0 -dports 1:23 -j ACCEPT
- #iptables -A INPUT -i eth0 -p tcp --dport 1:23 -j ACCEPT
复制代码
#iptables -A INPUT -i eth0 -dports 1,23 -j ACCEPT
- #iptables -A INPUT -i eth0 -p tcp -m multiport --dports 1,23 -j ACCEPT
复制代码 |
|