east:~#
 TESTNAME=interop-ikev2-strongswan-03-psk-initiator
east:~#
 EAST_USERLAND="strongswan"
east:~#
 source /testing/pluto/bin/eastlocal.sh
east:~#
 /usr/local/strongswan/sbin/ipsec start
Starting strongSwan 4.1.10 IPsec [starter]...
ipsec_starter[849]: Starting strongSwan 4.1.10 IPsec [starter]...
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directory
pluto[857]: Starting Pluto (strongSwan Version 4.1.10 THREADS VENDORID)
pluto[857]:   including NAT-Traversal patch (Version 0.6c) [disabled]
pluto[857]: ike_alg: Activating OAKLEY_AES_CBC encryption: Ok
pluto[857]: ike_alg: Activating OAKLEY_BLOWFISH_CBC encryption: Ok
pluto[857]: ike_alg: Activating OAKLEY_SERPENT_CBC encryption: Ok
pluto[857]: ike_alg: Activating OAKLEY_SHA2_256 hash: Ok
pluto[857]: ike_alg: Activating OAKLEY_SHA2_384 hash: Ok
pluto[857]: ike_alg: Activating OAKLEY_SHA2_512 hash: Ok
pluto[857]: ike_alg: Activating OAKLEY_TWOFISH_CBC encryption: Ok
pluto[857]: ike_alg: Activating OAKLEY_TWOFISH_CBC_SSH encryption: Ok
pluto[857]: Testing registered IKE encryption algorithms:
pluto[857]:   OAKLEY_BLOWFISH_CBC self-test not available
pluto[857]:   OAKLEY_3DES_CBC self-test not available
pluto[857]:   OAKLEY_AES_CBC self-test not available
pluto[857]:   OAKLEY_SERPENT_CBC self-test not available
pluto[857]:   OAKLEY_TWOFISH_CBC self-test not available
pluto[857]:   OAKLEY_TWOFISH_CBC_SSH self-test not available
pluto[857]: Testing registered IKE hash algorithms:
pluto[857]:   OAKLEY_MD5 hash self-test passed
pluto[857]:   OAKLEY_MD5 hmac self-test passed
pluto[857]:   OAKLEY_SHA hash self-test passed
pluto[857]:   OAKLEY_SHA hmac self-test passed
pluto[857]:   OAKLEY_SHA2_256 hash self-test passed
pluto[857]:   OAKLEY_SHA2_256 hmac self-test passed
pluto[857]:   OAKLEY_SHA2_384 hash self-test passed
pluto[857]:   OAKLEY_SHA2_384 hmac self-test passed
pluto[857]:   OAKLEY_SHA2_512 hash self-test passed
pluto[857]:   OAKLEY_SHA2_512 hmac self-test passed
pluto[857]: All crypto self-tests passed
pluto[857]: Using Linux 2.6 IPsec interface code
east:~#
 /testing/pluto/bin/wait-until-pluto-started
pluto[857]: listening for IKE messages
pluto[857]: adding interface lo/lo 127.0.0.1:500
pluto[857]: adding interface eth2/eth2 192.9.2.23:500
pluto[857]: adding interface eth1/eth1 192.1.2.23:500
pluto[857]: adding interface eth0/eth0 192.0.2.254:500
pluto[857]: loading secrets from "/tmp/strongswan/etc/ipsec.secrets"
pluto[857]:   loaded shared key for @west @east 
pluto[857]: added connection description "westnet--eastnet-ikev2"
east:~#
 echo done
done
east:~#
 /usr/local/strongswan/sbin/ipsec up westnet--eastnet-ikev2
initiating IKE_SA 'westnet--eastnet-ikev2' to 192.1.2.45
IKE_SA 'westnet--eastnet-ikev2' state change: CREATED => CONNECTING
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_D_IP) N(NATD_S_IP) ]
sending packet: from 192.1.2.23[500] to 192.1.2.45[500]
received packet: from 192.1.2.45[500] to 192.1.2.23[500]
parsed IKE_SA_INIT response 0 [ SA KE No V ]
authentication of 'east' (myself) with pre-shared key
establishing CHILD_SA
generating IKE_AUTH request 1 [ IDi IDr AUTH SA TSi TSr N(MOBIKE_SUP) N(ADD_4_ADDR) N(ADD_4_ADDR) ]
sending packet: from 192.1.2.23[500] to 192.1.2.45[500]
received packet: from 192.1.2.45[500] to 192.1.2.23[500]
parsed IKE_AUTH response 1 [ IDr AUTH SA TSi TSr ]
authentication of 'west' with pre-shared key successful
IKE_SA 'westnet--eastnet-ikev2' state change: CONNECTING => ESTABLISHED
scheduling reauthentication in 9893s
maximum IKE_SA lifetime 10433s
IKE_SA 'westnet--eastnet-ikev2' established between east[192.1.2.23]...[192.1.2.45]west
received netlink error: File exists (17)
unable to install source route for 192.0.2.254
CHILD_SA 'westnet--eastnet-ikev2' established successfully
east:~#
 ping -c1 -I 192.0.2.254 192.0.1.254
PING 192.0.1.254 (192.0.1.254): 56 data bytes
64 bytes from 192.0.1.254: icmp_seq=0 ttl=257 time=999 ms

--- 192.0.1.254 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.1/4.5/9.26 ms
east:~#
 /usr/local/strongswan/sbin/ipsec status
westnet--eastnet-ikev2[1]: ESTABLISHED, 192.1.2.23[east]...192.1.2.45[west]
westnet--eastnet-ikev2{1}:  INSTALLED, TUNNEL, ESP SPIs: c8cdddb1_i dac582ca_o
westnet--eastnet-ikev2{1}:   192.0.2.0/24 === 192.0.1.0/24 
east:~#
 echo done
done
east:~#
 

east:~#
east:~#
 if [ -f /tmp/core ]; then echo CORE FOUND; mv /tmp/core /var/tmp; fi
east:~#

