/testing/guestbin/swan-prep west # grep right.libreswan.org /etc/hosts > /dev/null && echo "TEST FAILED - should not have /etc/hosts entry at start" west # ipsec start Redirecting to: [initsystem] west # /testing/pluto/bin/wait-until-pluto-started west # ipsec auto --add named 000 failed to convert 'right.libreswan.org' at load time: not a numeric IPv4 address and name lookup failed (no validation performed) 002 added connection description "named" west # ipsec status | grep "===" # should show %dns for pending resolve 000 "named": 192.0.1.0/24===192.1.2.45<192.1.2.45>[@west]---192.1.2.23...%dns[@east]===192.0.2.0/24; unrouted; eroute owner: #0 west # echo "initdone" initdone west # sleep 5 west # echo "192.1.2.23 right.libreswan.org" >> /etc/hosts west # # trigger DDNS event (saves us from waiting) west # ipsec whack --ddns 002 updating pending dns lookups west # # there should be no states west # ipsec status |grep STATE_ west # ipsec status | grep "===" # should no longer show %dns as resolving completed 000 "named": 192.0.1.0/24===192.1.2.45<192.1.2.45>[@west]...192.1.2.23[@east]===192.0.2.0/24; unrouted; eroute owner: #0 west # # confirm it all resolved by bringing the conn up manually west # ipsec auto --up named 002 "named" #1: initiating v2 parent SA 1v2 "named" #1: initiate 1v2 "named" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 1v2 "named" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "named" #2: IKEv2 mode peer ID is ID_FQDN: '@east' 003 "named" #2: Authenticated using authby=secret 002 "named" #2: negotiated connection [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] 004 "named" #2: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive} west # echo done done west # ../bin/check-for-core.sh west # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi