How to open a WireGuard or AmneziaWG .conf file

A .conf file holds the settings of a WireGuard or AmneziaWG tunnel. A double-click won't start it: you import it into a VPN client. A WireGuard file works in any WireGuard client, an AmneziaWG file only in a client that knows AmneziaWG.

Updated

On this page

What is inside the file

It's plain text, and any text editor opens it. The [Interface] section is about your device: its key and address in the tunnel. The [Peer] section is about the server: its key and address. The AllowedIPs line says which addresses go through the tunnel.

An AmneziaWG file also has disguise lines — Jc, Jmin, Jmax, S1, S2, H1–H4. Plain WireGuard doesn't know them and won't take such a file.

How to connect

  1. 1

    Pick a client

    For a WireGuard file — any WireGuard client. For an AmneziaWG file — a client with AmneziaWG support.

  2. 2

    Import the file

    Find importing from a file in the client and choose the .conf. Many clients also take the settings text pasted whole.

  3. 3

    Connect

    Pick the tunnel and turn it on. The first time, the system asks for administrator rights or VPN permission.

How to handle the file

  • The file holds a private key: don't send it to strangers or post it as a screenshot.
  • Usually one file is for one device: two devices with the same key get in each other's way.
  • If the file got into the wrong hands, ask the service for a new one.

In Veli

Drop the file into the window

In Veli a .conf file goes into Profiles → Add: through “Open a file” or by dragging it into the window. You can also paste the [Interface] / [Peer] text whole. A line under the field says what kind of configuration it is.

WireGuard and AmneziaWG connect on Windows, macOS, Linux and Android. If WireGuard is blocked on your network, you can turn on AmneziaWG obfuscation in the profile settings — the server doesn't need to change. Apps & sites rules on these profiles work by IP address only.

FAQ

Why won't WireGuard open my file?

Most likely it's an AmneziaWG file: it has disguise lines that plain WireGuard doesn't know. Open it in a client with AmneziaWG support.

Can I open a .conf file on a phone?

Yes: in Veli for Android the file goes in through Profiles → Add. A profile from the computer can also move by QR code: the profile's menu → “QR code for the phone”.

Is a .conf file always WireGuard?

Most often it's WireGuard or AmneziaWG. OpenVPN settings usually come in an .ovpn file.

Drop the .conf file into the Veli window

Drag a WireGuard or AmneziaWG file into Profiles → Add, or paste its text whole.