Update tests
This commit is contained in:
parent
5510e1f9d2
commit
d178512b98
80
.github/workflows/main.yml
vendored
80
.github/workflows/main.yml
vendored
@ -146,9 +146,9 @@ jobs:
|
|||||||
y
|
y
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.p12
|
ls -ld /etc/ipsec.d/vpnclient*.p12
|
||||||
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
||||||
systemctl restart ipsec
|
systemctl restart ipsec
|
||||||
sleep 10
|
sleep 10
|
||||||
@ -167,20 +167,20 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
rm -f /etc/ipsec.d/vpnclient2-*
|
rm -f /etc/ipsec.d/vpnclient2*
|
||||||
bash ikev2.sh <<ANSWERS
|
bash ikev2.sh <<ANSWERS
|
||||||
2
|
2
|
||||||
vpnclient2
|
vpnclient2
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
bash ikev2.sh <<ANSWERS
|
bash ikev2.sh <<ANSWERS
|
||||||
4
|
4
|
||||||
@ -201,9 +201,9 @@ jobs:
|
|||||||
rm -f /etc/ipsec.d/vpnclient*
|
rm -f /etc/ipsec.d/vpnclient*
|
||||||
bash ikev2.sh --auto
|
bash ikev2.sh --auto
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.p12
|
ls -ld /etc/ipsec.d/vpnclient*.p12
|
||||||
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
||||||
systemctl restart ipsec
|
systemctl restart ipsec
|
||||||
sleep 10
|
sleep 10
|
||||||
@ -217,16 +217,16 @@ jobs:
|
|||||||
|
|
||||||
bash ikev2.sh --addclient vpnclient2
|
bash ikev2.sh --addclient vpnclient2
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
rm -f /etc/ipsec.d/vpnclient2-*
|
rm -f /etc/ipsec.d/vpnclient2*
|
||||||
bash ikev2.sh --exportclient vpnclient2
|
bash ikev2.sh --exportclient vpnclient2
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then
|
||||||
sed -i '/pluto/d' /var/log/secure
|
sed -i '/pluto/d' /var/log/secure
|
||||||
@ -431,9 +431,9 @@ jobs:
|
|||||||
y
|
y
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.p12
|
ls -ld /etc/ipsec.d/vpnclient*.p12
|
||||||
sleep 10
|
sleep 10
|
||||||
grep pluto /var/log/auth.log | tail -n 20
|
grep pluto /var/log/auth.log | tail -n 20
|
||||||
ipsec status
|
ipsec status
|
||||||
@ -446,20 +446,20 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
rm -f /etc/ipsec.d/vpnclient2-*
|
rm -f /etc/ipsec.d/vpnclient2*
|
||||||
bash ikev2.sh <<ANSWERS
|
bash ikev2.sh <<ANSWERS
|
||||||
2
|
2
|
||||||
vpnclient2
|
vpnclient2
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
bash ikev2.sh <<ANSWERS
|
bash ikev2.sh <<ANSWERS
|
||||||
4
|
4
|
||||||
@ -476,9 +476,9 @@ jobs:
|
|||||||
rm -f /etc/ipsec.d/vpnclient*
|
rm -f /etc/ipsec.d/vpnclient*
|
||||||
bash ikev2.sh --auto
|
bash ikev2.sh --auto
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient-*.p12
|
ls -ld /etc/ipsec.d/vpnclient*.p12
|
||||||
sleep 10
|
sleep 10
|
||||||
grep pluto /var/log/auth.log | tail -n 20
|
grep pluto /var/log/auth.log | tail -n 20
|
||||||
ipsec status
|
ipsec status
|
||||||
@ -486,16 +486,16 @@ jobs:
|
|||||||
|
|
||||||
bash ikev2.sh --addclient vpnclient2
|
bash ikev2.sh --addclient vpnclient2
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
rm -f /etc/ipsec.d/vpnclient2-*
|
rm -f /etc/ipsec.d/vpnclient2*
|
||||||
bash ikev2.sh --exportclient vpnclient2
|
bash ikev2.sh --exportclient vpnclient2
|
||||||
|
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.mobileconfig
|
ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.sswan
|
ls -ld /etc/ipsec.d/vpnclient2*.sswan
|
||||||
ls -ld /etc/ipsec.d/vpnclient2-*.p12
|
ls -ld /etc/ipsec.d/vpnclient2*.p12
|
||||||
|
|
||||||
sed -i '/pluto/d' /var/log/auth.log
|
sed -i '/pluto/d' /var/log/auth.log
|
||||||
pkill -HUP rsyslog
|
pkill -HUP rsyslog
|
||||||
|
Loading…
Reference in New Issue
Block a user