#!/bin/bash # The directory where are stored the allowed clients CLIENTS_DIR="/etc/racoon/allowed_clients" # Path to the setkey command SETKEY="/usr/sbin/setkey" # IP of this machine IP="192.168.3.1" if [ ! -d $CLIENTS_DIR ]; then echo "Clients dir doesn't exists, giving up." exit 1; fi # Cleaning the old SAs and SPs $SETKEY -c <