How Can We Help?
-
zWAN
-
-
-
-
-
- Articles coming soon
-
-
-
-
zTC
-
StorTrends
You are here:
Print
Site to Mobile VPN Configuration
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Create a VPN Realm in zID
- Log in to zID
Access zID at the following URL:
https://<domainname>:8082/
Note: Login credentials will be provided by the support team upon request.
- Create a VPN Realm
- Click Add Realm.
- Provide the realm name (e.g.,
vpn
) and click the Create button.
- Click Add Realm.
- Create a VPN Client
- Navigate to Clients (Realms → VPN → Clients) and click Create.
- Provide the Client ID (e.g.,
vpn-client
) and click Save.
- Configure the client settings as follows:
Access Type: Confidential
Standard Flow Enabled: Off
Direct Access Grant Enabled: On
Click Save after making the changes.
- Navigate to Clients (Realms → VPN → Clients) and click Create.
- Create or Import VPN Users
- Users can be created manually or imported in bulk using a script.
Refer to the Import Bulk Users Guide for details on script-based user creation. - Manual User Creation:
- Go to Users (Realms → VPN → Users) and click Add User. Provide user details and click Save.
- Set a password, ensuring the Temporary option is turned off, and click Set Password.
- Go to Users (Realms → VPN → Users) and click Add User. Provide user details and click Save.
- Users can be created manually or imported in bulk using a script.
- SMTP Configuration in zID
Refer to the SMTP Configuration Guide. - Reset User Password (If Required)
- Log in to the VPN Realm Console at
https://<director_ip>:8082/auth/admin/vpn/console
. - Click Forgot Password, provide the user’s email, and click Submit.
- Follow the reset link, provide a new password, and confirm.
- Log in to the VPN Realm Console at
On the DC CPE: Create Server Certificate and Tunnel
- Generate Server Certificate
Navigate to Security (Edge Controller → CPE ID → Security → X509 → Certificates), fill in the required details, and click Generate.
- Create a Tunnel
- Obtain the Client ID, Secret, and Token URL from zID:
- Log in to zID, navigate to Clients (Realms → VPN → Clients →
<vpn_client_id>
→ Credentials), and copy the secret.
- Log in to zID, navigate to Clients (Realms → VPN → Clients →
- Go to Tunnels (Edge Controller → CPE ID → Network → Tunnels → SiteToMobileVPN) and provide the following details:
Description: VPN00
Tunnel ID: Auto-generated
Remote Port: <e.g., 10001>
Protocol: UDP (only UDP is supported)
Local IP: WANxx IP of the CPE
Gateway: WANxx Gateway
DHCP Pool: <e.g., 10.130.101.0/24>
Advertise Networks: <e.g., 172.5.0.0/24>
- In the Authorization section, configure as follows:
Authorization Type: OAuth
Server Certificate: Select the generated certificate
Client ID: vpn-client
Client Secret: Copy from zID
Token Endpoint: `https://<domainname>:8082/auth/realms/vpn/protocol/openid-connect/token`
Replace
<domainname>
with your domain or IP in the token URL.
- Obtain the Client ID, Secret, and Token URL from zID:
- Update DC CPE Metadata
WAN2_PUB_IP: 14.194.x.xWAN1_PUB_IP: 203.199.x.x
WAN1_PUB_PORT: 10001
WAN2_PUB_PORT: 10002
Site-2-Mobile: Site-2-Mobile - Create Mobile Clients
- Clients can be created manually or in bulk using a script. Refer to the Client Creation Guide.
- For manual creation:
- Navigate to Mobile Devices (Device Management → Edge Controllers → Mobile Devices).
- Provide the required details, then click Create.
- Download the
.ovpn
configuration file.
Installing and Configuring OpenVPN Client
Android
Installation
- Open the Google Play Store on your device.
- Search for OpenVPN Connect and install the app.
Importing Configuration and Certificates
- Transfer the
.ovpn
configuration file to your Android device (via email, USB, or a cloud storage service). - Open the OpenVPN Connect app.
- Tap the File tab or the Import Profile option.
- Locate and select the
.ovpn
file. - If required, ensure the server certificate is included in the
.ovpn
file or import it manually if instructed.
Connecting to the VPN
- After importing the configuration, the VPN profile will appear in the app.
- Tap the profile and select Connect.
- Enter your username and password (if prompted).
- Approve the connection request when prompted.
- Verify the status changes to “Connected.”
iOS
Installation
- Open the App Store on your iPhone or iPad.
- Search for OpenVPN Connect and install the app.
Importing Configuration and Certificates
- Transfer the
.ovpn
configuration file to your iOS device using one of the following methods:- Email the file to yourself and open it with the OpenVPN app.
- Use AirDrop to send the file to your iOS device.
- Upload the file to a cloud storage service (e.g., iCloud, Google Drive) and access it via the app.
- Open the OpenVPN Connect app.
- Tap the Import Profile or “+” icon, then select the
.ovpn
file. - If required, ensure the server certificate is included in the
.ovpn
file or import it manually if instructed.
Connecting to the VPN
- Once the configuration is imported, the VPN profile will be visible in the app.
- Tap the profile and select Connect.
- Enter your username and password (if prompted).
- Approve the connection request when prompted.
- Confirm the connection status as “Connected.”
Windows
Installation
- Visit the official OpenVPN website (https://openvpn.net/).
- Navigate to the Downloads section and download the OpenVPN Connect client for Windows.
- Install the application following the on-screen instructions.
Importing Configuration and Certificates
- Save the
.ovpn
configuration file to your computer. - Open the OpenVPN Connect client on your Windows system.
- Click the Import Profile option.
- Locate and upload the
.ovpn
file. - If required, ensure the server certificate is included in the
.ovpn
file or import it manually if instructed.
Connecting to the VPN
- The imported profile will appear in the OpenVPN client.
- Select the profile and click Connect.
- Enter your username and password (if prompted).
- Approve the connection request when prompted.
- Verify the status changes to “Connected” and confirm VPN access.
Verifying Connection
- Check for the connected status in the app.
- Verify you can access resources on the VPN network.
Was this article helpful?
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5
Table of Contents