Documentation
¶
Overview ¶
Command awgclient runs a real amneziawg-go process from an AmneziaVPN / AmneziaWG ".conf" file, for scripts/e2e-wsl.sh. The daemon is configured over its UAPI socket (it reads no .conf itself; the AmneziaWG tools that would convert one are not installed), the TUN gets the addresses of the file and every packet goes into the tunnel by default routes. Linux only, root, run it inside the namespace of the client:
nsenter -t <pid> -n awgclient -conf device.conf -bin ~/.cache/mistgate-tests/awgc-3.1/amneziawg-go \
-iface mg3e1234 -endpoint 198.18.50.1:51842
It prints "ready <iface> <uapi socket>" once the interface is up and then runs until SIGTERM/SIGINT or until the daemon dies. The handshake is not awaited: read `get=1` from the socket (`nc -U`) or ping through the tunnel. Nothing here is a product feature, it is test tooling.