added a "ipsec down-srcip <start> [<end>]" command to terminate IKE_SAs by remote virtual ip

This commit is contained in:
Martin Willi
2008-07-01 12:48:56 +00:00
parent d01783dba4
commit 131064995a
8 changed files with 141 additions and 0 deletions
+15
View File
@@ -116,6 +116,21 @@ down)
fi
exit "$rc"
;;
down-srcip)
shift
if [ "$#" -lt 1 ]
then
echo "Usage: ipsec down-srcip <start> [<end>]"
exit 2
fi
rc=7
if [ -e $IPSEC_CHARON_PID ]
then
$IPSEC_STROKE down-srcip $*
rc="$?"
fi
exit "$rc"
;;
listalgs|listpubkeys|\listcards|\rereadgroups)
op="$1"
shift