Commit Graph

134 Commits

Author SHA1 Message Date
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
cany748 7efdbf38e4 fix: revert ServerError.js 2024-02-28 16:27:33 +07:00
cany748 e8a160b14f refactor!: migrate from express to h3 2024-02-28 15:48:09 +07:00
Philip H 00956ecf74 Merge branch 'feat-no-privateKey' into feat/clients-without-privatekey 2024-02-26 10:47:43 +01:00
Peter Lewis ebc5173bd0 usage -> traffic 2024-02-25 22:02:53 +00:00
Peter Lewis a40dbe130e detailed -> usage 2024-02-25 21:42:51 +00:00
Sergei Birukov 45147ee7c4 Fix lint errors 2024-02-13 19:30:34 +03:00
Sergei Birukov fa392cf260 Add UI_DETAILED_STATS variable
Show detailed RX / TX stats when UI_DETAILED_STATS = true
Add api method to get UI_DETAILED_STATS value on frontend
2024-02-13 12:53:32 +03: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
pheiduck a182efb443 load language before session 2024-01-19 09:35:35 +01:00
Alexander 7ba2ed6368 Merge branch 'master' into master 2024-01-09 12:49:34 +07: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. e3fd6cf8b4 fixup: bcrypt implementation 2023-12-29 15:43:26 +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
Alexander 7d7a2ff8d7 Merge branch 'master' into master 2023-12-22 14:29:38 +07:00
Philip H 8d88549d02 Server.js: expiryDate prevents login 2023-12-17 18:31:31 +01:00
Philip H. 2a775d4bf7 fixup: Prototype-polluting assignment (medium) 2023-12-03 11:50:14 +00:00
Philip H. 206033a731 fixup: Prototype-polluting assignment (medium) 2023-12-03 10:21:43 +00:00
Philip H. 7d755f033b session will be expire in 1 hour 2023-12-03 09:06:06 +00:00
Philip H. 35144b34c2 fixup: some security stuff 2023-12-03 08:53:54 +00:00
Philip H f1cafc3f09 fixup Server.js: revert secure: true
Clear text transmission of sensitive cookie (medium)
needs rework for better fix
2023-12-02 23:49:41 +01:00
Philip H 4c7d763d24 fixes: security stuff (#47)
Insecure randomness (high)
gravatar: md5 insecure hash algorithm (high)
Clear text transmission of sensitive cookie (medium)
2023-12-02 22:59:30 +01:00
Philip H. e5f4fb4e90 fixup: require('bcryptjs') 2023-12-02 13:07:21 +00: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
Rahil Bhimjiani dd86dbaef0 Ability to change ip address WebUI binds to with WEBUI_HOST env var 2023-06-03 16:14:47 +05:30
Peter Lewis 8800cd9b0d Update WireGuard.js 2023-02-01 11:22:33 +00:00
Peter Lewis 1a11c6f396 Update Util.js 2023-02-01 11:22:07 +00:00
Peter Lewis 6bbd46e7df Update Server.js 2023-02-01 11:21:40 +00:00
cany748 bc38a72b1a Merge branch 'WeeJeWel:master' into master 2022-07-06 11:57:52 +07:00
Emile Nijssen bc320fbf79 fixes #306 2022-07-03 21:38:22 +02:00
cany748 2c29909ef6 add environment variable for changes lang 2022-06-20 20:09:17 +07: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