Import proxy and WireGuard profiles from links, QR, .conf files

GreenTunnel reads ss://, socks5://, http(s):// links, WireGuard .conf files and QR codes. What gets checked, and how to keep password-bearing links safe.

Server providers, company admins and your own VPS dashboard tend to hand out configs as a long link, a QR code or a .conf file. GreenTunnel has one entry point for all three, and it works out by itself whether the config belongs in Proxy Route or Tunnel Link.

Opening the Import sheet

You'll find Import in two places:

  • On the Advanced screen (the Advanced card under the power button → Configure), including the Add WireGuard button in the Tunnel Link section.
  • In the Add profile sheet opened from the Advanced card on Home.

The sheet offers three options:

  • Paste link or config: reads whatever is on the clipboard. If the clipboard is empty, the app tells you right away.
  • Scan QR code: opens the camera to read the code. Camera permission is only requested when you pick this, and GreenTunnel uses the camera only to read the code and records nothing.
  • Choose a file: opens a .conf or .txt file from your device storage or a file manager.
The Import sheet with three options: Paste link or config, Scan QR code, Choose a file, and a line listing the supported formats
One way in for links, QR codes and files.

Supported formats

Proxy links: socks5://, http://, https://

Standard proxy URLs, optionally with a username and password. The part after # becomes the profile name. Without it, GreenTunnel uses server:port. A missing port falls back to the defaults: 1080, 8080 and 443. socks5h:// and socks:// are accepted too.

socks5://alice:secret@203.0.113.10:1080#Office%20proxy
https://proxy.example.net:443#HTTPS%20proxy

Shadowsocks links: ss://

SIP002 links (the cipher:password part base64- or percent-encoded), plus the older all-base64 form. Plugins such as obfs or v2ray-plugin are not supported yet, so links with a plugin are rejected.

ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpleGFtcGxlLXBhc3M@198.51.100.7:8388#My%20server

WireGuard configs (.conf)

The wg-quick format that most WireGuard servers export. Choose the file, paste its text, or scan a QR code that contains it. A config may have only one [Peer] section.

[Interface]
PrivateKey = (your private key)
Address = 10.8.0.2/32

[Peer]
PublicKey = (the server's public key)
Endpoint = 203.0.113.5:51820

The addresses in these examples are documentation addresses and don't point to real servers.

What GreenTunnel checks

Import flow diagram: paste a link, scan a QR code or choose a file. It is checked on the device. If wrong, you get an error and nothing is saved. If valid, it goes to Proxy Route or Tunnel Link and the editor opens prefilled for you to review and save. Passwords and keys go to the secure store
Configs are read and checked on the device, and sent nowhere.

The text is parsed on the device. If something is off, you get a specific error and nothing is saved. Common ones:

  • Not a supported link or config (a vmess:// link, say, or random text).
  • No server, a port of 0 or above 65535, or an IPv6 address without square brackets.
  • A proxy link with an extra path or query after it.
  • Shadowsocks with an outdated cipher such as rc4-md5, no password, or a 2022-blake3 key of the wrong length.
  • WireGuard without a PrivateKey, a [Peer] or an Endpoint, keys that aren't 32-byte base64, an invalid MTU, or AmneziaWG parameters (not supported yet).

A valid config lands in the right place: SOCKS5, HTTP, HTTPS and Shadowsocks in Proxy Route, WireGuard in Tunnel Link. The editor opens with every field filled in, so you can rename it, double-check the server and tap Test before saving.

The Shadowsocks editor prefilled after import, with an example server, port 8388 and the cipher
An ss:// link after import: review, then save.
The WireGuard editor after import, with the private key kept hidden
A .conf file after import: the private key stays hidden.

When you save, proxy passwords, Shadowsocks passwords and WireGuard keys go into the system's secure store (Android Keystore, iOS Keychain). A WireGuard private key is never shown on screen again.

Staying safe when importing

  • Only import from sources you trust. A config tells GreenTunnel where to send your traffic. Whoever gave you a proxy link can see which sites you visit through that proxy. Be careful with “free proxy” links passed around on social media.
  • Links contain passwords. The base64 part of an ss:// link is not encryption: anyone holding the link can decode the cipher and password. Treat links like passwords.
  • Don't share screenshots of QR codes. A QR code is just a link or config file as a picture. Posting one in a group chat posts the password or private key along with it.
  • Clean up the clipboard. After pasting, copy something else so the link doesn't linger on the clipboard.
  • Test before you rely on it. The Test button tells you whether the proxy or tunnel answers before you move traffic onto it.

GreenTunnel doesn't send the configs you import anywhere, and never collects your browsing content, the domains you visit or your traffic.

Importing is part of the GreenTunnel VPN app. More on the home page.

FAQ

Can I import vmess://, trojan:// or vless:// links?

Not yet. GreenTunnel currently reads ss://, socks5://, http(s):// and WireGuard configs.

Is the profile used right after importing?

No. Save it in the editor first, then select it in the Advanced card or use it in a rule.

Why are Shadowsocks links with a plugin rejected?

Plugins such as obfs or v2ray-plugin change how the traffic looks on the wire and need extra software. GreenTunnel doesn't support them yet, so it shows an error instead of saving a profile that wouldn't work.

Do I need to grant camera access?

Only if you choose Scan QR code. Pasting a link or choosing a file needs no camera permission.

← All posts