Comments (6)
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.
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.
@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 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.
@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.
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)
- Remove peers HOT 1
- UI for Wireguard Options
- Too many open files HOT 3
- Initial user interface
- How/Where to setup Wireguard itself ? HOT 4
- Make wg0 API changes persistent HOT 7
- Endpoint not working ? HOT 1
- Create new Device This api returns a 501 error (501 Not Implemented ) HOT 9
- TLS certs HOT 2
- Build nonolithic version HOT 3
- Manage peers by name? HOT 3
- Mobile Apps HOT 2
- Connecting to a new peer HOT 1
- Lost peer after restart wireguard HOT 2
- Help: Qrcode and config are not generating HOT 4
- Creating a new Pear error HOT 1
- internal ip-addresses HOT 2
- restore peers HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wgrest.