Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal ip-addresses #33

Open
muplagama opened this issue Nov 6, 2023 · 2 comments
Open

internal ip-addresses #33

muplagama opened this issue Nov 6, 2023 · 2 comments

Comments

@muplagama
Copy link

muplagama commented Nov 6, 2023

hey,

its able to autogenerate peer client addresses by using the api?
also automatic use next free peer address

@suquant
Copy link
Owner

suquant commented Nov 9, 2023

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.

@muplagama
Copy link
Author

muplagama commented Nov 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants