| 1 |
/testing/guestbin/swan-prep --nokeys |
| 2 |
Creating empty NSS database |
| 3 |
east # |
| 4 |
# import west's cert (no CA) |
| 5 |
east # |
| 6 |
/testing/x509/import.sh real/mainca/west.end.cert |
| 7 |
ipsec certutil -A -n west -t P,, -i real/mainca/west.end.cert |
| 8 |
east # |
| 9 |
# import fake east cert+key (again no CA) |
| 10 |
east # |
| 11 |
/testing/x509/import.sh fake/mainca/east.end.p12 |
| 12 |
ipsec pk12util -w nss-pw -i fake/mainca/east.end.p12 |
| 13 |
pk12util: PKCS12 IMPORT SUCCESSFUL |
| 14 |
east # |
| 15 |
# confirm |
| 16 |
east # |
| 17 |
ipsec certutil -L |
| 18 |
Certificate Nickname Trust Attributes |
| 19 |
SSL,S/MIME,JAR/XPI |
| 20 |
west P,, |
| 21 |
east u,u,u |
| 22 |
east # |
| 23 |
ipsec start |
| 24 |
Redirecting to: [initsystem] |
| 25 |
east # |
| 26 |
../../guestbin/wait-until-pluto-started |
| 27 |
east # |
| 28 |
ipsec auto --add ikev2-westnet-eastnet-x509-cr |
| 29 |
"ikev2-westnet-eastnet-x509-cr": added IKEv2 connection |
| 30 |
east # |
| 31 |
echo "initdone" |
| 32 |
initdone |
| 33 |
east # |
| 34 |
../../guestbin/ipsec-kernel-state.sh |
| 35 |
src 192.1.2.23 dst 192.1.2.45 |
| 36 |
proto esp spi 0xSPISPI reqid REQID mode tunnel |
| 37 |
replay-window 0 flag af-unspec esn |
| 38 |
aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 |
| 39 |
anti-replay esn context: |
| 40 |
seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX |
| 41 |
replay_window 0, bitmap-length 0 |
| 42 |
src 192.1.2.45 dst 192.1.2.23 |
| 43 |
proto esp spi 0xSPISPI reqid REQID mode tunnel |
| 44 |
replay-window 0 flag af-unspec esn |
| 45 |
aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128 |
| 46 |
anti-replay esn context: |
| 47 |
seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX |
| 48 |
replay_window 128, bitmap-length 4 |
| 49 |
00000000 00000000 00000000 XXXXXXXX |
| 50 |
east # |
| 51 |
../../guestbin/ipsec-kernel-policy.sh |
| 52 |
src 192.0.1.0/24 dst 192.0.2.0/24 |
| 53 |
dir fwd priority PRIORITY ptype main |
| 54 |
tmpl src 192.1.2.45 dst 192.1.2.23 |
| 55 |
proto esp reqid REQID mode tunnel |
| 56 |
src 192.0.1.0/24 dst 192.0.2.0/24 |
| 57 |
dir in priority PRIORITY ptype main |
| 58 |
tmpl src 192.1.2.45 dst 192.1.2.23 |
| 59 |
proto esp reqid REQID mode tunnel |
| 60 |
src 192.0.2.0/24 dst 192.0.1.0/24 |
| 61 |
dir out priority PRIORITY ptype main |
| 62 |
tmpl src 192.1.2.23 dst 192.1.2.45 |
| 63 |
proto esp reqid REQID mode tunnel |
| 64 |
east # |
| 65 |
|