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:
parent
b17ec88a0d
commit
ef93a9867b
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -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
|
||||
|
1093
extras/ikev2setup.sh
1093
extras/ikev2setup.sh
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user