/testing/guestbin/swan-prep --x509 Preparing X.509 files road # # add default route over "other" interface. road has only one so we fake one road # ip route del default road # ip tuntap add mode tun tun0 road # ifconfig tun0 10.11.12.13/24 road # ip route add default via 10.11.12.14 road # ip route add 192.1.2.0/24 via 192.1.3.254 road # certutil -D -n east -d sql:/etc/ipsec.d road # cp road-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf road # cp policies/* /etc/ipsec.d/policies/ road # # specific /32 to test replacement of /32 oppo-instance with oppo-group road # echo "192.1.2.23/32" >> /etc/ipsec.d/policies/private-or-clear road # restorecon -R /etc/ipsec.d road # ipsec start Redirecting to: [initsystem] changing /proc/sys/net/core/xfrm_acq_expires from 30 to 10 road # /testing/pluto/bin/wait-until-pluto-started road # ipsec whack --impair suppress-retransmits road # # give OE policies time to load road # sleep 5 road # ip -s xfrm monitor > /tmp/xfrm-monitor.out & [x] PID road # echo "initdone" initdone road # ping -n -c 5 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time XXXX road # # wait on OE retransmits and rekeying road # sleep 5 road # # should show established tunnel and no bare shunts road # ipsec whack --trafficstatus road # ipsec whack --shuntstatus 000 Bare Shunt list: 000 road # # ping should succeed through tunnel road # ping -n -c 2 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time XXXX road # ipsec whack --trafficstatus road # echo "waiting on east to send delete for this IPsec SA" waiting on east to send delete for this IPsec SA road # # confirm received delete was processed - should show no tunnel road # ipsec whack --trafficstatus road # # let the old acquire expire so it won't interfere with our new trigger road # sleep 5 road # # try triggering again, ondemand policy should re-trigger OE road # ip xfrm state road # ip xfrm pol src 192.1.3.209/32 dst 192.1.2.23/32 dir out priority 1564639 ptype main src 192.1.2.253/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.3.253/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.3.253/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.3.253/32 dir out priority 1564639 ptype main src 192.1.3.254/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.3.254/32 dir out priority 1564639 ptype main src 192.1.2.254/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.2.254/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.2.254/32 dir out priority 1564639 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main road # ping -n -c 1 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time XXXX road # # wait on OE to re-establish IPsec SA road # sleep 5 road # ip xfrm state road # ip xfrm pol src 192.1.3.209/32 dst 192.1.2.23/32 dir out priority 1564639 ptype main src 192.1.2.253/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.2.253/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.2.253/32 dir out priority 1564639 ptype main src 192.1.3.253/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.3.253/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.3.253/32 dir out priority 1564639 ptype main src 192.1.3.254/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.3.254/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.3.254/32 dir out priority 1564639 ptype main src 192.1.2.254/32 dst 10.11.12.13/32 dir fwd priority 1564639 ptype main src 192.1.2.254/32 dst 10.11.12.13/32 dir in priority 1564639 ptype main src 10.11.12.13/32 dst 192.1.2.254/32 dir out priority 1564639 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket out priority 0 ptype main src 0.0.0.0/0 dst 0.0.0.0/0 socket in priority 0 ptype main road # # should show established tunnel and no bare shunts road # ipsec whack --trafficstatus road # ipsec whack --shuntstatus 000 Bare Shunt list: 000 road # # ping should succeed through tunnel road # ping -n -c 2 -I 192.1.3.209 192.1.2.23 PING 192.1.2.23 (192.1.2.23) from 192.1.3.209 : 56(84) bytes of data. --- 192.1.2.23 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time XXXX road # ipsec whack --trafficstatus road # # both ends should show a tunnel road # ipsec whack --trafficstatus road # road # ../bin/check-for-core.sh road # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi