View Single Post
  #2 (permalink)  
Old 07-27-2007, 06:54 PM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
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.
Reply With Quote