Skip to content

VPN Server

wifiBlocker EUROPE edited this page Jan 8, 2025 · 3 revisions

Download, adjust the credentials and launch the installation script :

wget www.2transfer.eu/iblocker/camera/vpn/vpnsetup_alpine.sh

Adjust below:

YOUR_IPSEC_PSK='your_secret'
YOUR_USERNAME='your_user'
YOUR_PASSWORD='your_passw'
VPN_PUBLIC_IP='your_IP'
public_ip='your_IP'

Launch the vpnsetup_alpine.sh script.

To create the .p12 certificate, download, adjust the VPN_PUBLIC_IP and launch the script:

wget www.2transfer.eu/iblocker/camera/vpn/ikev2-iBlocker_OK.sh

Adjust below:

VPN_PUBLIC_IP='your_IP'

Launch the ikev2-iBlocker_OK.sh script, select option 6) Remove IKEv2 and relaunch:

./ikev2-iBlocker_OK.sh 

IKEv2 is already set up on this server.

Select an option:
  1) Add a new client
  2) Export config for an existing client
  3) List existing clients
  4) Revoke an existing client
  5) Delete an existing client
  6) Remove IKEv2
  7) Exit
Option: 6
Are you sure you want to remove IKEv2? [y/N] y

## Deleting /etc/ipsec.d/ikev2.conf...
WARNING: ipsec auto has been deprecated

## Deleting certificates and keys from the IPsec database...

IKEv2 removed!

setup-ipsec-vpn Scripts Licences: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/LICENSE.md

Clone this wiki locally