Connecting your Elastix server to a MikroTik OpenVPN server can greatly enhance network security and more features. In this guide, we will walk you through the step-by-step process to set up the OpenVPN client on Elastix 4.0.76 running CentOS 7.
Step 1: Access Elastix via PuTTy and FileZilla
- Connect to your Elastix terminal using PuTTy.
- Use FileZilla for SFTP access to transfer files to Elastix.
Step 2: Download Necessary RPM Packages
Download the following RPM packages to your local PC:
- OpenVPN: openvpn-2.3.2-4.el7.x86_64.rpm
- LZO: lzo-2.06-8.el7.x86_64.rpm
- PKCS11 Helper: pkcs11-helper-1.11-3.el7.x86_64.rpm
- LZ4: lz4-1.8.3-1.el7.x86_64.rpm
You may use alternate download links if the above sources failed. Below is the alternate download links.
- OpenVPN: Alternate Download
- LZO: Alternate Download
- PKCS11 Helper: Alternate Download
- LZ4: Alternate Download
Step 3: Prepare the RPM Files on Elastix
- Open PuTTy and run the following commands:
- Switch to FileZilla and upload the downloaded RPM files into the
/tmp/ovpn/folder. - Back in PuTTy, install the RPM packages:
Check the OpenVPN version if successfully installed.
openvpn --versionStep 4: Upload MikroTik Certificates
- Download the following files from MikroTik:
ca.crtclient.crtovpnclient.key
- Keep the private key file name as
ovpnclient.key, because we will remove the passphrase by renaming the key file. - Upload all three files to Elastix in the
/etc/openvpn/folder. - Remove the passphrase from the private key:
Enter the passphrase
12345678when prompted.
- Secure the private key file:
Step 5: Create OpenVPN Client Configuration
Create the client configuration file:
Paste the following configuration:
