diff options
Diffstat (limited to 'etc/racoon-ph1down.sh')
-rwxr-xr-x | etc/racoon-ph1down.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/racoon-ph1down.sh b/etc/racoon-ph1down.sh new file mode 100755 index 0000000..c98d985 --- /dev/null +++ b/etc/racoon-ph1down.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Purge opennhrp entries only if this was the last ISAKMP phase1 +if [ -z "`racoonctl -ll show-sa isakmp | grep "$LOCAL_ADDR\.[0-9]* * $REMOTE_ADDR\.[0-9]* "`" ]; then + opennhrpctl cache purge nbma $REMOTE_ADDR local-nbma $LOCAL_ADDR +fi |