Changed ipfw grep string: reject rules are now listed as deny, reset,
or unreach.
This commit is contained in:
parent
72603302dc
commit
c6ca8e3387
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# @(#)security 5.3 (Berkeley) 5/28/91
|
||||
# $Id: security,v 1.20 1997/03/03 07:03:50 mpp Exp $
|
||||
# $Id: security,v 1.21 1997/08/01 01:25:21 brian Exp $
|
||||
#
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
LC_ALL=C; export LC_ALL
|
||||
@ -53,7 +53,7 @@ echo "checking for uids of 0:"
|
||||
awk 'BEGIN {FS=":"} $3=="0" {print $1,$3}' /etc/master.passwd
|
||||
|
||||
# show denied packets
|
||||
if ipfw -a l 2>/dev/null | egrep "deny|reject" > $TMP; then
|
||||
if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > $TMP; then
|
||||
if [ ! -f $LOG/ipfw.today ] ; then
|
||||
separator
|
||||
echo "no $LOG/ipfw.today"
|
||||
|
Loading…
x
Reference in New Issue
Block a user