summaryrefslogtreecommitdiff
path: root/etc/racoon-ph1down.sh
blob: c98d9855abb921ac687678b3a9e689cb87e43880 (plain)
1
2
3
4
5
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