WGDashboard icon indicating copy to clipboard operation
WGDashboard copied to clipboard

Untitled Peer

Open hadi-dindar opened this issue 1 year ago • 3 comments

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 avatar Jan 29 '25 09:01 hadi-dindar

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 avatar Feb 02 '25 13:02 DaanSelen

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 ?

hadi-dindar avatar Feb 10 '25 10:02 hadi-dindar

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.

DaanSelen avatar Feb 10 '25 14:02 DaanSelen

Closing due to inactivity

donaldzou avatar Jun 24 '25 07:06 donaldzou