If you need to change the region for a CloudConnexa Linux connector, follow these steps.
Update the region in the CloudConnexa portal
- Sign in to the CloudConnexa portal.
- Under Networks, click Connectors.
- Click the connector's name.
- Click Edit Connector.
- Change the Region from the drop-down box and click Update Connector.
- A warning displays that the connector's public IP address will change when you change the region.
Copy a new .ovpn profile token
- Under Networks, click Connectors.
- Find the connector with the updated region and click Deploy > Copy .ovpn Profile Token.
- Save the token string to a file you'll use later.
Remove previous sessions and configurations on the Linux machine
- Connect to the Linux machine and get root privileges (or use sudo).
- Run the following command to remove all active sessions:
for path in $(sudo openvpn3 sessions-list | grep -o '\S*/net/openvpn/\S*'); do sudo openvpn3 session-manage --path ${path} --disconnect; done
- Run the following command to remove all configuration files:
for path in $(sudo openvpn3 configs-list | grep -o '\S*/net/openvpn/\S*' || sudo openvpn3 configs-list --verbose | grep -o '\S*/net/openvpn/\S*'); do sudo openvpn3 config-remove --path ${path} --force; done
Note: These commands only remove sessions and configurations created under the root user. Any sessions or configs set up by other users must be removed separately.
Confirm cleanup
- Run the following command to check for active sessions:
sudo openvpn3 sessions-list
- You should see:
No sessions available
.
- You should see:
- Run this command to check for existing configuration files:
sudo openvpn3 configs-list
- The output should show no listed configurations.
Reconnect the connector with the new region
- Use the token you saved earlier and run the setup command:
sudo openvpn-connector-setup --token <token saved on first step>
- Reboot the system to complete the process:
sudo reboot
- After the reboot, the Linux connector will connect using the updated region.
Comments
0 comments
Please sign in to leave a comment.