wgrest
wgrest copied to clipboard
internal ip-addresses
hey,
its able to autogenerate peer client addresses by using the api? also automatic use next free peer address
Hey @muplagama ,
Thanks for your question about WGRest. Right now, WGRest doesn't handle IP address management, like auto-generating or automatically picking the next free peer address. We've kept it simple on purpose, so it's easy to use, especially on devices with limited power and memory.
You could hook it up with an external system to manage IPs though. This way, you can customize it to fit exactly what you need.
Hope this helps.
yes okey.
but another... wrest don't added wg interface by using api command create? { "name": "wg0", "listen_port": 51820, "private_key": "wBHGU3RiK/IFWXAF2jbHjGSDAKEO2ddcsZFEWcQ+qGc=", "firewall_mark": 10, "networks": [ "10.71.25.1/24", "fd42:21:21::1/64" ] }
returns no result, not adding a device.
another way.. I bootet with a wg0 device by using a cleared wg0.conf
if I will patch the ip by using api command, he dosnt access and results in an api answer: "networks":NULL"]
if I boot with a preset wg0.conf by only adding the address he runs: "networks":["172.16.158.0/22"] but I can patch this address with an api command