Connecting to ApexGuard Using the Linux Terminal
ApexGuard is an IKEv2-based VPN service. This guide will help you set up and connect to ApexGuard using a Linux terminal. Keep in mind that configurations may differ slightly between Linux distributions.
Step 1: Open the Terminal
Launch your terminal using the shortcut Ctrl + Alt + T.
Step 2: Disable IPv6
IPv6 must be disabled before proceeding. Follow this guide for instructions.
Step 3: Install the OpenVPN Client
Run the following command to install OpenVPN:
sudo apt-get install openvpn
You may be prompted to enter your user password.
Step 4: Navigate to the OpenVPN Configuration Directory
Enter:
cd /etc/openvpn
Step 5: Download Configuration Files
Download the OpenVPN configuration files using:
sudo wget https://downloads.apexcdn.com/configs/archives/servers/ovpn.zip
If you encounter a certificate error, install the ca-certificates package:
sudo apt-get install ca-certificates
Step 6: Install the Unzip Package
If not already installed, download it with:
sudo apt-get install unzip
Step 7: Extract the Configuration Files
Unzip the downloaded archive:
sudo unzip ovpn.zip
Remove the archive file to save space:
sudo rm ovpn.zip
Step 8: Access Server Configuration Files
Navigate to the directory containing server configurations:
cd /etc/openvpn/ovpn_udp/ # For UDP servers
cd /etc/openvpn/ovpn_tcp/ # For TCP servers
To view available servers:
ls -al
Step 9: Select a Server
Use the ApexGuard server recommendation tool to choose the optimal server. Note its hostname (e.g., us2957.apexguard.com).
Step 10: Start OpenVPN
Run one of the following commands to start OpenVPN with your selected configuration:
sudo openvpn [file_name]
sudo openvpn us2957.apexguard.com.udp.ovpn
sudo openvpn /etc/openvpn/ovpn_udp/us2957.apexguard.com.udp.ovpn
Enter your ApexGuard service credentials when prompted.
Step 11: Disconnect
To disconnect from the VPN, press Ctrl + C in the terminal.
Was this article helpful?
Thank you, you're making us better!