diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-28 07:14:48 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-28 07:14:48 +0000 |
commit | 997358a6c475c8886cce388ab325184a1ff733c9 (patch) | |
tree | 27a15790e030fc186d00cd710d2a3540f4defe69 /Source/scripts | |
parent | 52923c9acb349adec3d1cc039e7a74c2e822da6e (diff) | |
download | strongswan-997358a6c475c8886cce388ab325184a1ff733c9.tar.bz2 strongswan-997358a6c475c8886cce388ab325184a1ff733c9.tar.xz |
- import of strongswan-2.7.0
- applied patch for charon
Diffstat (limited to 'Source/scripts')
-rw-r--r-- | Source/scripts/alice-key.der | bin | 1190 -> 0 bytes | |||
-rw-r--r-- | Source/scripts/alice.der | bin | 764 -> 0 bytes | |||
-rw-r--r-- | Source/scripts/bob-key.der | bin | 1187 -> 0 bytes | |||
-rw-r--r-- | Source/scripts/bob.der | bin | 759 -> 0 bytes | |||
-rw-r--r-- | Source/scripts/complex1.der | bin | 934 -> 0 bytes | |||
-rw-r--r-- | Source/scripts/complex2.der | bin | 956 -> 0 bytes | |||
-rwxr-xr-x | Source/scripts/daemon-loop.sh | 13 | ||||
-rwxr-xr-x | Source/scripts/deleteline | 9 | ||||
-rwxr-xr-x | Source/scripts/replace | 9 | ||||
-rwxr-xr-x | Source/scripts/to-alice.sh | 27 | ||||
-rwxr-xr-x | Source/scripts/to-bob.sh | 27 |
11 files changed, 0 insertions, 85 deletions
diff --git a/Source/scripts/alice-key.der b/Source/scripts/alice-key.der Binary files differdeleted file mode 100644 index 5a8aef6cb..000000000 --- a/Source/scripts/alice-key.der +++ /dev/null diff --git a/Source/scripts/alice.der b/Source/scripts/alice.der Binary files differdeleted file mode 100644 index 8154defd9..000000000 --- a/Source/scripts/alice.der +++ /dev/null diff --git a/Source/scripts/bob-key.der b/Source/scripts/bob-key.der Binary files differdeleted file mode 100644 index f944dec9f..000000000 --- a/Source/scripts/bob-key.der +++ /dev/null diff --git a/Source/scripts/bob.der b/Source/scripts/bob.der Binary files differdeleted file mode 100644 index 401611888..000000000 --- a/Source/scripts/bob.der +++ /dev/null diff --git a/Source/scripts/complex1.der b/Source/scripts/complex1.der Binary files differdeleted file mode 100644 index ba460cbee..000000000 --- a/Source/scripts/complex1.der +++ /dev/null diff --git a/Source/scripts/complex2.der b/Source/scripts/complex2.der Binary files differdeleted file mode 100644 index 160b21f47..000000000 --- a/Source/scripts/complex2.der +++ /dev/null diff --git a/Source/scripts/daemon-loop.sh b/Source/scripts/daemon-loop.sh deleted file mode 100755 index 9a361e012..000000000 --- a/Source/scripts/daemon-loop.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -while [ 1 ] -do - ip x p f - ip x s f - rm /var/run/charon.* - make - bin/charon - echo "" - echo "----------------------------" - echo "" -done diff --git a/Source/scripts/deleteline b/Source/scripts/deleteline deleted file mode 100755 index 9f529dccc..000000000 --- a/Source/scripts/deleteline +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -FILES=`find . -name '*.[ch]'` -for FILE in $FILES -do - TMP=${FILE}_tmp - sed "/$1/d" < $FILE > $TMP - mv $TMP $FILE -done diff --git a/Source/scripts/replace b/Source/scripts/replace deleted file mode 100755 index adfc8e09a..000000000 --- a/Source/scripts/replace +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -FILES=`find . -name '*.[ch]'` -for FILE in $FILES -do - TMP=${FILE}_tmp - sed "s/$1/$2/g" < $FILE > $TMP - mv $TMP $FILE -done diff --git a/Source/scripts/to-alice.sh b/Source/scripts/to-alice.sh deleted file mode 100755 index 01ba27f5b..000000000 --- a/Source/scripts/to-alice.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# enable ip forwarding for gateway -echo 1 > /proc/sys/net/ipv4/ip_forward - -# add connection to alice -MY_ADDR=192.168.0.2 # Address of local peer -OTHER_ADDR=192.168.0.1 # Address of remote peer -MY_ID="C=CH, O=Linux strongSwan, CN=bob" # ID of local peer -OTHER_ID="C=CH, O=Linux strongSwan, CN=alice" # ID of remote peer -MY_NET=10.2.0.0 # protected local subnet -OTHER_NET=10.1.0.0 # protected remote subnet -MY_BITS=16 # size of subnet -OTHER_BITS=16 # size of subnet -CONN_NAME=to-alice # connection name - -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=1 - -while [ "$i" -lt "$LIMIT" ] -do - bin/stroke up $CONN_NAME - let "i += 1" -done diff --git a/Source/scripts/to-bob.sh b/Source/scripts/to-bob.sh deleted file mode 100755 index df30bd893..000000000 --- a/Source/scripts/to-bob.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/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 -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_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 |