/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add west-east
002 "west-east": added IKEv1 connection
east #
 ipsec auto --add west-east-b
002 "west-east-b": added IKEv1 connection
east #
 ipsec auto --add west-east-c
002 "west-east-c": added IKEv1 connection
east #
 ipsec auto --status | grep west-
000 "west-east": 192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]; unrouted; eroute owner: #0
000 "west-east":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east":   our auth:rsasig, their auth:rsasig
000 "west-east":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east":   sec_label:unset;
000 "west-east":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east":   newest ISAKMP SA: #0; newest IPsec SA: #0; conn serial: $1;
000 "west-east-b": 198.51.100.2/32===192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]===198.51.100.1/32; unrouted; eroute owner: #0
000 "west-east-b":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east-b":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east-b":   our auth:rsasig, their auth:rsasig
000 "west-east-b":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east-b":   sec_label:unset;
000 "west-east-b":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east-b":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east-b":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east-b":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east-b":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east-b":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east-b":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east-b":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east-b":   newest ISAKMP SA: #0; newest IPsec SA: #0; conn serial: $2;
000 "west-east-c": 198.51.100.4/32===192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]===198.51.100.3/32; unrouted; eroute owner: #0
000 "west-east-c":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east-c":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east-c":   our auth:rsasig, their auth:rsasig
000 "west-east-c":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east-c":   sec_label:unset;
000 "west-east-c":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east-c":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east-c":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east-c":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east-c":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east-c":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east-c":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east-c":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east-c":   newest ISAKMP SA: #0; newest IPsec SA: #0; conn serial: $3;
east #
 echo "initdone"
initdone
east #
 # both east and west should still have one IKE SA #1
east #
 ipsec status | grep west-east
000 "west-east": 192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]; prospective erouted; eroute owner: #0
000 "west-east":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east":   our auth:rsasig, their auth:rsasig
000 "west-east":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east":   sec_label:unset;
000 "west-east":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east":   newest ISAKMP SA: #0; newest IPsec SA: #0; conn serial: $1;
000 "west-east-b": 198.51.100.2/32===192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]===198.51.100.1/32; erouted; eroute owner: #3
000 "west-east-b":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east-b":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east-b":   our auth:rsasig, their auth:rsasig
000 "west-east-b":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east-b":   sec_label:unset;
000 "west-east-b":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east-b":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east-b":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east-b":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east-b":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east-b":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east-b":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east-b":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east-b":   newest ISAKMP SA: #0; newest IPsec SA: #3; conn serial: $2;
000 "west-east-b":   ESP algorithm newest: AES_CBC_128-HMAC_SHA1_96; pfsgroup=<Phase1>
000 "west-east-c": 198.51.100.4/32===192.1.2.23<192.1.2.23>[@east]...192.1.2.45<192.1.2.45>[@west]===198.51.100.3/32; erouted; eroute owner: #4
000 "west-east-c":     oriented; my_ip=unset; their_ip=unset; my_updown=ipsec _updown;
000 "west-east-c":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
000 "west-east-c":   our auth:rsasig, their auth:rsasig
000 "west-east-c":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
000 "west-east-c":   sec_label:unset;
000 "west-east-c":   ike_life: 28800s; ipsec_life: 28800s; replay_window: 32; rekey_margin: 540s; rekey_fuzz: 100%; keyingtries: 0;
000 "west-east-c":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
000 "west-east-c":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
000 "west-east-c":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO;
000 "west-east-c":   conn_prio: 32,32; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
000 "west-east-c":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:auto;
000 "west-east-c":   our idtype: ID_FQDN; our id=@east; their idtype: ID_FQDN; their id=@west
000 "west-east-c":   dpd: action:hold; delay:0; timeout:0; nat-t: encaps:auto; nat_keepalive:yes; ikev1_natt:both
000 "west-east-c":   newest ISAKMP SA: #1; newest IPsec SA: #4; conn serial: $3;
000 "west-east-c":   IKEv1 algorithm newest: AES_CBC_256-HMAC_SHA2_256-MODP2048
000 "west-east-c":   ESP algorithm newest: AES_CBC_128-HMAC_SHA1_96; pfsgroup=<Phase1>
000 #3: "west-east-b":500 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in XXs; newest IPSEC; eroute owner; isakmp#1; idle;
000 #3: "west-east-b" esp.ESPSPIi@192.1.2.45 esp.ESPSPIi@192.1.2.23 tun.0@192.1.2.45 tun.0@192.1.2.23 Traffic: ESPin=0B ESPout=0B! ESPmax=4194303B 
000 #1: "west-east-c":500 STATE_MAIN_R3 (IKE SA established); EVENT_SA_REPLACE in XXs; newest ISAKMP; lastdpd=-1s(seq in:0 out:0); idle;
000 #4: "west-east-c":500 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in XXs; newest IPSEC; eroute owner; isakmp#1; idle;
000 #4: "west-east-c" esp.ESPSPIi@192.1.2.45 esp.ESPSPIi@192.1.2.23 tun.0@192.1.2.45 tun.0@192.1.2.23 Traffic: ESPin=0B ESPout=0B! ESPmax=4194303B 
east #
 
