FreeVPNNet

How to set up V2Ray / Xray on Linux

V2Ray (VLESS over WebSocket and TLS) looks like normal HTTPS traffic on port 443, so it works on networks that block other VPNs. You import one connection link or scan a QR code.

Last reviewed

What you need

  • An active V2Ray configuration from this site
  • The connection link (vless://…) or the QR code from your configuration page

App

v2rayN

Get it from GitHub

Official source only.

Where each detail goes

Account details and the matching fields in the app
On your configuration pageIn the app or settings
Connection link / QR codeImport from clipboard / Scan QR code — fills every field
Server, PortAddress, Port (443)
UUIDUser ID / UUID
Transport, Path, SNI, SecurityNetwork ws, path, SNI/host, TLS — already in the link

Steps

  1. Download the latest v2rayN Linux build from its official GitHub releases page (link above).

    Illustration of step 1: Download the latest v2rayN Linux build from its official GitHub releases page (link above).
    Illustration — your app may look slightly different.
  2. Copy the connection link from your configuration page.

    Illustration of step 2: Copy the connection link from your configuration page.
    Illustration — your app may look slightly different.
  3. In v2rayN choose Servers → Import share links from clipboard.

    Illustration of step 3: In v2rayN choose Servers → Import share links from clipboard.
    Illustration — your app may look slightly different.
  4. Select the server and enable the system proxy or TUN mode.

    Illustration of step 4: Select the server and enable the system proxy or TUN mode.
    Illustration — your app may look slightly different.

Check that it works

The app shows it is connected. Search the web for "what is my IP"; the location should match your server country.

Disconnect

Turn the system proxy or TUN mode off.

Troubleshooting

Connected but no internet

Make sure you imported the newest link from your configuration page and that the configuration has not expired. Check that the app's time is correct; TLS needs an accurate clock.

TLS or certificate error

Update the app to its latest version. If your configuration page says the certificate is self-signed, follow the note shown there.

Import fails

Copy the whole link starting with vless:// using the copy button, then import from the clipboard again.