::::::::::::::
/usr/local/bin/flow-to
::::::::::::::
#!/bin/sh
#
# usage
# flow-to ip [mask]
#
tmp3=/tmp/lo3.$$
#
srchost=$1
srcmask=$2
if [ "X$srcmask" = "X" ]
then
srcmask="0.0.0.0"
fi
echo "ip access-list standard scan permit $srchost $srcmask" > $tmp3
flow-filter -f $tmp3 -D scan
rm $tmp3
::::::::::::::
/usr/local/bin/flow-from
::::::::::::::
#!/bin/sh
#
# usage
# flow-from ip [mask]
# flows input on stdin, output to stdout
#
tmp3=/tmp/lo3.$$
#
srchost=$1
srcmask=$2
if [ "X$srcmask" = "X" ]
then
srcmask="0.0.0.0"
fi
echo "ip access-list standard scan permit $srchost $srcmask" > $tmp3
flow-filter -f $tmp3 -S scan
rm $tmp3
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools