| 1 | /testing/guestbin/swan-prepscip-shell filesystem . . `/testing/guestbin/swan-prep`. |
| 2 | cpscip-shell system . . cp. road-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.confscip-shell filesystem . . `/etc/ipsec.d/ikev2-oe.conf`. |
| 3 | cpscip-shell system . . cp. policies/* /etc/ipsec.d/policies/scip-shell filesystem . . `/etc/ipsec.d/policies/`. |
| 4 | echoscip-shell system . . echo. "192.1.2.0/24 tcp 0 7" >> /etc/ipsec.d/policies/private-or-clearscip-shell filesystem . . `/etc/ipsec.d/policies/private-or-clear`. |
| 5 | echoscip-shell system . . echo. "192.1.2.0/24 tcp 7 0" >> /etc/ipsec.d/policies/private-or-clearscip-shell filesystem . . `/etc/ipsec.d/policies/private-or-clear`. |
| 6 | ipsec start |
| 7 | ../../guestbin/wait-until-pluto-started |
| 8 | # ensure for tests acquires expire before our failureshunt=2m |
| 9 | echoscip-shell system . . echo. 30 > /proc/sys/net/core/xfrm_acq_expiresscip-shell filesystem . . `/proc/sys/net/core/xfrm_acq_expires`. |
| 10 | # give OE policies time to load |
| 11 | ../../guestbin/wait-for.sh --match 'loaded 11,' -- ipsec auto --status |
| 12 | echoscip-shell system . . echo. "initdone" |