# Get network config
. /etc/sysconfig/network
+# Initial values
+OPTIONS=""
+
# Get service config
[ -f /etc/sysconfig/arpwatch ] && . /etc/sysconfig/arpwatch
exit 0
fi
+if [ "${NO_BOGON}" = "yes" ]; then
+ OPTIONS="-N"
+else
+ if [ -n "${LOCAL_NETWORKS}" ]; then
+ for i in ${LOCAL_NETWORKS}; do
+ OPTIONS="$OPTIONS -n $i"
+ done
+ fi
+fi
+
RETVAL=0
# See how we were called.
case "$1" in
msg_starting "arpwatch ($IFC)"
touch /var/lib/arpwatch/$IFC.dat
chown 2:2 /var/lib/arpwatch/$IFC.dat
- daemon arpwatch $NETWORKS -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon
+ daemon arpwatch $NETWORKS -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/arpwatch
done
# Name of monitored interfaces
INTERFACES=
-# networks to control
-NETWORKS=
+# Turn-off bogon logging. Sometimes it makes a lot of noise with useless
+# informations about bogons:
+#NO_BOGON="yes"
+
+# Additional local networks - usefull to avoid bogus bogons messages. You
+# can add here networks that are _not_ in your networks on interfaces.
+# Works only when NO_BOGON is not set. Multiple networks can be set here.
+LOCAL_NETWORKS=""