summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorssouhlal <ssouhlal@FreeBSD.org>2005-02-23 15:07:36 +0000
committerssouhlal <ssouhlal@FreeBSD.org>2005-02-23 15:07:36 +0000
commitec1c427a3190d080b19872ee41533cdaca142fa5 (patch)
tree6ba6d6292022c3835131a2ba72330f2256681af5 /etc/periodic
parent5722d64390c1ea70909dffc79930c6fd2e04f3d9 (diff)
downloadFreeBSD-src-ec1c427a3190d080b19872ee41533cdaca142fa5.zip
FreeBSD-src-ec1c427a3190d080b19872ee41533cdaca142fa5.tar.gz
Replace "ipfw l", which is now deprecated, with "ipfw list".
Approved by: grehan (mentor)
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/security/500.ipfwdenied2
-rwxr-xr-xetc/periodic/security/550.ipfwlimit2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/security/500.ipfwdenied b/etc/periodic/security/500.ipfwdenied
index 22c63e9..6a6fb8b4 100755
--- a/etc/periodic/security/500.ipfwdenied
+++ b/etc/periodic/security/500.ipfwdenied
@@ -42,7 +42,7 @@ rc=0
case "$daily_status_security_ipfwdenied_enable" in
[Yy][Ee][Ss])
TMP=`mktemp -t security`
- if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then
+ if ipfw -a list 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then
check_diff new_only ipfw ${TMP} "${host} ipfw denied packets:"
fi
rc=$?
diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit
index 65e8bd2..912d009 100755
--- a/etc/periodic/security/550.ipfwlimit
+++ b/etc/periodic/security/550.ipfwlimit
@@ -45,7 +45,7 @@ case "$daily_status_security_ipfwlimit_enable" in
TMP=`mktemp -t security`
IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
if [ $? -eq 0 ] && [ "${IPFW_LOG_LIMIT}" -ne 0 ]; then
- ipfw -a l | grep " log " | \
+ ipfw -a list | grep " log " | \
grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \
awk -v limit="$IPFW_LOG_LIMIT" \
'{if ($2 > limit) {print $0}}' > ${TMP}
OpenPOWER on IntegriCloud