Closed shivanshtalwar0 closed 9 months ago
Hello, thanks for your suggestion. I'll add it to the TODO list and try to implement it when I have time to work on the project.
For now you can create configurations on the side of your application, it's quite simple.
[Interface]
PrivateKey = <peer privateKey>
Address = <peer allowedSubnets>
DNS = <dns servers>
[Peer]
PublicKey = <Interface publicKey>
PresharedKey = <peer presharedKey>
Endpoint = <server ip:port>
AllowedIPs = <allowed ips, 0.0.0.0/0, ::/0 for route all traffic>
You can get the publicKey
and port
of interface using GET in /v1/interface. Peer keys and allowedSubnets
can be obtained with POST to /v1/peers.
Thank you for your interest in the project.
something like this should be returned from that endpoint , courtesy: https://wgrest.forestvpn.com/swagger/#/device/GetDevicePeerQuickConfig