Well, obviously this part (below) should only be done once on the server, as it wipes out the ipsec config each time it is run..


echo "Clearing ipsec configuration.. "
$SK <<-EOF
flush;
spdflush;
EOF