This bash script automates the process of launching Network Connectors for CloudConnexa.
- Installs required dependencies (
jq,curl). - Installs OpenVPN3 and the connector setup tool if not present.
- Authenticates with the CloudConnexa API using your credentials.
- Gets the device's UUID, set this as the Network Name.
- Creates a new network with a connector.
- Obtains the connector token and completes the setup.
- Linux system with
aptpackage manager sudoprivileges- CloudConnexa API Client ID and Secret
The script requires the following environment variables:
| Variable | Required | Description |
|---|---|---|
OPENVPN_CLIENT_ID |
Yes | Your CloudConnexa API Client ID |
OPENVPN_CLIENT_SECRET |
Yes | Your CloudConnexa API Client Secret |
VPNREGION |
No | VPN region ID (default: us-mia) |
export OPENVPN_CLIENT_ID='YOUR-CLIENT-ID'
export OPENVPN_CLIENT_SECRET='YOUR-CLIENT-SECRET'Optionally, set a custom VPN region:
export VPNREGION='us-mia'Note: The default region is
us-mia. To find available regions, use the Get Existing Regions API endpoint.
Then run the script:
./connector-onboarding.shsudo wget -qO - https://raw.githubusercontent.com/GabrielPalmar/Simple-CloudConnexa-Onboarding/refs/heads/main/connector-onboarding.sh | bashThis will download and execute the script directly from GitHub.
- The script includes detailed comments for each step if you need to modify the process
