|
This is still easier to do with a shell script. The script would look like this:
#! /bin/bash
ipsec pluto
ipsec whack --name new --host $1 --to --host $2 --psk
ipsec whack --listen
ipsec whack --initiate
The $1 and $2 represent the first and second params from the command line.
|