在规则中,怎么写明icmp是echo-request和echo-rely

由 yangjun 在 05-19-2003 09:19 发表:

在规则中,怎么写明icmp是echo-request和echo-rely

我写的

iptables -a INPUT -p ICMP -s $MYIDDR echo-request -j ACCEPT

iptables -a INPUT -p ICMP -s $ANYWHERE echo-rely -j ACCEPT

但运行后说echo-request ,echo-rely 是bad argument

我换成8,0 后仍然是bad argument

请哪位高手指教一下,在下不胜感激!


由 chouyouyou 在 05-19-2003 14:34 发表:


用icmp type的数字试试。

echo-request 是 8

echo-reply 是 0


由 doooom 在 05-19-2003 14:35 发表:


我觉得icmp这个地方用limit限制一下就好了。其他都drop。


发行版再好,不如自己做的lfs好。


由 yangjun 在 05-22-2003 20:53 发表:


谢谢版主,我改成

$IPTABLES -A OUTP

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus