ALightVPN setup guides

Linux: connect with the ALightVPN console

The console provisions an API key, downloads an OpenVPN profile, and launches your installed OpenVPN executable. It currently requests OpenVPN profiles; Android .sswan import is covered in the Android guide.

1. Install OpenVPN

On Ubuntu or Debian, install the client and archive tool with your package manager:

sudo apt update
sudo apt install openvpn unzip
/usr/sbin/openvpn --version

On another distribution, use its supported OpenVPN package. See Ubuntu's OpenVPN documentation. A distribution's default OpenVPN/OpenSSL build may not support the hybrid groups required by your profile. If connection logs report an unsupported TLS group, use the compatible Linux client build listed on ALightVPN Downloads or ask support which build to install.

2. Choose and verify the console package

uname -m

Download the listed package and its matching .sha256 file from ALightVPN Downloads. The following example uses x64; substitute the ARM64 filename if appropriate. Run verification from the directory containing both files:

sha256sum -c alightvpn-console-linux-x64.zip.sha256
mkdir -p alightvpn-console
unzip alightvpn-console-linux-x64.zip -d alightvpn-console
cd alightvpn-console
chmod +x alightvpn

Continue only when verification reports OK. If no checksum file is published, compare sha256sum alightvpn-console-linux-x64.zip with the published release hash. Released console packages are self-contained; no separate .NET runtime is required.

3. Launch and provision an API key

sudo -v
./alightvpn

Run ALightVPN as your normal user. It invokes sudo for OpenVPN when needed; running the whole console as root would use root's separate credentials directory.

  1. First run starts API Key Setup and generates a public key.
  2. Copy the public key from the clipboard or terminal. Keep the console waiting at the encrypted-blob prompt.
  3. Sign in to API Keys in a browser, enter a device label, paste the public key, and select Generate API Key.
  4. Copy the encrypted transfer. At the console prompt, press Enter to read the clipboard, paste the transfer as one complete value, or enter the full path of the downloaded .key file without surrounding quotes.
  5. Wait for Credentials saved. See API-key setup if the transfer cannot be decrypted.

For a remote terminal without a clipboard, use the printed public key and a browser on another device. Transfer only the encrypted .key result back to the same waiting session.

4. Connect and check the tunnel

  1. At the main menu, enter c and press Enter. If OpenVPN was not detected, enter o first and supply its full path, commonly /usr/sbin/openvpn.
  2. Wait for the connected message; starting a process alone is not a connected tunnel.
  3. Enter t to run connection diagnostics. Confirm ordinary websites and DNS resolution work.
  4. Enter c again to disconnect, or q to quit normally.

Disconnecting through the console also requests revocation of its assigned profile. Connecting or saving a new profile can replace the previous assignment.

Console menu

KeyAction
cConnect / disconnect
sDownload and save an .ovpn file instead of starting a tunnel
rRevoke the current profile
pRe-provision the API key
oSet the OpenVPN executable path for this session
dToggle the DNS option for the next profile request
tRun diagnostics while connected
lToggle OpenVPN logging
qQuit

Export a profile for another OpenVPN client

Enter s, then accept the suggested save path or choose a path under the current directory, your Downloads directory, or the temporary directory. Saving does not connect. Import that .ovpn file into a compatible OpenVPN client and connect there. Requesting a new profile later can revoke the exported one.

Troubleshooting