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

Untitled Peer #597

Open
hadi-dindar opened this issue Jan 29, 2025 · 3 comments
Open

Untitled Peer #597

hadi-dindar opened this issue Jan 29, 2025 · 3 comments
Labels
bug Something isn't working resolved-please-verify Issue has been resolved or added. Request verification by issuer.

Comments

@hadi-dindar
Copy link

how we can use other wiregurd panel wg0 interface backup in this panel ?
when i add my peers detail in /etc/wiregurd/wg0 it show me Untitled Peer in pannel .
how i can set a name in wg0.conf file for peers ?
and also for getting config detail in panel "
Download & QR Code is not available due to no private key set for this peer" and i must be add private key of per peers by hand for getting QR.
is any way for solve this problem ?
Tnx

@hadi-dindar hadi-dindar added the bug Something isn't working label Jan 29, 2025
@DaanSelen
Copy link
Collaborator

Can you while masking or removing the private keys show the outputs of wgdashboard.db

sqlite> select * from wg0;
9sL64B1PBZE1hFv6YdgWUWJwV88t08oEyezdk2Ug+WQ=|CMsxPmBADg3N0/5QJ5tWpPA3jVSB3p3oWUpi3vVe/UM=|9.9.9.9|0.0.0.0/0|Test|0.0|0.0|0.0|(none)|stopped|No Handshake|10.0.0.2/32|0.0|0.0|0.0|1420|21|<Public_IP>|

You can see in my example I made a config with one peer, this one is called test.

If this does not answer your question please correct me.

@DaanSelen DaanSelen added the resolved-please-verify Issue has been resolved or added. Request verification by issuer. label Feb 5, 2025
@hadi-dindar
Copy link
Author

Can you while masking or removing the private keys show the outputs of wgdashboard.db

sqlite> select * from wg0;
9sL64B1PBZE1hFv6YdgWUWJwV88t08oEyezdk2Ug+WQ=|CMsxPmBADg3N0/5QJ5tWpPA3jVSB3p3oWUpi3vVe/UM=|9.9.9.9|0.0.0.0/0|Test|0.0|0.0|0.0|(none)|stopped|No Handshake|10.0.0.2/32|0.0|0.0|0.0|1420|21|<Public_IP>|

You can see in my example I made a config with one peer, this one is called test.

If this does not answer your question please correct me.

can you explaihn more about this code please ?

@DaanSelen
Copy link
Collaborator

Can you while masking or removing the private keys show the outputs of wgdashboard.db

sqlite> select * from wg0;
9sL64B1PBZE1hFv6YdgWUWJwV88t08oEyezdk2Ug+WQ=|CMsxPmBADg3N0/5QJ5tWpPA3jVSB3p3oWUpi3vVe/UM=|9.9.9.9|0.0.0.0/0|Test|0.0|0.0|0.0|(none)|stopped|No Handshake|10.0.0.2/32|0.0|0.0|0.0|1420|21|<Public_IP>|

You can see in my example I made a config with one peer, this one is called test.
If this does not answer your question please correct me.

can you explaihn more about this code please ?

The example I showed is the Database entry which WGDashboard uses:

First the 2 keys separated by a | Then the DNS, then the allowed IP's, then the name called "Test".

If you wanted to update the name you can do the following:

UPDATE wg0 SET name = 'New_name' WHERE name = 'Test';

This will change the name from 'Test' to 'New_name'.

What you are probably going to need to do is insert these peers into the database. But before that, please wait for @donaldzou 's response on what routes you can take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved-please-verify Issue has been resolved or added. Request verification by issuer.
Projects
None yet
Development

No branches or pull requests

2 participants