How to Use OpenVPN and When to Choose It: One Profile for Routers, NAS and Linux
Updated
The OpenVPN section uses the twenty-year-old open-source protocol that nearly every OS, router firmware and NAS ships a client for. RoyalShield packages it as “click a flag, download one .ovpn file, import, connect”: the profile already carries your credentials and encryption material, nothing typed by hand. Its real value is not phones and laptops — AnyConnect and sing-box are easier there — but the places that only speak OpenVPN: OpenWrt routers, Synology and QNAP NAS, Linux servers, old devices. Below: when to choose it, importing on each platform, split routing inside China, and what to check when it fails.
Where it beats AnyConnect and sing-box
- Devices that only speak OpenVPN: router firmware (OpenWrt, Merlin, DD-WRT), NAS (Synology, QNAP), Linux servers, old systems. Hiddify does not install there and AnyConnect has no client.
- Unattended, connect-at-boot setups: the configuration is a single file that the system’s VPN settings can start at boot with no interface interaction.
- Daily use on phones and laptops: AnyConnect needs no import and sing-box handles packet loss better; both are more convenient. OpenVPN runs on UDP, so on campus networks that throttle UDP AnyConnect is the better choice.
- One account works with all three; there is no need to pick just one.
Import in three steps
- Install the client for your system from the table on this site’s OpenVPN page: the official OpenVPN Connect exists for every platform; Windows can also use OpenVPN GUI and macOS Tunnelblick, and all read the same profile.
- After logging in, click a region’s flag to download that region’s .ovpn file. One file per region; download as many as you need.
- Open or import the file in the client and connect. Windows, macOS, Android and iOS profiles have credentials built in; on Linux, import through the system VPN settings and enter your site email and password on the first connection.
Routers, NAS and Linux
- OpenWrt router: install luci-app-openvpn, upload the .ovpn, enable it, and the whole LAN takes the route. A router on this site’s firmware skips this — just log in with the account.
- Synology NAS: Control Panel → Network → Network Interface → Create → VPN → OpenVPN (via importing a .ovpn file). Tick “Use default gateway on remote network” only if the NAS’s outbound traffic should take the route; leave it unticked if you only want the NAS reachable.
- QNAP NAS: QVPN → VPN Client → Add → OpenVPN, import the file.
- Linux desktop: Network settings → VPN → Import from file. Command line: openvpn --config <file> (install the openvpn package on Debian/Ubuntu). For start at boot, place the file in /etc/openvpn/client/ and enable the matching systemd unit.
Inside China: keep Chinese sites direct
Connected from inside China, all traffic leaves overseas and Chinese sites slow down on the detour. This site offers a “China direct” tool: download, double-click, and Chinese IPs go direct while everything else takes the route — shared by the Cisco and OpenVPN sections. The LAN is direct already and needs no handling.
Users abroad should ignore this tool — it sends Chinese sites around the route, the opposite of what watching Chinese video needs.
For finer rules (by domain, by app) use the router option or sing-box routing rules.
When it will not connect, check in this order
- Try another region’s profile. If another region connects, that one server is temporarily unreachable.
- Read the log. AUTH_FAILED means wrong credentials or an expired account; TLS handshake failed / TLS key negotiation failed means UDP to the server is not getting through — change network or region; after a password change, download the profile again, the old one’s password is dead.
- Change networks. If broadband fails, try mobile data once and vice versa; campus and office networks that block UDP stop OpenVPN — switch to AnyConnect over TLS.
- Update the client. Old OpenVPN clients do not understand the newer encryption settings and show import errors or connection failures.
- After the account expires the server ends the session; reconnect after renewing, the profile stays valid.
Security notes
The profile carries your credentials — it is the account. Do not send it to others or upload it anywhere public. If it leaks, change your password on the site: old files stop working immediately, then download again.
The route uses tls-crypt-v2: without the key nobody can even start a handshake, so the servers are invisible to scanners. That is also why old clients must be updated — they do not support it.
Encryption is AES-256-GCM, comparable in strength to AnyConnect.
FAQ
Is OpenVPN or AnyConnect more secure?
Both are mature encrypted protocols of comparable strength. The difference is device support and network tolerance: AnyConnect over TLS is steadier on restricted networks; OpenVPN is more universal on routers and NAS.
Can one profile be used on several devices?
Yes — one account allows 5 devices online at once, and the file can be copied to each. A router counts as one device; the devices behind it do not.
Why must Linux ask for the password?
Linux network managers ignore the credentials embedded in the file when importing, so the first connection asks once and remembers afterwards.
What about profiles on a router or NAS after a password change?
Download the .ovpn again and replace it, or edit only the password field in the device’s VPN settings. A password change is the intended revocation mechanism, so old files failing is by design.
Why UDP only?
UDP has lower latency and suits video and games; nearly every network allows it. On the few networks that block UDP, use AnyConnect — same account, nothing extra to buy.
Related pages
- OpenVPN page: client downloads and profiles →
- Choosing a VPN router →
- Does Cisco AnyConnect work in China →
- China VPN for students abroad, by scenario →
- Tencent Video or iQIYI Says “Not Available in Your Region” Even on a VPN? Fix It in 5 Steps →
- How to Choose a China VPN: Where the Mainland IP Comes From and Why Free Ones Keep Dropping →
- How to Import a sing-box Subscription: Hiddify by QR Code, Desktop by Paste, Other Clients →
- What a Web Proxy Is, and When to Use a Proxy Instead of a VPN →
- Free or Paid China VPN: Why Free Nodes Keep Dropping and What Paid Should Cost →
- What the Private Network (Tailscale) Is: Log In Once, Stay Online, Reach Your Own Devices →
- What the Router Firmware Does: Three Routing Modes, Binding and Replacement, Auto-Updates, TVs and Grandparents →
- How to Reach Us and Never Lose Contact: Choosing Between Three Support Groups, What the AI Agent Can Do, and What to Do When the Site Won’t Open →