Custom Profiles
Upload your own .ovpn file or WireGuardThe VPN protocol that signs in with a key, not a password .conf file to connect through a VPN service that has no built-in catalogThe provider's server list you pick endpoints from.
Why Use a Custom Profile?
- Accepts a validated OpenVPN profile or WireGuard file from any service, so you aren't limited to the built-in providers. Every OpenVPN
remoteline supplies one endpoint. - Rewrites each file into a checked, minimal form, so a downloaded file can't run scripts or commands or change how traffic leaves the container.
- Encrypts the saved file with the installation keyUnlocks your saved secrets; lose it and they're removed, so certificates and keys aren't stored as plain text.
- Updates the existing entry when you upload an identical file with the same name, so repeat uploads don't add copies.
Profile Requirements
The TunnelOpenVPN or WireGuard; every endpoint in a pool shares one switch decides which kind of file the VPN page takes, and each kind has its own rules.
OpenVPN Profiles
- Size — The VPN page accepts files smaller than 900 KB.
- One or more
remotelines — Each needs a host name or IP address and a port from 1 to 65535. Every line becomes its own endpointOne VPN server you can connect to, in the same order as the file. - A trust anchorWhat proves the server is real; every profile needs one — The profile needs an inline
<ca>,<tls-auth>, or<tls-crypt>block, or apeer-fingerprintline. - Inline blocksKeys pasted inside the file, not linked from elsewhere for certificates and keys — Paste them between tags such as
<ca>and</ca>, because lines that point to separate files, such asca ca.crt, are rejected. - A
tundevice — Adevline, when the file has one, must bedev tunordev tun0. - UDP or TCP — A
protoline, and any protocol on aremoteline, must beudp,udp4,tcp,tcp-client, ortcp4-client, so IPv6-only transports such asudp6are rejected.
The accepted inline blocksKeys pasted inside the file, not linked from elsewhere are <ca>, <cert>, <key>, <tls-auth>, <tls-crypt>, and <tls-crypt-v2>. PKCS #12 files (pkcs12) aren't supported.
WireGuard Files
- Size — Up to 64 KiB.
- Sections — One
[Interface]and exactly one[Peer], with every setting inside one of them. - Format — Setting names are case-insensitive, and
#starts a comment. [Interface]PrivateKey— Required, because the file brings its own private keyYour WireGuard password; it never shows up in logs.Address— Required, with at least one IPv4 address and up to 8.DNS— Optional, with up to 8 IPv4 servers. Without it, the connection uses1.1.1.1and9.9.9.9.MTU— Optional, from 1280 to 1500.ListenPortandSaveConfig— Ignored.
[Peer]PublicKey— Required.PresharedKey— Optional.Endpoint— Required, as an IPv4 address or a host name with a port.AllowedIPs— Optional, and always replaced with0.0.0.0/0.PersistentKeepalive— Optional, and always set to 25.
- Not allowed
PreUp,PostUp,PreDown, andPostDown, because the container never runswg-quickand a file can't run commands.TableandFwMark, because the container manages routing itself.- An IPv6
Endpoint. - Any other setting or section.
What Gets Changed
In OpenVPN Profiles
Profile normalizationStrips risky lines so an uploaded file can't escape starts every saved profile with these lines, replacing any equivalents from your file:
client
dev tun0
auth-user-pass /run/transmission-vpn/openvpn/auth
auth-nocache
nobind
persist-key
persist-tun
redirect-gateway def1
allow-compression no
verb 3
- Comments, blank lines, and the
compress,comp-lzo,allow-compression, andblock-outside-dnslines in your file are dropped. redirect-gateway def1sends IPv4 internet traffic through the tunnel.- A
redirect-gatewayline with other options is saved, but the connection is rejected when you test it, so it is recommended to remove such lines first.
In WireGuard Files
Profile normalizationStrips risky lines so an uploaded file can't escape rewrites every saved WireGuard file into one fixed form:
AllowedIPsbecomes0.0.0.0/0, so all IPv4 internet traffic goes through the tunnel.PersistentKeepalivebecomes 25 seconds, so an idle tunnel keeps a recent handshakeWireGuard's heartbeat; a stale one means the server's gone.- IPv6 addresses, IPv6 DNS servers, and
::/0are removed, so IPv6 stays blocked. - DNS search domains,
ListenPort,SaveConfig, and comments are dropped.
Rejected Directives
These OpenVPN directives fail validation with a message that names the reason:
| Directives | Why they're rejected |
|---|---|
up, down, down-pre, up-restart, route-up, ipchange, learn-address, auth-user-pass-verify | They run programs. |
script-security, plugin | They enable script hooks or load plugins. |
setenv | It changes the OpenVPN process environment. |
route-noexec, route-nopull, pull-filter | They can stop the tunnel's routes from being installed. |
http-proxy, socks-proxy | OpenVPN connects straight to the VPN endpoint. |
daemon, writepid | s6-overlayStarts the firewall first and keeps every service running supervises OpenVPN. |
log, log-append, status | The container owns OpenVPN's logging and status output. |
management | The VPN controllerThe only part allowed to bring tunnels up or down owns OpenVPN's management interface. |
Any other directive must be on the list of data-only options, or validation fails with unsupported directive. The list is auth, auth-retry, cipher, connect-retry, connect-retry-max, connect-timeout, data-ciphers, data-ciphers-fallback, explicit-exit-notify, fast-io, float, fragment, hand-window, key-direction, link-mtu, mssfix, mute-replay-warnings, peer-fingerprint, ping, ping-exit, ping-restart, persist-remote-ip, pull, rcvbuf, redirect-gateway, remote-cert-tls, remote-random, remote-random-hostname, reneg-sec, replay-window, resolv-retry, server-poll-timeout, sndbuf, tls-cipher, tls-ciphersuites, tls-client, tls-version-min, tran-window, tun-mtu, and verify-x509-name.
route isn't on the list, so a custom profileYour own .ovpn or .conf file for any VPN service with route lines is rejected. WireGuard files have their own refused settings, listed in WireGuard Files.
Credentials
- OpenVPN — The VPN page doesn't require a username or password. Enter them in Username and Password when your service uses password sign-in.
- WireGuard — There's nothing to enter, because the file includes its own private keyYour WireGuard password; it never shows up in logs. The Sign-in section reads
This file includes its own key.
Upload a Profile
- Open VPN, and in Provider, select Custom.
- Under TunnelOpenVPN or WireGuard; every endpoint in a pool shares one, choose OpenVPN or WireGuard.
- Select Choose an .ovpn file or Choose a .conf file and pick your custom profileYour own .ovpn or .conf file for any VPN service, or drop the file on that area.
- Select Upload profile.
- When the upload succeeds, the page reports how many endpoints it made, such as
2 VPN endpoints uploaded.Every OpenVPN endpoint is selected, and Fallback order starts in the file'sremoteorder. A WireGuard file supplies one endpoint. - Enter credentials if your OpenVPN service needs them, then select Test and connect.

With the WireGuard tunnel, a line under the area reads The file must include its private key, one peer, and no PostUp/PreDown lines.

- The Tunnel switch opens on OpenVPN, or on WireGuard when the saved connection is a Custom WireGuard one. Switching it clears a chosen file and Fallback order.
- A chosen file shows its name and size, such as
249 B, until you upload it. - A file with one endpointOne VPN server you can connect to uses the file name without
.ovpnor.conf. Several OpenVPN endpoints add(1),(2), and so on inremoteorder. - An edited file uploaded again is saved as a new entry, and uploaded profiles can't be deleted from the web interface.
- When the installation keyUnlocks your saved secrets; lose it and they're removed is missing at start, the container removes every saved profile, so it is recommended to keep your
.ovpnand.conffiles to upload them again, as covered in Updates and Backups.
Validation Errors
Messages about a specific line start with line and the line number.
OpenVPN Messages
| Message | Fix |
|---|---|
inline block <name> is not allowed | Keep only the six accepted inline blocksKeys pasted inside the file, not linked from elsewhere. |
external file directive ca is not supported; use an inline block | Paste the file's contents between <ca> and </ca>, and do the same for cert, key, and the other blocks. |
only a tun device is supported | Use dev tun. |
unsupported OpenVPN protocol or remote protocol is unsupported | Use udp, udp4, tcp, tcp-client, or tcp4-client. |
<directive> is not allowed: <reason> | Remove the directive named in the message. |
unsupported directive <name> | Remove the directive, since it isn't on the list of data-only options. |
OpenVPN profile does not contain a remote endpoint | Add a remote line. |
OpenVPN profile does not contain a trusted CA or peer fingerprint | Add a trust anchorWhat proves the server is real; every profile needs one. |
inline block <name> is not closed | Add the closing tag, such as </ca>. |
This is a WireGuard file. Choose the WireGuard tunnel to upload it. | Switch Tunnel to WireGuard and upload the file again. |
Choose a non-empty OpenVPN profile smaller than 900 KB. | Choose a smaller, non-empty file. |
WireGuard Messages
| Message | Fix |
|---|---|
This is not a WireGuard file because it has no [Interface] section. For an OpenVPN profile, choose the OpenVPN tunnel. | Switch Tunnel to OpenVPN for a .ovpn file, or check that the file has an [Interface] line. |
PostUp is not allowed: configurations can't run commands. If the file came from Mullvad, download it again with the kill switch option turned off | Remove the line, which the message can also name PreUp, PreDown, or PostDown. For a Mullvad file, download it again with the kill switch option turned off. |
Table is not allowed: the container manages routing itself | Remove the Table line, or the FwMark line when the message names it. |
Endpoint must be IPv4 or a hostname; IPv6 isn't supported | Use the server's IPv4 address or host name in Endpoint. |
unsupported [Interface] setting or unsupported [Peer] setting | Remove the setting, since only the settings in WireGuard Files are accepted. |
only [Interface] and [Peer] sections are supported | Remove the other section. |
a configuration must have exactly one [Peer] or WireGuard configuration must have exactly one [Peer] | Keep one [Peer] section, since each file connects to one server. |
WireGuard configuration does not contain a PrivateKey | Add the PrivateKey line, since a custom file signs in with its own key. |
WireGuard configuration does not contain an IPv4 Address | Add an IPv4 address to the Address line. |
WireGuard configuration exceeds 65536 bytes | Choose a file of 64 KiB or less. |
Choose a non-empty WireGuard file smaller than 900 KB. | Choose a smaller, non-empty file. |