| 1 |
../../guestbin/libreswan-up-down.sh ah=md5 -I 192.0.1.254 192.0.2.254 |
| 2 |
../../guestbin/libreswan-up-down.sh ah=sha1 -I 192.0.1.254 192.0.2.254 |
| 3 |
# Test rekey |
| 4 |
ipsec auto --add ah=sha1 |
| 5 |
ipsec auto --up ah=sha1 |
| 6 |
../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254 |
| 7 |
sleep 1 |
| 8 |
ipsec auto --up ah=sha1 |
| 9 |
sleep 1 |
| 10 |
../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254 |
| 11 |
# since bofh AH tunnels are still there, check if they all got traffic, meaning new ones was used |
| 12 |
# use weird spacing to avoid sanitizer |
| 13 |
ip xfrm s | grep anti-replay |
| 14 |
echo done |