Skip to content

shipilovds/amnezia-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amnezia-Utils

This utility helps convert Amnezia client configurations between JSON and a "connection string". You can also use the qrencode utility to generate a QR code for the client.

Build

docker build -t amnezia-builder .
id=$(docker create amnezia-builder)
docker cp ${id}:/code/artifacts/amnezia-utils .
docker rm ${id}

Usage

General Options

Usage: amnezia-utils [-e|-d] [input_file|-]
Options:
  -e              Encode JSON data
  -d              Decode Amnezia configuration
  -h              Display this help message

The utility can handle data either from a file (you provide the file path) or directly from the system pipe.

QR Code Generation

amnezia-utils -e awg_config.json | sed "s/vpn:\/\///" | qrencode -o qr.png

Runtime Dependencies

The only non-standard system library is libQt6Core.so.6.

To install it on Ubuntu or Debian systems, simply run apt install libqt6core6.