diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-25 10:06:30 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-25 10:06:30 +0000 |
commit | 13e4a62f5c352981a93156be7749bfa712782d84 (patch) | |
tree | 16790bf1294e870da3b40f3991e258b7176f778e /Source/scripts/to-bob.sh | |
parent | a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0 (diff) | |
download | strongswan-13e4a62f5c352981a93156be7749bfa712782d84.tar.bz2 strongswan-13e4a62f5c352981a93156be7749bfa712782d84.tar.xz |
- added separate implementation for connection_store, credential_store, policy_store
- added folder structure to config
- credentials are fetched solely on IDs now
Diffstat (limited to 'Source/scripts/to-bob.sh')
-rwxr-xr-x | Source/scripts/to-bob.sh | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/Source/scripts/to-bob.sh b/Source/scripts/to-bob.sh index 012986484..df30bd893 100755 --- a/Source/scripts/to-bob.sh +++ b/Source/scripts/to-bob.sh @@ -4,16 +4,24 @@ echo 1 > /proc/sys/net/ipv4/ip_forward # add connection to bob -MY_ADDR=192.168.0.1 # Address of local peer, also used as ID -OTHER_ADDR=192.168.0.2 # Address of remote peer, also used as ID -MY_CERT=alice.der # own certificate -OTHER_CERT=bob.der # certificate for remote peer -MY_NET=10.1.0.0 # protected local subnet -OTHER_NET=10.2.0.0 # protected remote subnet -MY_BITS=16 # size of subnet -OTHER_BITS=16 # size of subnet -CONN_NAME=to-bob # connection name +MY_ADDR=192.168.0.1 # Address of local peer +OTHER_ADDR=192.168.0.2 # Address of remote peer +MY_ID="C=CH, O=Linux strongSwan, CN=alice" # ID of local peer +OTHER_ID="C=CH, O=Linux strongSwan, CN=bob" # ID of remote peer +MY_NET=10.1.0.0 # protected local subnet +OTHER_NET=10.2.0.0 # protected remote subnet +MY_BITS=16 # size of subnet +OTHER_BITS=16 # size of subnet +CONN_NAME=to-bob # connection name -bin/stroke add $CONN_NAME $MY_ADDR $OTHER_ADDR $MY_CERT $OTHER_CERT \ - $MY_ADDR $OTHER_ADDR $MY_NET $OTHER_NET $MY_BITS $OTHER_BITS -
\ No newline at end of file +bin/stroke add $CONN_NAME "$MY_ID" "$OTHER_ID" $MY_ADDR $OTHER_ADDR $MY_NET $OTHER_NET $MY_BITS $OTHER_BITS + +# initiate +i=0 +LIMIT=0 + +while [ "$i" -lt "$LIMIT" ] +do + bin/stroke up $CONN_NAME + let "i += 1" +done |