Simple wireguard configuration agent
420
Request examlpe:
POST /update/ HTTP/1.1
hostname=example-hostname&pubkey=HeyDjeriYhh&port=60000
Response:
{
"result": "unassigned"
}
{
"result": "ok",
"peer": "12.45.12.3:54310",
"pubkey": "Iasasdasdqweqwe",
"ip": "192.168.19.14",
"routes": ["10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12"]
}
Build wireguard module only:
docker run --privileged --rm -ti -e 'IFACE=""' paucpauc/wireguard_agent:18.04
Build module and set up wg0:
docker run --privileged -v /mnt/wg/:/mnt/ --network=host --rm -ti -d paucpauc/wireguard_agent:18.04
Build module and start agent:
docker run --privileged -v /mnt/wg/:/mnt/ --network=host --restart unless-stopped -d --name wg_agent\
-e 'CONTROLLER=https://api.controller.examlpe.com/update/' paucpauc/wireguard_agent:18.04
Content type
Image
Digest
Size
60.3 MB
Last updated
over 5 years ago
docker pull paucpauc/wireguard_agent:20.04