| 1 |
/testing/guestbin/swan-prep --x509 |
| 2 |
Preparing X.509 files |
| 3 |
east # |
| 4 |
ipsec certutil -D -n west |
| 5 |
east # |
| 6 |
# add second identity/cert |
| 7 |
east # |
| 8 |
#/testing/x509/import.sh real/otherca/othereast.all.p12 |
| 9 |
east # |
| 10 |
/testing/x509/import.sh real/mainca/north.all.p12 |
| 11 |
ipsec pk12util -w nss-pw -i real/mainca/north.all.p12 |
| 12 |
pk12util: PKCS12 IMPORT SUCCESSFUL |
| 13 |
ipsec certutil -M -n mainca -t CT,, |
| 14 |
east # |
| 15 |
ipsec start |
| 16 |
Redirecting to: [initsystem] |
| 17 |
east # |
| 18 |
../../guestbin/wait-until-pluto-started |
| 19 |
east # |
| 20 |
../../guestbin/ipsec-add.sh main-north main-east |
| 21 |
"main-north": added IKEv2 connection |
| 22 |
"main-east": added IKEv2 connection |
| 23 |
east # |
| 24 |
echo "initdone" |
| 25 |
initdone |
| 26 |
east # |
| 27 |
# we should see a connection switch on east |
| 28 |
east # |
| 29 |
ipsec whack --trafficstatus |
| 30 |
#2: "main-east"[1] 192.1.2.45, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@west.testing.libreswan.org' |
| 31 |
east # |
| 32 |
hostname | grep east && grep '^[^|].* switched ' /tmp/pluto.log |
| 33 |
east |
| 34 |
"main-north"[1] 192.1.2.45 #1: switched to "main-east"[1] 192.1.2.45 |
| 35 |
east # |
| 36 |
|