From 8bc96e08cb0c613edc35bcc6c3e8028b4db9e0aa Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 20 Apr 2006 07:06:39 +0000 Subject: - fixed log-to-syslog behavior - added patch against strongswan-2.6.4 --- Source/scripts/to-bob.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 Source/scripts/to-bob.sh (limited to 'Source/scripts/to-bob.sh') diff --git a/Source/scripts/to-bob.sh b/Source/scripts/to-bob.sh new file mode 100755 index 000000000..012986484 --- /dev/null +++ b/Source/scripts/to-bob.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# enable ip forwarding for gateway +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 + +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 -- cgit v1.2.3