You can configure a UniFi OS router as a CloudConnexa Network Connector using IPsec to provide site-to-site connectivity.
Although UniFi routers support OpenVPN, the IPsec client provides better support for site-to-site connectivity and firewall rule management, making the configuration easier to maintain.
Prerequisites
Admin access to the CloudConnexa portal.
Admin access to your UniFi admin dashboard.
A reachable Public IPv4 address configured on the UniFi device.
Step 1: Create a Network in CloudConnexa
Navigate to Networks → Networks.
Select Add Network.
Select Skip Wizard.
Under Network Details, enter a name for the Network.
For Connector Tunneling Protocol, select IPsec.
Under Connectors, select the CloudConnexa Region closest to the UniFi device.
Under IP Services (optional), add the subnets that you want the IPsec Connector to access.
Note: You can also use an existing Network. Make sure IPSec is selected under the Connectors section.
Step 2: Configure the IPsec Connector in CloudConnexa
Open the Connectors section of the Network and select Configure.
In the Platform to Connect dropdown, select IPsec Compatible Router: Other.
Under Setup CloudConnexa Tunnel, configure the following:
Remote Site Public IPv4 Address: Enter the WAN IP of the UniFi device. You can find it under Settings → Internet in UniFi.
Authentication Method: Select Shared Secret.
Pre-shared Key (PSK): Enter a value of your choice. You'll use this same key when configuring UniFi.
Connector Hostname: Enter a hostname of your choice (for example,
unifi-connector).Connector Domain: Enter a domain of your choice (for example,
domain.com).
The Connector Hostname and Connector Domain form the fully qualified domain name (FQDN) used as the Local Authentication ID in UniFi (for example, unifi-connector.domain.com). Neither needs to be a real hostname or domain.
Note: Keep the CloudConnexa configuration page open. You will need values from the Remote Tunnel Configuration section when configuring UniFi.
Step 3: Create the Site-to-Site VPN in UniFi
In UniFi, navigate to Settings → VPN → Site-to-Site VPN.
Select Create New.
Set VPN Type to IPsec.
For Name, enter a name to identify the VPN connection.
For Pre-Shared Key, enter the same PSK you set in CloudConnexa.
For Local IP, select the WAN interface IP address. This should match the Remote Site Public IPv4 Address you entered in CloudConnexa.
For Remote IP / Hostname, enter the CloudConnexa Gateway Address shown in the CloudConnexa configuration. This value is also displayed as the CloudConnexa Public IP Address.
Under Network Configuration, set VPN Method to Route Based.
Set Remote Networks to Static.
Add each subnet listed under Routes in the CloudConnexa Remote Tunnel Configuration as a separate entry. For example:
Routes : 192.168.200.0/24, 100.96.0.0/11, 100.80.0.0/12, 10.1.0.0/16
In this example, add each address as a separate Remote Network.
Change Advanced from Auto to Manual.
Set Key Exchange Version to IKEv2.
Configure the IKE settings:
Encryption:
AES-256Hash:
SHA256DH Group:
15Lifetime:
28800
Configure the ESP settings:
Encryption:
AES-256Hash:
SHA256DH Group:
15Lifetime:
3600
For Local Authentication ID, disable Auto and enter the FQDN created from the Connector Hostname and Connector Domain configured in CloudConnexa. For example,
unifi-connector.domain.com.Leave the remaining settings at their defaults and select Create.
Step 4: Verify the Connection
- Before testing the connection, verify that the UniFi IPsec parameters match the values shown in the Remote Tunnel Configuration section of CloudConnexa.
- Return to the CloudConnexa Administration Portal and select Test Connection.
- Confirm that the IPsec tunnel connects successfully.
Comments
0 comments
Please sign in to leave a comment.