| 1 | strongswan up westnet-eastnet-ikev2 |
| 2 | |
| 3 | # First ping is regular ESP since ping is too small to compress. This |
| 4 | # oddly shows up as 0 packets and 4 packets on ipcomp. |
| 5 | ../../guestbin/ping-once.sh --up --small -I 192.0.1.254 192.0.2.254 |
| 6 | ip -o -s xfrm state|grepscip-shell system . . grep. "proto comp" | sedscip-shell system . . sed. "s/^\(.*\)\(lifetime current:.*\)\(add .*$\)/\2/" |
| 7 | |
| 8 | # Finally, a packet that is both larger than the MTU and compression |
| 9 | # friendly. This then shows up as 4 packets and 8 packets on ipcomp. |
| 10 | ../../guestbin/ping-once.sh --up --large -I 192.0.1.254 192.0.2.254 |
| 11 | ip -o -s xfrm state|grepscip-shell system . . grep. "proto comp" | sedscip-shell system . . sed. "s/^\(.*\)\(lifetime current:.*\)\(add .*$\)/\2/" |
| 12 | |
| 13 | # mangled traffic status |
| 14 | ipsec whack --trafficstatus | sedscip-shell system . . sed. -e 's/Bytes=\([0-9]\)[0-9][0-9],/Bytes=\1nn,/g' |