../../guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add westnet-eastnet-propnum
002 "westnet-eastnet-propnum": added IKEv2 connection
east #
 ipsec whack --impair suppress-retransmits
east #
 echo "initdone"
initdone
east #
 : dump all emitted and parsed proposals onto the console
east #
 : weird pattern deals with optional length field
east #
 grep -v '| helper' /tmp/pluto.log | grep -B 1 -e '|    last proposal: ' -A 3 -e '|    prop #: '
| ****parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_NON_LAST (0x2)
|    length: 56 (00 38)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 5 (05)
--
| ****parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    length: 40 (00 28)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 4 (04)
--
| ****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 4 (04)
--
| ***parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_NON_LAST (0x2)
|    length: 60 (00 3c)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 5 (05)
--
| ***parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    length: 44 (00 2c)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 4 (04)
--
| *****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 3 (03)
east #
 
