aeav
03-20-2005, 05:09 PM
well, I have a mistake, when I try to execute these commands:
cmd="ipfw -q add"
interface="em0"
# bloqueiar o netbios
$cmd 0021 deny tcp from any to any 137 in via $interface
$cmd 0022 deny tcp from any to any 138 in via $interface
$cmd 0023 deny tcp from any to any 139 in via $interface
$cmd 0024 deny tcp from any to any 81 in via $interface
the system give-me it:
root@server01:~$sh firewall.sh
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
How can I resolve it?
thank you
cmd="ipfw -q add"
interface="em0"
# bloqueiar o netbios
$cmd 0021 deny tcp from any to any 137 in via $interface
$cmd 0022 deny tcp from any to any 138 in via $interface
$cmd 0023 deny tcp from any to any 139 in via $interface
$cmd 0024 deny tcp from any to any 81 in via $interface
the system give-me it:
root@server01:~$sh firewall.sh
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
ipfw: getsockopt(IP_FW_ADD): Protocol not available
How can I resolve it?
thank you