| 1 |
# should establish IKE SA and install two labels |
| 2 |
ipsec auto --up labeled |
| 3 |
../../guestbin/ipsec-kernel-state.sh |
| 4 |
../../guestbin/ipsec-kernel-policy.sh |
| 5 |
# trigger traffic using the predefined ping_t context; won't work |
| 6 |
../../guestbin/ping-once.sh --runcon "system_u:system_r:ping_t:s0:c1.c256" --forget -I 192.1.2.45 192.1.2.23 |
| 7 |
../../guestbin/wait-for-pluto.sh 'TS_UNACCEPTABLE' |
| 8 |
# there should be 0 tunnels - child rejected |
| 9 |
ipsec trafficstatus |
| 10 |
# there should be no bare shunts |
| 11 |
ipsec shuntstatus |
| 12 |
# let larval state expire |
| 13 |
../../guestbin/wait-for.sh --no-match ' spi 0x00000000 ' -- ../../guestbin/ipsec-kernel-state.sh |
| 14 |
echo done |