1
0
Fork 0
mirror of synced 2024-11-21 17:05:35 -05:00
Generate an OpenVPN Connect private tunnel profile in the unified format
Find a file
2016-12-30 10:05:13 -05:00
ovpngen update for v2.4.0 of openvpn 2016-12-30 10:05:13 -05:00
README.md update for v2.4.0 of openvpn 2016-12-30 10:05:13 -05:00

Overview

A simple shell script that creates OpenVPN compatible tunnel profiles in the unified file format. Tested on iOS version 1.0.7 build 199 of OpenVPN Connect and likely works with the Android app as well as the official Linux client.

Usage

Invoke the script with 5 tokens and the profile is outputted to stdout.

  1. Server Fully Qualified Domain Name of the OpenVPN server (or IP address).
  2. Full path to the CA cert.
  3. Full path to the client cert.
  4. Full path to the client private key.
  5. Full path to the server TLS shared secret key.
  6. Optionally define a port number (defaults to 1194 if left blank).
  7. Optionally define a protocol (defaults to udp if left blank).

Example

sudo ./ovpngen titty.nipples.org /etc/openvpn/server/ca.crt /etc/easy-rsa/pki/signed/client.crt /etc/easy-rsa/pki/private/client.key /etc/openvpn/server/ta.key > iphone.ovpn

The resulting myprofile.ovpn can be edited if desired.

Credit

Majority of the credit goes to the script's original author, trovao. His version can be found here.