| 1 |
/testing/guestbin/swan-prep --hostkeys |
| 2 |
Creating NSS database containing host keys |
| 3 |
west # |
| 4 |
# confirm that the network is alive |
| 5 |
west # |
| 6 |
../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254 |
| 7 |
destination -I 192.0.1.254 192.0.2.254 is alive |
| 8 |
west # |
| 9 |
# ensure that clear text does not get through |
| 10 |
west # |
| 11 |
iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP |
| 12 |
west # |
| 13 |
iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT |
| 14 |
west # |
| 15 |
# confirm clear text does not get through |
| 16 |
west # |
| 17 |
../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 |
| 18 |
down |
| 19 |
west # |
| 20 |
ipsec start |
| 21 |
Redirecting to: [initsystem] |
| 22 |
west # |
| 23 |
../../guestbin/wait-until-pluto-started |
| 24 |
west # |
| 25 |
ipsec auto --add westnet-eastnet-ikev2 |
| 26 |
"westnet-eastnet-ikev2": added IKEv2 connection |
| 27 |
west # |
| 28 |
ipsec auto --status | grep westnet-eastnet-ikev2 |
| 29 |
"westnet-eastnet-ikev2": 192.0.1.0/24===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.0/24; unrouted; my_ip=unset; their_ip=unset; |
| 30 |
"westnet-eastnet-ikev2": host: oriented; local: 192.1.2.45; remote: 192.1.2.23; |
| 31 |
"westnet-eastnet-ikev2": my_updown=ipsec _updown; |
| 32 |
"westnet-eastnet-ikev2": xauth us:none, xauth them:none, my_username=[any]; their_username=[any] |
| 33 |
"westnet-eastnet-ikev2": our auth:rsasig(RSASIG+RSASIG_v1_5), their auth:RSASIG+RSASIG_v1_5, our autheap:none, their autheap:none; |
| 34 |
"westnet-eastnet-ikev2": modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset; |
| 35 |
"westnet-eastnet-ikev2": sec_label:unset; |
| 36 |
"westnet-eastnet-ikev2": ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%; |
| 37 |
"westnet-eastnet-ikev2": iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0; |
| 38 |
"westnet-eastnet-ikev2": retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500; |
| 39 |
"westnet-eastnet-ikev2": initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no; |
| 40 |
"westnet-eastnet-ikev2": policy: IKEv2+RSASIG+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES; |
| 41 |
"westnet-eastnet-ikev2": v2-auth-hash-policy: SHA2_256+SHA2_384+SHA2_512; |
| 42 |
"westnet-eastnet-ikev2": conn_prio: 24,24,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none; |
| 43 |
"westnet-eastnet-ikev2": nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no; |
| 44 |
"westnet-eastnet-ikev2": our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east |
| 45 |
"westnet-eastnet-ikev2": liveness: passive; dpddelay:0s; retransmit-timeout:60s |
| 46 |
"westnet-eastnet-ikev2": nat-traversal: encapsulation:auto; keepalive:20s |
| 47 |
"westnet-eastnet-ikev2": routing: unrouted; |
| 48 |
"westnet-eastnet-ikev2": conn serial: $1; |
| 49 |
west # |
| 50 |
ipsec whack --impair suppress_retransmits |
| 51 |
west # |
| 52 |
echo "initdone" |
| 53 |
initdone |
| 54 |
west # |
| 55 |
ipsec auto --up westnet-eastnet-ikev2 |
| 56 |
"westnet-eastnet-ikev2" #1: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 57 |
"westnet-eastnet-ikev2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 58 |
"westnet-eastnet-ikev2" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH |
| 59 |
"westnet-eastnet-ikev2" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 60 |
"westnet-eastnet-ikev2" #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature |
| 61 |
"westnet-eastnet-ikev2" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive} |
| 62 |
west # |
| 63 |
../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254 |
| 64 |
up |
| 65 |
west # |
| 66 |
ipsec whack --trafficstatus |
| 67 |
#2: "westnet-eastnet-ikev2", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@east' |
| 68 |
west # |
| 69 |
echo done |
| 70 |
done |
| 71 |
west # |
| 72 |
grep -e 'auth method: ' -e 'hash algorithm identifier' -e "^[^|].* established IKE SA" OUTPUT/*pluto.log |
| 73 |
OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 74 |
OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 75 |
OUTPUT/east.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 76 |
OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256 into IKEv2 Notify Payload |
| 77 |
OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256: 00 02 |
| 78 |
OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384 into IKEv2 Notify Payload |
| 79 |
OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384: 00 03 |
| 80 |
OUTPUT/east.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512 into IKEv2 Notify Payload |
| 81 |
OUTPUT/east.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512: 00 04 |
| 82 |
OUTPUT/east.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe) |
| 83 |
OUTPUT/east.pluto.log:"westnet-eastnet-ikev2" #1: responder established IKE SA; authenticated peer using preloaded certificate '@west' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature |
| 84 |
OUTPUT/east.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe) |
| 85 |
OUTPUT/west.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256 into IKEv2 Notify Payload |
| 86 |
OUTPUT/west.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_256: 00 02 |
| 87 |
OUTPUT/west.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384 into IKEv2 Notify Payload |
| 88 |
OUTPUT/west.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_384: 00 03 |
| 89 |
OUTPUT/west.pluto.log:| emitting 2 raw bytes of hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512 into IKEv2 Notify Payload |
| 90 |
OUTPUT/west.pluto.log:| hash algorithm identifier IKEv2_HASH_ALGORITHM_SHA2_512: 00 04 |
| 91 |
OUTPUT/west.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 92 |
OUTPUT/west.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 93 |
OUTPUT/west.pluto.log:| parsing 2 raw bytes of IKEv2 Notify Payload into hash algorithm identifier (network ordered) |
| 94 |
OUTPUT/west.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe) |
| 95 |
OUTPUT/west.pluto.log:| auth method: IKEv2_AUTH_DIGITAL_SIGNATURE (0xe) |
| 96 |
OUTPUT/west.pluto.log:"westnet-eastnet-ikev2" #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature |
| 97 |
west # |
| 98 |
|