Wireguard
Protocol standard
Sample
Unlike other proxy which can be defined in single line, wireguard proxy use a standalone config section to define proxy detail, and use section name to link proxy detail in proxy definition.
[Proxy]
wireguard-home = wireguard, section-name = HomeServer
[WireGuard HomeServer]
private-key = sDEZLACT3zgNCS0CyClgcBC2eYROqYrwLT4wdtAJj3s=
self-ip = 10.0.2.2
dns-server = 8.8.8.8
mtu = 1280
peer = (public-key = fWO8XS9/nwUQcqnkfBpKeqIqbzclQ6EKP20Pgvzwclg=, allowed-ips = 0.0.0.0/0, endpoint = 192.168.20.6:51820)
Format
[Proxy]
{proxy name} = wireguard, section-name = {section name}
[WireGuard {section name}]
private-key = {private key}
self-ip = {self ip}
dns-server = {dns server ip}
mtu = {mtu size}
peer = (public-key = {public key}, allowed-ips = {allowed ip routes}, endpoint = {endpoint address})
Params
Name | Value | Mandatory | Note |
---|---|---|---|
proxy name | - | true | |
section name | - | true | Support domain and ip format |
private key | base64 encoded format | true | |
self ip | IPv4 format | true | |
dns server ip | IPv4 format | true | Support multiple value divided with comma |
mtu size | integer greater than zero | true | |
public key | base64 encoded format | true | |
allowed ip routes | IPv4 route format | true | |
endpoint address | IPv4 IP:PORT format | true |