# Wireguard

### Generate QR Code:

1. On `WireGuard Server` install the `qrencode` package:

* Debian:

```bash
sudo apt-get install qrencode
```

* RHEL:

```bash
sudo dnf install qrencode
```

* Arch:

```bash
sudo pacman -Sy qrencode
```

1. Use the `.conf` file to generate the QR code:

```bash
qrencode -t ansiutf8 < peer2/peer2.conf
```

* This will generate a QR code similar to this:&#x20;

1. Add Connection on Android WireGuard Application:&#x20;
2. Scan the QR code:&#x20;
3. Press `OK`:&#x20;
4. Connect to Server:&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/networking/wireguard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
