1
0
mirror of synced 2025-01-31 20:41:42 +03:00

Update IKEv2 script

- New feature: The IKEv2 helper script can now be run in "auto mode",
  which sets up IKEv2 using default options, no user input needed.
  To use this mode, add command-line parameter "--auto"
- Refactor entire script to remove duplicate code, improve structure
  and make it easier to read and maintain
- Add check for Libreswan version
- Update tests
This commit is contained in:
hwdsl2 2021-01-18 00:01:46 -06:00
parent b17ec88a0d
commit ef93a9867b
2 changed files with 676 additions and 547 deletions

View File

@ -134,6 +134,7 @@ jobs:
grep "your_vpn_username" /etc/ipsec.d/passwd
wget -t 3 -T 30 -nv -O ikev2.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh # hwdsl2
sed -i '/swan_ver_latest=/s/^/#/' ikev2.sh
bash ikev2.sh <<ANSWERS
@ -343,15 +344,8 @@ jobs:
grep "your_vpn_username" /etc/ipsec.d/passwd
wget -t 3 -T 30 -nv -O ikev2.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh
bash ikev2.sh <<ANSWERS
y
ANSWERS
sed -i '/swan_ver_latest=/s/^/#/' ikev2.sh
bash ikev2.sh --auto
ls -ld /etc/ipsec.d/vpnclient-*.mobileconfig
ls -ld /etc/ipsec.d/vpnclient-*.p12

File diff suppressed because it is too large Load Diff