Untitled Peer
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
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 while masking or removing the private keys show the outputs of
wgdashboard.dbsqlite> 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 ?
Can you while masking or removing the private keys show the outputs of
wgdashboard.dbsqlite> 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.
Closing due to inactivity