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
Pick a client
For a WireGuard file — any WireGuard client. For an AmneziaWG file — a client with AmneziaWG support.
- 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
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.