File: westrun.sh

package info (click to toggle)
libreswan 4.3-1%2Bdeb11u4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 62,688 kB
  • sloc: ansic: 108,293; sh: 25,973; xml: 11,756; python: 10,230; makefile: 1,580; javascript: 1,353; yacc: 825; sed: 647; perl: 584; lex: 159; awk: 156
file content (21 lines) | stat: -rwxr-xr-x 814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sed -i "s/seedbits=.*$/seedbits=520/" /etc/ipsec.conf
ipsec start
/testing/pluto/bin/wait-until-pluto-started
ipsec stop
egrep "bits random|bytes from|seeded" /tmp/pluto.log
sed -i "s/seedbits=.*$/seedbits=1024/" /etc/ipsec.conf
ipsec start
/testing/pluto/bin/wait-until-pluto-started
ipsec stop
egrep "bits random|bytes from|seeded" /tmp/pluto.log
sed -i "s/seedbits=.*$/seedbits=2048/" /etc/ipsec.conf
ipsec start
/testing/pluto/bin/wait-until-pluto-started
sleep 10
# this ping should fail due to the type=block connection
ping -c 1 192.1.2.23
ipsec stop
egrep "bits random|bytes from|seeded" /tmp/pluto.log
test -f /usr/local/libexec/ipsec/pluto && PLUTOBIN="/usr/local/libexec/ipsec/pluto"
test -f /usr/libexec/ipsec/pluto && PLUTOBIN="/usr/libexec/ipsec/pluto"
/testing/guestbin/checksec.sh --file $PLUTOBIN