Coder Social home page Coder Social logo

Comments (6)

suquant avatar suquant commented on June 15, 2024

Hi @vesnindev

To generate a quick config the private_key is mandatory which is the reason for the error. It looks like the peer was created outside of the wgrest (it can work in this way), and there is no private_key which is obvious.

Conclusion: if you want to generate a quick config in case if peer was added outside of the wgrest, then you need to set it manually, see https://wgrest.forestvpn.com/swagger/#/device/UpdateDevicePeer

from wgrest.

vesnindev avatar vesnindev commented on June 15, 2024

the peer was created outside of the wgrest

Hi. Yes (peer was created outside of the wgrest )

I understand correctly that the wgrest does not work with keys created outside?

Where WGREST storage oun config and [Interface] with pears config?

How i can see them in folder? or DB?

I cannot find default WGREST Interface in server folders, but I got them when i send http://127.0.0.1:8000/v1/devices/wg0/

from wgrest.

suquant avatar suquant commented on June 15, 2024

@vesnindev Hi,

I understand correctly that the wgrest does not work with keys created outside?

It works pretty well with that, but not all need to generate quick config for the peer.

Where WGREST storage oun config and [Interface] with pears config?

In the file system /var/lib/wgrest

I cannot find default WGREST Interface in server folders, but I got them when i send http://127.0.0.1:8000/v1/devices/wg0/

WGREST doesn't create an interface(s) or bring them up/down automatically.

from wgrest.

vesnindev avatar vesnindev commented on June 15, 2024

@vesnindev Hi,

I understand correctly that the wgrest does not work with keys created outside?

It works pretty well with that, but not all need to generate quick config for the peer.

Where WGREST storage oun config and [Interface] with pears config?

In the file system /var/lib/wgrest

I cannot find default WGREST Interface in server folders, but I got them when i send http://127.0.0.1:8000/v1/devices/wg0/

WGREST doesn't create an interface(s) or bring them up/down automatically.

But Why interface in this config /etc/wireguard/wg0.conf is different from WGREST config?

from wgrest.

suquant avatar suquant commented on June 15, 2024

@vesnindev Hi,

It's because the real config is stored in memory. WGREST doesn't flush interface configs to files and it relies on infrastructure systemd/initd/etc

from wgrest.

kolesaev avatar kolesaev commented on June 15, 2024

I installed GUI and it's empty. I tried to add a device, but there is 501 error in console
How to create a device? Where to put a file, how to call it, which content should be there, where are documentation about it?


Update 1.
Finally i'm able to get /etc/wireguard/* devices list only if i run service unit with root user. Also works with sudo wgrest user if i provide sudo rights for wgrest binary only

from wgrest.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.