Commit Graph

55 Commits

Author SHA1 Message Date
Philip H 68187e07a1
Merge branch 'master' into feat-cidr-notation 2024-03-14 13:49:26 +01:00
Philip H 3621bdebad
feat: no private key (#887)
Thank you @willtho89!
2024-03-06 17:03:33 +01:00
Philip H a36ab8891e
fixup: WireGuard.js 2024-03-06 16:43:07 +01:00
Philip H 5ee284b973
fixup: WireGuard.js 2024-03-05 19:35:38 +01:00
Philip H 754b5f29af
fixup: WireGuard.js
well I was on the client side so I hope I get all stuff fixed now.
2024-03-05 19:29:14 +01:00
Philip H 63faf4c507
fixup: WireGuard.js 2024-03-05 18:24:42 +01:00
Philip H 2f89765112 WireGuard.js: fixup undefined CIDR 2024-03-05 17:56:13 +01:00
Thomas Willems 89415a2258 refactor to support CIDR and legacy notation
for WG_DEFAULT_ADDRESS
2024-03-05 16:58:19 +01:00
Thomas Willems 577af9947d introduce WG_DEFAULT_ADDRESS_RANGE (CIDR notation)
This PR allows the use of Address Ranges using the CIDR notation.

To make it backward compatible, i introduced a new env variable WG_DEFAULT_ADDRESS_RANGE (defaults to the previous default of 24).

This allows the usage of smaller subnets (or possibly larger; but i didn't test that due to restrictions on my network). Client IPs will be calculated with correct IP addresses instead of making assumptions of the address space.
2024-03-05 16:58:19 +01:00
Florian Rattay e9e8d47858 Import json configurations with no PreShared-Key 2024-03-03 11:52:37 +01:00
Philip H ce1af6d691
Merge branch 'feat-no-privateKey' into feat/clients-without-privatekey 2024-03-02 14:12:38 +01:00
Philip H a6d092dd87 fixup: lint errors 2024-03-01 14:26:13 +01:00
Chanchai 6604e44ea3 feat: support graceful shutdown 2024-03-01 14:26:13 +01:00
Philip H 00956ecf74
Merge branch 'feat-no-privateKey' into feat/clients-without-privatekey 2024-02-26 10:47:43 +01:00
Minghong Xu 648594733c fixup: `interface` is a reserved word in strict mode 2024-01-31 03:50:53 +00:00
Thomas Willems c7cc3eca4a
allow clients with no privateKey
see https://github.com/wg-easy/wg-easy/discussions/791

I disabled the download from the frontend.
If someone tries to manually call the API, the privateKey block is set to "REPLACE_ME" to indicate that this value must be set manually.
2024-01-30 21:27:02 +01:00
Minghong Xu 8aafe6b8c9 WireGuard.js: remove redundant newline char in client config generation 2024-01-30 06:59:19 +00:00
Philip H d16ed82290
WireGuard.js: revert to ' + WG_DEVICE + ' 2023-12-30 20:10:13 +01:00
Philip H. e1dfc0ff19
revert: custom interface PR: #700 2023-12-30 18:35:37 +00:00
Peter Lewis 4c7aa0fd1a
Revert variable-isation 2023-12-30 08:46:56 +00:00
Philip H a73dbcc8e2
WireGuard.js: fixup lint errors 2023-12-24 15:09:03 +01:00
Comet1903 52fa781f13
Merge remote-tracking branch 'upstream/master' into add-custom-port-and-interface 2023-12-24 01:21:26 +01:00
Comet1903 6e08e5a824
add custom port and interface 2023-12-24 01:19:06 +01:00
Philip H. bf956e3ae8
Support for sessionless HTTP API authentication 2023-11-21 20:06:55 +00:00
Philip H e429c86d81
lib/WireGuard.js - ListenPort from ENV (#11)
Co-authored-by: Whithil <ericcruz.prog@gmail.com>
2023-11-05 11:31:04 +01:00
Peter Lewis 8800cd9b0d
Update WireGuard.js 2023-02-01 11:22:33 +00:00
Emile Nijssen f364e0775a fix eslint 2022-06-12 23:28:51 +02:00
Emile Nijssen b72bcce052
Merge pull request #216 from murka/patch-1
feat(WireGuard): return client data by createClient.
2022-06-12 23:24:28 +02:00
Danil Shaymurzin 8f66d11e3f
feat(WireGuard): return client data by createClient. 2022-03-06 00:38:46 +05:00
crazyracer98 557e13a953 expose server interface PreUp and PreDown to environment variable 2022-01-29 00:46:21 +01:00
Emile Nijssen a97142bb97 add WG_POST_UP, WG_POST_DOWN 2022-01-10 23:11:34 -08:00
Emile Nijssen e1582ec678 fix WG_MTU 2022-01-10 22:57:32 -08:00
Emile Nijssen f829bbdf41
Merge pull request #154 from DerDanilo/add-WG_MTU
add optional client profile MTU var
2022-01-10 22:55:08 -08:00
Emile Nijssen 2a9a7eecac add helpful error message 2022-01-10 22:52:24 -08:00
Emile Nijssen 0d908f56a0 chmod config files 2022-01-10 22:47:45 -08:00
DerDanilo 8e93ae76a5
Merge branch 'master' into add-WG_MTU 2021-12-26 14:22:23 +01:00
DerDanilo b4fbcdd2db add optional client profile MTU var 2021-12-26 14:08:41 +01:00
Emile Nijssen e843593b17 eslint 2021-11-12 21:27:58 +00:00
Emile Nijssen c19cb72b6d better logging (fixes #100) 2021-11-12 21:20:28 +00:00
Emile Nijssen d8eaafbcfb fix 2021-07-18 16:48:33 +02:00
Fastidious 6a0a5a10be
Update WireGuard.js 2021-07-17 10:19:17 -04:00
Fastidious 31d1cb96fc
Adding Persistent Keepalive 2021-07-14 20:53:59 -04:00
Emile Nijssen 985d886362 make WG_DEFAULT_DNS optional, fixes #40 2021-07-13 21:00:40 +02:00
Emile Nijssen 016382dd01 allow edit of name + address 2021-07-13 20:51:23 +02:00
DerDanilo 8919451430 add WG_ALLOWED_IPS; https://github.com/WeeJeWel/wg-easy/issues/19 2021-06-15 17:58:58 +02:00
Emile Nijssen 30f56510e6 wip 2021-05-23 15:27:46 +02:00
Emile Nijssen e89e364b36 wip 2021-05-23 14:38:33 +02:00
Emile Nijssen 0c3217def0 wip 2021-05-23 14:28:22 +02:00
Emile Nijssen 0f220c1a78 wip 2021-05-23 13:36:26 +02:00
Emile Nijssen e3b7d94fa0 wip 2021-05-23 12:25:14 +02:00