※ 引述《AndyLie.bbs@bbs.wretch.cc (工程酥)》之銘言:
: /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
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.253.33