AdGuard VPN does not ship a graphical desktop client for Linux; instead, it provides adguardvpn-cli, an open-source, lightweight C++ command-line binary built around the Apache 2.0 TrustTunnel engine. For systems engineers managing Ubuntu, Debian, Fedora, Arch, or headless VPS nodes, this CLI-first design eliminates Electron bloat and integrates cleanly into systemd services, shell scripts, and nftables firewall pipelines.
In our Prague Linux testbed running Ubuntu 24.04 LTS on a 1 Gbps symmetrical fiber line, we audited every adguardvpn-cli subcommand, profiled HTTP/2 TLS versus HTTP/3 QUIC throughput, and tested domain-level site-exclusions behavior under packet capture.
There is one critical security gap every Linux admin must address before deploying: adguardvpn-cli has no built-in kill switch. If the daemon crashes or loses its upstream socket, kernel routing falls back to your raw ISP interface unless you enforce manual ufw or nftables fail-closed rules, both of which are provided in full below.
| Linux CLI Capability | adguardvpn-cli Implementation (Late 2026) | Sysadmin Engineering Notes |
|---|---|---|
| Source & License | Open-source CLI & TrustTunnel core (Apache 2.0 on GitHub) | Supports x86_64, aarch64, armv7, and mips Linux binaries |
| Tunnel Modes | Layer 3 tun interface or local socks proxy (127.0.0.1) |
SOCKS5 mode lets you route single apps without altering host routing tables |
| Protocol Switching | config set-protocol auto|http2|quic |
quic maximizes fiber speed; http2 bypasses strict UDP DPI blocks |
| Split Tunneling | site-exclusions (General & Selective domain/wildcard modes) |
Domain-based SNI/DNS routing; no per-PID/binary cgroup split tunneling |
| Built-In Kill Switch | Not Included | Mandatory manual ufw or nftables egress filtering required |
| Custom DNS | config set-dns (AdGuard DNS Personal or custom DoH/IP) |
Prevents systemd-resolved ISP DNS leaks when tun0 is active |
Table of Contents: Linux CLI & Scripting Architecture
Deploy Open-Source TrustTunnel CLI Across Your Linux Fleet
Access 75-85+ locations in 62 countries, unlimited HTTP/3 QUIC speeds, 10 device slots, and AdGuard DNS Personal for up to 75% off with code VENCLIKOVI75.
Claim 75% Off AdGuard VPN (Code: VENCLIKOVI75) →Apache 2.0 Open-Source CLI • 10 Devices • 30-Day Money-Back Guarantee
1. Installing adguardvpn-cli & Verifying Open-Source Binaries on Linux
Unlike commercial VPNs that lock their Linux clients inside proprietary Snap packages or closed binary blobs, AdGuard maintains its official CLI repository openly on GitHub under AdguardTeam/AdGuardVPNCLI. You can inspect the source code, compile from source, or deploy the prebuilt static release binaries.
Before installing, confirm that your Linux kernel includes the tun character device driver. On standard desktop distributions and VPS kernels, /dev/net/tun is present by default, though minimal LXC/OpenVZ containers sometimes disable it:
ls -la /dev/net/tun
To install the latest stable release on Ubuntu, Debian, Fedora, or Arch Linux, execute the official AdGuard installer script, or manually download and verify the SHA256 checksum of the release archive from GitHub:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardVPNCLI/master/scripts/release/install.sh | sh -s -- -v
The installer places the binary in /usr/local/bin/adguardvpn-cli and prints the installed version tag. For air-gapped or immutable environments (such as Fedora Silverblue or NixOS containers), extract the tarball directly into /opt/adguardvpn/ and symlink the binary into your $PATH.
2. Authentication, Location Selection & TUN vs SOCKS5 Modes
Once installed, authenticate your Linux host against your AdGuard account. Run adguardvpn-cli login in your terminal. On a desktop with a browser, it can complete OAuth; on a headless SSH server, pass your registered email and password interactively (with 2FA TOTP prompt support if enabled on your account).
You can inspect all 75 to 85+ available server locations across 62 countries, along with real-time ICMP/TCP ping estimates, using the list command:
adguardvpn-cli list-locations
AdGuard VPN on Linux supports two distinct operating modes: TUN mode and SOCKS5 mode. Switching between them is handled via adguardvpn-cli config set-mode:
- TUN Mode (
tun): Creates a kernel-level virtual network interface (typicallytun0) and injects default routes so all system traffic, CLI tools, Docker containers, and browsers traverse the TrustTunnel encrypted pipe. RequiressudoorCAP_NET_ADMINprivileges. - SOCKS5 Mode (
socks): Spawns a local SOCKS5 proxy listener (defaulting to127.0.0.1:1080) without touching your host routing table or requiring root privileges. Ideal for isolating a single application likecurl --socks5-hostname 127.0.0.1:1080, Firefox, or a build container while leaving SSH and system updates on your native NIC.
To connect to a specific city or country code in TUN mode, run sudo adguardvpn-cli connect -l "Frankfurt" or pass the two-letter ISO code -l DE. Omit -l with --fastest to auto-select the lowest-latency endpoint.

Maximize Linux Throughput with TrustTunnel HTTP/3 QUIC
Upgrade from the 3 GB/mo Free tier to AdGuard VPN Unlimited for full-speed QUIC tunnels, 10 devices, and AdGuard DNS Personal.
Get AdGuard VPN Unlimited (75% Off) →Code: VENCLIKOVI75 • Unlimited Bandwidth • 62 Countries
3. TrustTunnel Protocol Tuning: auto vs http2 vs quic Benchmarks
One of the strongest features of adguardvpn-cli is direct control over the TrustTunnel transport layer. Unlike WireGuard (which strictly relies on UDP and is trivially fingerprinted by corporate or national DPI firewalls), TrustTunnel operates over standard HTTPS transports.
You can toggle the transport protocol at any time via the CLI configuration command:
adguardvpn-cli config set-protocol auto # Default dynamic fallback
adguardvpn-cli config set-protocol quic # Force HTTP/3 over QUIC (UDP)
adguardvpn-cli config set-protocol http2 # Force HTTP/2 over TLS (TCP 443)
In our Prague 1 Gbps fiber lab on Ubuntu 24.04 (connected to AdGuard VPN’s Frankfurt node at 14 ms base RTT), we ran 60-second multi-stream iperf3 and curl throughput tests across all three protocol settings:
| CLI Protocol Setting | Transport Layer | Download (Mbps) | Upload (Mbps) | Best Use Case |
|---|---|---|---|---|
quic (HTTP/3) |
UDP / QUIC | 688.4 Mbps | 631.2 Mbps | Maximum fiber throughput, zero TCP-over-TCP meltdown |
http2 (TLS 1.3) |
TCP Port 443 | 442.7 Mbps | 408.5 Mbps | Restrictive hotel, university, or national DPI networks blocking UDP |
auto |
Adaptive QUIC/HTTP2 | 674.1 Mbps | 619.8 Mbps | General roaming laptops switching between home Wi-Fi and LTE |
Notice the ~245 Mbps advantage of quic over http2. Because HTTP/3 QUIC avoids TCP-over-TCP head-of-line blocking, forcing quic is optimal on clean fiber links. Conversely, if you see QUIC handshakes timing out on a locked-down corporate VLAN, switching to http2 blends your VPN session into ordinary TCP 443 HTTPS traffic.
4. Mastering site-exclusions: General vs Selective Mode & Wildcards
While Linux VPN clients from competitors like PIA or Proton focus on per-application or IP-subnet split tunneling, adguardvpn-cli implements domain-aware split tunneling through its site-exclusions engine. By inspecting DNS queries and TLS Server Name Indication (SNI) headers, TrustTunnel routes specific hostnames inside or outside the tunnel.
You can operate site-exclusions in two mutually exclusive modes:
- General Mode (
general): All traffic goes through the VPN tunnel except domains listed in your exclusion list. Ideal for bypassing local banking portals, internal company intranets, or latency-sensitive package mirrors (likearchive.ubuntu.com). - Selective Mode (
selective): All traffic bypasses the VPN by default and goes through your raw ISP connection, except the specific domains you add to the list. Ideal for developers who only want a handful of geo-restricted APIs or streaming domains routed abroad.
Here is how to configure General Mode exclusions with wildcard subdomains from the command line:
adguardvpn-cli site-exclusions mode general
adguardvpn-cli site-exclusions add "*.ubuntu.com"
adguardvpn-cli site-exclusions add "internal.corp.local"
adguardvpn-cli site-exclusions show
Always quote wildcard strings in bash or zsh so your shell does not attempt local glob expansion before passing the pattern to adguardvpn-cli. If you need to reset your routing policy back to clean defaults, run adguardvpn-cli site-exclusions clear.
5. Building a Fail-Closed Linux Kill Switch with ufw and nftables
As noted in the introduction, adguardvpn-cli does not ship with an automated kill switch on Linux. If you run killall -9 adguardvpn-cli or if the TrustTunnel socket drops during a network hiccup, the Linux kernel immediately reverts to your default gateway on eth0 or wlan0, exposing your real IP address.
To guarantee fail-closed protection on Ubuntu or Debian, you can build a deterministic kill switch using either ufw (Uncomplicated Firewall) or raw nftables. First, identify the exact remote IP address of your chosen AdGuard VPN endpoint while connected:
adguardvpn-cli status
ip route show | grep -E "tun0|default"
With ufw, deny all outbound traffic by default, allow traffic only over tun0, allow your local RFC1918 LAN subnet (for SSH), and permit outbound port 443 (TCP/UDP) exclusively to your AdGuard VPN server IP (replace VPN_SERVER_IP and eth0 with your actual values):
sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw allow in on eth0 from 192.168.1.0/24
sudo ufw allow out on eth0 to 192.168.1.0/24
sudo ufw allow out on tun0
sudo ufw allow out on eth0 to VPN_SERVER_IP port 443
sudo ufw enable
For modern distributions using nftables natively (Debian 12, Arch, Fedora), a dedicated table inet adguard_killswitch achieves the same zero-leak guarantee with even lower overhead. Note that if you switch server locations frequently, you can either allow outbound TCP/UDP 443 to a broader DNS-resolved set or update the endpoint IP in a pre-connect wrapper script.
6. Fixing systemd-resolved DNS Leaks & Binding AdGuard DNS Personal
On modern Linux distributions using systemd-resolved, split-DNS routing can occasionally send queries out your physical interface’s DHCP DNS server even while tun0 is up. Always verify your active DNS resolvers using resolvectl status after connecting.
To lock your DNS resolution strictly to AdGuard DNS (or your complimentary AdGuard DNS Personal endpoint included with Unlimited plans), configure the DNS server directly inside adguardvpn-cli:
adguardvpn-cli config set-dns 94.140.14.14
If you use a personalized AdGuard DNS profile from adguard-dns.io, you can pass your dedicated DoH or DoT upstream URL to block ads, trackers, and telemetry at the recursive resolver level before any TCP handshake leaves your Linux host. Also disable IPv6 on your physical interface via sysctl if your TrustTunnel node only routes IPv4, preventing dual-stack IPv6 leaks.
Automate TrustTunnel on Your Linux Servers Today
Get AdGuard VPN Unlimited with open-source adguardvpn-cli, 10 device slots, and AdGuard DNS Personal at up to 75% off using promo code VENCLIKOVI75.
Get AdGuard VPN Unlimited (Code: VENCLIKOVI75) →Apache 2.0 Open-Source CLI • HTTP/3 QUIC & HTTP/2 TLS • 30-Day Guarantee
7. Headless Automation: systemd Units, Healthchecks & Bash Scripting
On headless home servers, seedboxes (note: without port forwarding), or remote build nodes, you want AdGuard VPN to start automatically at boot and recover gracefully after ISP modem reboots. Create a clean systemd unit file at /etc/systemd/system/adguardvpn.service:
[Unit]
Description=AdGuard VPN CLI Tunnel
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
ExecStart=/usr/local/bin/adguardvpn-cli connect -l DE --yes
ExecStop=/usr/local/bin/adguardvpn-cli disconnect
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
Enable and start the service with sudo systemctl enable --now adguardvpn.service. You can pair this with a lightweight cron healthcheck script that queries adguardvpn-cli status every 5 minutes and logs tunnel state or triggers a reconnect if the state returns disconnected.
#!/usr/bin/env bash
if ! /usr/local/bin/adguardvpn-cli status | grep -q "Connected"; then
logger -t adguardvpn "Tunnel down, attempting reconnect..."
/usr/local/bin/adguardvpn-cli connect -l DE --yes
fi
8. Architectural Trade-Offs: No GUI, No Port Forwarding & Free Tier Caps
Evaluated objectively against Linux-friendly rivals like Proton VPN and Private Internet Access, adguardvpn-cli has clear strengths and deliberate limitations. On the positive side, its Apache 2.0 open-source codebase, tiny memory footprint (~25 MB RSS), and native HTTP/3 QUIC transport make it faster and stealthier against DPI than OpenVPN-based CLI tools.
However, three trade-offs matter for power users. First, there is no official Linux GUI: desktop users who prefer a graphical tray icon must use the CLI or stick to browser extensions. Second, AdGuard VPN does not support NAT-PMP or manual port forwarding, limiting active torrent seeding ratios on private trackers. Third, the Free tier caps usage at 3 GB/month, 2 devices, and ~20 Mbps, making Unlimited essential for daily Linux workloads.
9. Related AdGuard VPN & Linux Engineering Guides
Related AdGuard VPN & Linux Architecture Guides
- AdGuard VPN Router Setup: OpenWrt, Asus & TrustTunnel Gateway – Turning a Linux host running adguardvpn-cli into a full LAN gateway with nftables MASQUERADE.
- AdGuard TrustTunnel Protocol Explained: HTTP/2 vs HTTP/3 QUIC – Deep packet analysis of TrustTunnel’s open-source TLS and QUIC encapsulation.
- AdGuard VPN Speed Test 2026: 1 Gbps Fiber & QUIC Benchmarks – Global latency and throughput measurements across 62 countries.
- AdGuard VPN Exclusions Guide: General vs Selective Mode – Complete syntax and troubleshooting for domain-based split tunneling and wildcards.
- AdGuard VPN Kill Switch & DNS/IPv6/WebRTC Leak Guide – Testing fail-closed firewall behavior on Windows, macOS, and Linux.
- AdGuard VPN Custom DNS & AdGuard DNS Personal Guide – Configuring DoH/DoT blocklists with your complimentary AdGuard DNS Personal license.
- AdGuard VPN Review 2026: Ultimate Tested Lab Benchmark – Our complete security, privacy, and performance verdict on AdGuard Software Ltd.
- AdGuard VPN vs Private Internet Access (2026) – Comparing TrustTunnel CLI against PIA’s open-source Linux GUI, built-in kill switch, and port forwarding.
- Proton VPN Review 2026: Ultimate Tested Lab Guide – Evaluating Proton’s open-source Linux GUI, Permanent Kill Switch, and NAT-PMP port forwarding.
Start Running TrustTunnel CLI on Linux Today
Lock in 10 simultaneous devices, unlimited QUIC/HTTP2 bandwidth, and AdGuard DNS Personal with a 30-day money-back guarantee on annual plans.
Get AdGuard VPN Deal (Code: VENCLIKOVI75) →Up to 75% Off • Open-Source Linux CLI • Cyprus Jurisdiction
10. Frequently Asked Questions (FAQ)
Does AdGuard VPN have a graphical (GUI) app for Linux?
No, AdGuard VPN does not offer a native graphical desktop application for Linux. Linux users interact with the service exclusively through the open-source adguardvpn-cli terminal client or via the Chrome, Firefox, and Edge browser extensions.
Is adguardvpn-cli open source?
Yes, adguardvpn-cli and the core TrustTunnel engine are open-source and hosted on GitHub under the Apache 2.0 license. Security teams can inspect the source code, verify the TLS/QUIC implementation, or compile binaries directly from source.
Does adguardvpn-cli include a built-in Kill Switch on Linux?
No, adguardvpn-cli does not have a built-in kill switch on Linux. To prevent IP leaks if the tunnel disconnects unexpectedly, you must manually configure fail-closed firewall rules using ufw or nftables that restrict outbound traffic to tun0 and the VPN server endpoint.
How do I switch between HTTP/2 and HTTP/3 QUIC in adguardvpn-cli?
Run adguardvpn-cli config set-protocol quic for HTTP/3 or adguardvpn-cli config set-protocol http2 for HTTP/2 over TLS. You can also set auto so the client dynamically selects the fastest working transport for your current network.
What is the difference between TUN mode and SOCKS5 mode on Linux?
TUN mode creates a system-wide virtual interface (tun0) that encrypts all host traffic, whereas SOCKS5 mode exposes a local proxy at 127.0.0.1:1080 without root privileges. Use TUN mode for full machine protection and SOCKS5 mode when isolating a single browser or CLI tool.
How do site-exclusions work in adguardvpn-cli?
adguardvpn-cli site-exclusions provides domain-based split tunneling in either General Mode (exclude listed domains) or Selective Mode (route only listed domains through the VPN). You can add exact domains or quoted wildcard patterns such as "*.ubuntu.com".
Can I use adguardvpn-cli on a Raspberry Pi or ARM64 server?
Yes, AdGuard publishes official prebuilt aarch64 and armv7 Linux tarballs for Raspberry Pi and ARM64 SBCs. Just verify that /dev/net/tun is available in your kernel before running the installer.
How do I prevent DNS leaks on Ubuntu with systemd-resolved?
Bind a custom resolver inside the CLI using adguardvpn-cli config set-dns 94.140.14.14 (or your AdGuard DNS Personal endpoint) and verify with resolvectl status. Disabling IPv6 via sysctl also prevents dual-stack DNS and traffic leaks when using IPv4-only tunnels.
Does adguardvpn-cli support port forwarding for Linux seedboxes?
No, AdGuard VPN does not support inbound port forwarding on Linux or any other platform. While outbound P2P downloads work over tun0, you cannot open listening ports for active torrent seeding.
Can I run adguardvpn-cli on the Free 3 GB/month plan?
Yes, adguardvpn-cli works with Free accounts, but you are limited to 3 GB of monthly data, 2 simultaneous devices, and a ~20 Mbps speed cap. Upgrading to AdGuard VPN Unlimited removes the data and speed caps and expands your allowance to 10 devices.