/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 ipsec auto --add percentage-good
ipsec addconn: /etc/ipsec.conf:18: warning: bad percentage multiplier "foo", keyword ignored: rekeyfuzz=10foo
"percentage-good": added IKEv2 connection
west #
 # rekey_margin: should be less than rekey interval
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
west #
 # output is unpredictable, include ephemeral values
west #
 ipsec addconn --verbose percentage-wip
opening file: /etc/ipsec.conf
ipsec addconn: /etc/ipsec.conf:18: warning: bad percentage multiplier "foo", keyword ignored: rekeyfuzz=10foo
loading named conns: percentage-wip
resolving family=IPv4 src=192.1.2.45 gateway=<not-set> peer 192.1.2.23
  seeking NOTHING
resolving family=IPv4 src=192.1.2.23 gateway=<not-set> peer 192.1.2.45
  seeking NOTHING
"percentage-wip": added IKEv2 connection
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
"percentage-wip":   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%;
west #
 ipsec addconn --verbose percentage-wip
opening file: /etc/ipsec.conf
ipsec addconn: /etc/ipsec.conf:18: warning: bad percentage multiplier "foo", keyword ignored: rekeyfuzz=10foo
loading named conns: percentage-wip
resolving family=IPv4 src=192.1.2.45 gateway=<not-set> peer 192.1.2.23
  seeking NOTHING
resolving family=IPv4 src=192.1.2.23 gateway=<not-set> peer 192.1.2.45
  seeking NOTHING
"percentage-wip": added IKEv2 connection
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
"percentage-wip":   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%;
west #
 
