OpenVPN configuration file (.ovpn) generator for devices and users. The script is written for environments with an OpenVPN server and multiple devices and users.
- Generate .ovpn configuration for devices.
- Generate .ovpn configuration for users (allows users to access devices over VPN).
- Auto-calculate and assign VPN IP address.
- Command-line inputs/parameters.
- Write meta-data to DB (mysql) for UI integration.
- Upload and apply .ovpn configuration file into device.
- Bulk generation.
- Check expired or expiring .ovpn configuration file.
Generate device config:
gvcf.php -c "MY VPN CA" -n "device-1" -d 10.10.0 -v
Generate and install config into the device:
gvcf.php -c "MY VPN CA" -n "device-2" -d 10.10.0 -v -V -S -D -U -R -I 123.123.123.123 -P 22 -X PASSWORD