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
x86_64: choosealightvpn-console-linux-x64.zip.aarch64orarm64: choosealightvpn-console-linux-arm64.zip.
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.
- First run starts API Key Setup and generates a public key.
- Copy the public key from the clipboard or terminal. Keep the console waiting at the encrypted-blob prompt.
- Sign in to API Keys in a browser, enter a device label, paste the public key, and select Generate API Key.
- 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
.keyfile without surrounding quotes. - 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
- At the main menu, enter
cand press Enter. If OpenVPN was not detected, enterofirst and supply its full path, commonly/usr/sbin/openvpn. - Wait for the connected message; starting a process alone is not a connected tunnel.
- Enter
tto run connection diagnostics. Confirm ordinary websites and DNS resolution work. - Enter
cagain to disconnect, orqto 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
| Key | Action |
|---|---|
c | Connect / disconnect |
s | Download and save an .ovpn file instead of starting a tunnel |
r | Revoke the current profile |
p | Re-provision the API key |
o | Set the OpenVPN executable path for this session |
d | Toggle the DNS option for the next profile request |
t | Run diagnostics while connected |
l | Toggle OpenVPN logging |
q | Quit |
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
- sudo authentication required: quit, run
sudo -vin your terminal, and relaunch. Your user must have permission to run OpenVPN with sudo. - Connected but DNS does not work: Unix OpenVPN DNS integration depends on the host resolver and client configuration. Use
tandlto inspect it; the console does not install resolver-management hooks. A profile's DNS settings alone do not prove the resolver uses them. - Wrong executable format: recheck
uname -mand use the matching package. - Credentials appear missing: run under the same Linux user. Credentials are in
~/.alightvpn/credentials; see the API-key guide for storage and replacement.