Description:
How to change the VPN region for a deployed Linux Connector. This assumes a systemd-based Linux distribution and sudo for root privileges.
Step 1: Change the Connector's region in the portal
If Host Connector:
- Sign in to your Administration portal.
- Navigate to Hosts → Connectors.
- Click the edit icon for the Connector you want to edit.
- Change the Region to the new, desired region.
- Click Update Connector.
If Network Connector:
- Sign in to your Administration portal.
- Navigate to Networks → Connectors.
- Click the edit icon for the Connector you want to edit.
- Change the Region to the new, desired region.
Step 2: Copy the Connector's .ovpn profile token
If Host Connector:
- Navigate to Hosts → Connectors.
- Click the Deploy drop-down menu.
- Select Copy .ovpn Profile Token.
- Click Copy to copy the token to your clipboard.
- Save to a temporary location.
If Network Connector:
- Navigate to Networks → Connectors.
- Click the Deploy drop-down menu.
- Select Copy .ovpn Profile Token.
- Click Copy to copy the token to your clipboard.
- Save to a temporary location.
Step 3: Disconnect the Connector from the WPC
- Connect to the Connector console (e.g., via SSH).
List active sessions to find the session path:
sudo openvpn3 sessions-list
Copy the session path from the output. For example:
/net/openvpn/v3/sessions/7a9538fes3e2es48d4sa08fs17c3747750c7
Disconnect the session using that path:
sudo openvpn3 session-manage -D -o <paste-here-the-path>
Verify the session is no longer active:
sudo openvpn3 sessions-list
Step 4: Download the Connector's new profile
Run the connector setup tool:
sudo openvpn-connector-setup
- When prompted for a token, paste the token saved in step 2.
Step 5: Restart the service and verify
Stop the autoload service:
sudo systemctl stop openvpn3-autoload.service
Start it again:
sudo systemctl start openvpn3-autoload.service
Confirm the Connector is connected and using the new region:
sudo openvpn3 sessions-list
Comments
0 comments
Please sign in to leave a comment.