Re: 請問一下rc.firewall的deny icmp? - BBS

Table of Contents

※ 引述《[email protected] (工程酥)》之銘言:
: /etc/rc.firewall:
: #!/bin/sh
: /sbin/ipfw -f flush
: /sbin/ipfw add deny icmp from any to myip
: /sbin/ipfw add pass all from any to any
: 設了之後人家就ping不到我了, 我也ping不出去 @@"
: 可以幫幫忙嗎?? tk's!!


icmp 有很多 type

以下供參考

$IPFW add allow icmp from me to any icmptypes 8 out via $EXTIF # echo request
$IPFW add allow icmp from any to me icmptypes 0 in via $EXTIF # echo reply
$IPFW add deny icmp from any to any




--

All Comments