Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 808 Bytes

endpoint-override.md

File metadata and controls

26 lines (20 loc) · 808 Bytes

Endpoint Override

Nodes can individually override endpoints for proxying WireGuard UDP packets.

This is achieved by speicyfing an executable path in endpointOverride setting in Node config.

The endpoint override executable (EOE) is executed an unspecified amount of times (usually once) during the lifetime of the Node. EOE reads a single line (please use LF not CRLF) of JSON and returns a single line of JSON as a response.

The request JSON (sent to EOE) is of the following format:

{
  "cnn": "wg0",
  "pn": "server0",
  "endpoint": "server.example.com:51820"
}

The response JSON (sent from EOE) is of the following format:

{
  "endpoint": "127.0.0.1:51821" // e.g. this could be a proxy that bypasses a UDP firewall
}

Reification will block on EOE requests.