Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / ipsec-tools / src / racoon / samples / roadwarrior / server / phase1-down.sh
1 #!/bin/sh
2
3 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
4
5 # Correctly flush automatically generated SAD and SPD
6 # This should go away the day racoon will properly do the job.
7
8 echo "
9 deleteall ${REMOTE_ADDR} ${LOCAL_ADDR} esp;
10 deleteall ${LOCAL_ADDR} ${REMOTE_ADDR} esp;
11 spddelete ${INTERNAL_ADDR4}/32[any] 0.0.0.0/0[any] any 
12         -P in ipsec esp/tunnel/${REMOTE_ADDR}-${LOCAL_ADDR}/require;
13 spddelete 0.0.0.0/0[any] ${INTERNAL_ADDR4}/32[any] any 
14         -P out ipsec esp/tunnel/${LOCAL_ADDR}-${REMOTE_ADDR}/require;
15 "|setkey -c