]>
git.ipfire.org Git - people/ms/strongswan.git/blob - Source/scripts/to-bob.sh
01298648485d2e16e172958bc41abfeeda20c0a7
3 # enable ip forwarding for gateway
4 echo 1 > /proc
/sys
/net
/ipv
4/ip_forward
6 # add connection to bob
7 MY_ADDR
=192.168.0.1 # Address of local peer, also used as ID
8 OTHER_ADDR
=192.168.0.2 # Address of remote peer, also used as ID
9 MY_CERT
=alice.der
# own certificate
10 OTHER_CERT
=bob.der
# certificate for remote peer
11 MY_NET
=10.1.0.0 # protected local subnet
12 OTHER_NET
=10.2.0.0 # protected remote subnet
13 MY_BITS
=16 # size of subnet
14 OTHER_BITS
=16 # size of subnet
15 CONN_NAME
=to-bob
# connection name
17 bin
/stroke add
$CONN_NAME $MY_ADDR $OTHER_ADDR $MY_CERT $OTHER_CERT \
18 $MY_ADDR $OTHER_ADDR $MY_NET $OTHER_NET $MY_BITS $OTHER_BITS