mirror of https://github.com/wg-easy/wg-easy
14 changed files with 100 additions and 8 deletions
@ -0,0 +1,27 @@ |
|||||
|
|
||||
|
# Note: Do not edit this file directly. |
||||
|
# Your changes will be overwritten! |
||||
|
|
||||
|
# Server |
||||
|
[Interface] |
||||
|
PrivateKey = iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= |
||||
|
Address = 10.8.0.1/24 |
||||
|
ListenPort = 51820 |
||||
|
|
||||
|
# Client: Emile (af3111a4-7343-4380-a293-ed498d9aa3b8) |
||||
|
[Peer] |
||||
|
PublicKey = i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4= |
||||
|
PresharedKey = MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU= |
||||
|
AllowedIPs = 10.8.0.2/32 |
||||
|
|
||||
|
# Client: Test (2ca33a1c-ed49-4bdd-b84c-adc77f1f3b2d) |
||||
|
[Peer] |
||||
|
PublicKey = 563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk= |
||||
|
PresharedKey = Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8= |
||||
|
AllowedIPs = 10.8.0.3/32 |
||||
|
|
||||
|
# Client: Test 3 (f1d0280c-07e7-4927-94dd-000a1723872f) |
||||
|
[Peer] |
||||
|
PublicKey = |
||||
|
PresharedKey = |
||||
|
AllowedIPs = 10.8.0.4/32 |
@ -0,0 +1,41 @@ |
|||||
|
{ |
||||
|
"server": { |
||||
|
"privateKey": "iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o=", |
||||
|
"publicKey": "BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0=", |
||||
|
"address": "10.8.0.1", |
||||
|
"port": "51820", |
||||
|
"dns": "1.1.1.1" |
||||
|
}, |
||||
|
"clients": { |
||||
|
"af3111a4-7343-4380-a293-ed498d9aa3b8": { |
||||
|
"name": "Emile", |
||||
|
"createdAt": "2021-05-22T20:02:45.372Z", |
||||
|
"updatedAt": "2021-05-22T20:02:45.372Z", |
||||
|
"privateKey": "sHUUDbaZBQshfOvvF8HeebhhXq3rDKWlW1Vm+6XMklU=", |
||||
|
"publicKey": "i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4=", |
||||
|
"preSharedKey": "MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU=", |
||||
|
"address": "10.8.0.2", |
||||
|
"enabled": true |
||||
|
}, |
||||
|
"2ca33a1c-ed49-4bdd-b84c-adc77f1f3b2d": { |
||||
|
"name": "Test", |
||||
|
"address": "10.8.0.3", |
||||
|
"privateKey": "AJVOxJxEnbWyrj7SbhJxxiIIgBsRljs1fP2xrN76Kns=", |
||||
|
"publicKey": "563oiA0IuQqt8JPEXHGINT4mHYKzlLx9Ol2gcV1vKCk=", |
||||
|
"preSharedKey": "Q6xGB4og5Sj6M0MsHzkD16VsniT3FCqOnGmiLLilsU8=", |
||||
|
"createdAt": "2021-05-22T21:41:49.876Z", |
||||
|
"updatedAt": "2021-05-23T10:04:29.051Z", |
||||
|
"enabled": true |
||||
|
}, |
||||
|
"f1d0280c-07e7-4927-94dd-000a1723872f": { |
||||
|
"name": "Test 3", |
||||
|
"address": "10.8.0.4", |
||||
|
"privateKey": "", |
||||
|
"publicKey": "", |
||||
|
"preSharedKey": "", |
||||
|
"createdAt": "2021-05-23T10:21:24.607Z", |
||||
|
"updatedAt": "2021-05-23T10:21:24.607Z", |
||||
|
"enabled": true |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,3 +1,14 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
require('./services/Server'); |
require('./services/Server'); |
||||
|
|
||||
|
const WireGuard = require('./services/WireGuard'); |
||||
|
|
||||
|
WireGuard.getConfig() |
||||
|
.catch(err => { |
||||
|
// eslint-disable-next-line no-console
|
||||
|
console.error(err); |
||||
|
|
||||
|
// eslint-disable-next-line no-process-exit
|
||||
|
process.exit(1); |
||||
|
}); |
||||
|
Loading…
Reference in new issue