Introduction
This article explains how to use the EZ OpenVPN Toolkit to set up a self-managed OpenVPN Certificate Authority (CA), server, and client configurations. The toolkit provides an easy way to initialize servers, generate clients, revoke certificates, and package server configurations for deployment on Windows, Linux, or FlexEdge devices.
Applicable Products
• FlexEdge DA50A/DA70A
• Windows 10/11 Server or Client
• Linux (Debian, Ubuntu, Fedora, RHEL)
• Ewon Flexy/Cosy
Prerequisites
• EZOpenVPNToolkit.exe (Windows required)
• Crimson 3.2 (for FlexEdge deployment)
• Administrative access to servers/clients
• microSD card (for FlexEdge server deployment)
• Firewall configured to allow OpenVPN traffic (default UDP 1194)
In This Article
1. Running EZOpenVPNToolkit.exe
2. Initializing the OpenVPN Server
3. Generating Additional Client Configurations
4. Revoking Clients
5. Packaging the Server for Deployment
6. Deploying the Server (Windows, Linux, FlexEdge)
7. Deploying Client Configurations
8. Additional Notes
Running EZOpenVPNToolkit.exe
Double-click the EZOpenVPNToolkit.exe file. The menu provides options to initialize the server, generate clients, revoke clients, or package the server for deployment.
OpenVPN Setup Menu:
1. Initialize OpenVPN server
2. Generate Additional Client Certificates and Configurations
3. Revoke existing clients
4. Package Server for Deployment on Windows PC
5. Package Server for Deployment on Linux PC
6. Exit
Enter your choice:Initializing the OpenVPN Server
Select Option 1. Enter Certificate Authority details (Country, State, Locality, Organization, Unit, Email). Specify tunnel subnet and server LAN subnet. Enter client details, unique names, and optional subnets to push. Subnet entries are validated to prevent overlap.
The program will then generate the Certificate Authority files and OpenVPN tunnel configuration, asking for:
- OpenVPN Tunnel Subnet (e.g., 10.0.0.0/24)
- Server LAN Subnet (e.g., 10.0.1.0/24)
(NOTE: The process may hang here because generating the Diffie-Hellman pem file takes a while)
Specify Client Details: Enter the number of clients and provide a unique name for each client. If any client has a unique subnet to push over the VPN tunnel, specify it here. Subnet entries are validated to prevent overlaps.
Choose cipher suites: You will now be presented with a list of supported cipher suites.
You must choose at least one cipher suite. Cipher suites you choose will be added to the list. When multiple cipher suites are chosen, the least significant one will be used as the data-ciphers-fallback
Client Subnets: Based on the number of clients you specified, you will be asked if each client has a subnet that needs to be accessible over the OpenVPN tunnel.
(NOTE: Notice how if the subnet was entered for anything previously, you will be asked to input the subnet again. This is to prevent subnet overlap.)
Generating Additional Clients
Select Option 2. Enter the number of clients and their names. If a client requires a subnet to push, you will be prompted. The server configuration and revocation list (CRL) are updated and must be redeployed after new clients are generated.
Revoking Clients
Select Option 3. Choose the client to revoke. Their certificates and keys are invalidated and removed. The CRL and server configuration are updated, requiring redeployment.
Packaging the Server for Deployment
Select Option 4 for Windows, Option 5 for Linux, or Option 6 for FlexEdge. A zip archive will be created:
• OpenVPN_Server_Windows.zip
• OpenVPN_Server_Linux.zip
• OpenVPN_Server_FlexEdge.zip
Deploying the Server
For Windows:
1. Extract the package.
2. Run PowerShell script deploy_ovpn_server_on_win10-11.ps1 to install and configure.
2a. Open PowerShell as administrator and run this command:
powershell -ExecutionPolicy Bypass -File deploy_ovpn_server_on_win10-11.ps1
For Linux:
1. Extract the package.
2. Run deploy_ovpn_server_linux.sh to install and configure OpenVPN and firewall.
2a. In the Linux console run this command:
chmod +x deploy_ovpn_server_linux.sh
sudo ./deploy_ovpn_server_linus.sh
For FlexEdge:
1. Extract the package.
2a. Copy contents of files_for_sdcard folder to a FAT32 microSD card.
2b. Or with the FlexEdge powered up and FTP Server enabled, use an FTP client and paste the files to the root of the DRIVE-E directory
3. Insert microSD card into the FlexEdge and power on.
4. Make sure OpenVPN tunnel is enabled. Device Configuration>Hardware Configuration>Tunnels>OpenVPN Tunnels
5. Select One, then save the configuration
5a. either click on the green floppy disk icon
5b. Or in Crimson 3.2 File>Save
5c. Then Link>Update
6a. Either load the server.conf file via Web GUI under Device Configuration>System Configuration>Network>Interfaces>Tunnels>VPNx
6b. Click on the green floppy disk icon
7a. Or in Crimson 3.2 under Device Configuration>System Configuration>Network>Interfaces>Tunnels>VPNx, under Tunnel Settings>Tunnel Mode, select Config File. Then browse to your server.ovpn file
7b. Then under File>Save
7c. Then under Link>Update
NOTE: To troubleshoot, The Linux System Log (under Diagnostics>Linux System Log) should tell you of any OpenVPN errors. Or let it run for a while, then use FTP client to pull openvpn.log and openvpn-status.log files out of the DRIVE-E folder
Deploying Client Configurations
For Windows:
• Copy the client configuration to C:\Program Files\OpenVPN\config.
- Open Windows Start menu
- Start typing the search "OpenVPN GUI"
Right-Click on the OpenVPN GUI icon and select Run as administrator
- The OpenVPN GUI logo will pop up in the hidden icons menu
- Right-Click on the Icon (screen with padlock in front) and select Connect
For FlexEdge
- Make sure OpenVPN tunnel is enabled. Device Configuration>Hardware Configuration>Tunnels>OpenVPN Tunnels
2. Select One, then save the configuration
2a. either click on the green floppy disk icon
2b. Or in Crimson 3.2 File>Save
2c. Then Link>Update
3a. Either load the server.conf file via Web GUI under Device Configuration>System Configuration>Network>Interfaces>Tunnels>VPNx
3b. Click on the green floppy disk icon
4a. Or in Crimson 3.2 under Device Configuration>System Configuration>Network>Interfaces>Tunnels>VPNx, under Tunnel Settings>Tunnel Mode, select Config File. Then browse to your <client>.ovpn file
4b. Then under File>Save
4c. Then under Link>Update
NOTE: To troubleshoot, The Linux System Log (under Diagnostics>Linux System Log) should tell you of any OpenVPN errors.
Additional Notes
• Each client addition or revocation requires redeployment of the updated server configuration.
• Ensure required firewall ports are open (default UDP 1194).
• Linux deployment tested on Debian 12 and Fedora 40.