121 Commits

Author SHA1 Message Date
tetuaoro
9a19430dc8 feat: generate PASSWORD_HASH on the fly
* remove PASSWORD environment variable in favor of PASSWORD_HASH
* enhance password validity check server function
* update Dockerfile to include building a binary for generating hashed password
* update README with comprehensive Docker usage instructions hash generation
2024-07-12 21:24:09 +02:00
tetuaoro
9371b78a21 refactor: optimize build config, factorize code, enhance SVG icons
* focus on syncing configuration without shutting down current wg session
	refactor build configuration logic to optimize code structure
* enhance SVG icons for better visual appeal (https://github.com/wg-easy/wg-easy/pull/1166#issuecomment-2222418606)
* update the screenshot to reflect the latest UI changes
* fix: prevent logging private key during user creation
2024-07-11 12:58:25 +02:00
tetuaoro
10d24fa04b fix: icons & buttons view
* update the viewBox of svg elements
* add cursor pointer when hover the restore button
* rebuild the css
2024-07-10 18:11:28 +02:00
tetuaoro
ce20bb7fcb feat: support more langs
* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
    - "import" to "restore"
    - "export" to "backup"
* rename functions to reflect these changes
2024-07-10 15:46:36 +02:00
tetuaoro
e3ee09b755 fix: reload configuration
* run linter
* screenshot update
2024-07-10 15:46:36 +02:00
tetuaoro
03b7d8e537 feat: load configuration from file
* import json config file & update the config (restore)
* export the config and save it to json file (backup)
2024-07-10 15:46:36 +02:00
Robert Heim
34ae8e42f3 fix: lint errors 2024-06-18 22:30:55 +02:00
Robert Heim
eaa4b1ebaa feat: introduce PASSWORD_HASH and deprecate PASSWORD 2024-06-18 20:17:00 +02:00
Philip H
b5372f0dbc
bring password hash back
users want to have this instead cleartext password. Mitigates security issues.
2024-06-16 16:14:19 +02:00
adrien
a082a40bf6 config: Add support for custom client port configuration
This commit introduces the ability to specify a custom port for the client
configuration. This feature is particularly useful when the WireGuard server
is behind a port forwarding setup, allowing clients to connect using the
correct port number.

With this change, users can now define the desired client port in the
configuration file, ensuring seamless connectivity even in scenarios where
the client's listening port differs from the standard WireGuard port.
2024-06-07 12:53:54 +02:00
Max
e6d2d95340
fix typo in Server.js 2024-06-06 23:01:39 +02:00
davide-acanfora
d2d15fca2a Path traversal vulnerability resolved 2024-05-27 20:25:00 +02:00
davide-acanfora
c26b536b65 Remove unnecessary bcryptjs module usage 2024-05-27 20:25:00 +02:00
davide-acanfora
859dd2f25b Replace uuid module with built in crypto for UUIDv4 generation 2024-05-27 20:25:00 +02:00
Philip H
68c6f6252e fixup: Server.js for instance without docker
Some users can no longer access the Web UI since the release of v13.
2024-05-16 20:19:22 +02:00
Philip H
187888e078 WireGuard.js: fixup ListenPort 2024-04-14 19:51:04 +02:00
Philip H
bf214fb4d3
Revert "feat: cidr notation" 2024-03-27 14:41:31 +01:00
Philip H
6c0049770e
Merge branch 'master' into feat-cidr-notation 2024-03-23 21:30:52 +01:00
cany748
8d00c5456a fix: add Content-Type header for static files 2024-03-23 19:37:33 +01:00
Philip H
953a67bbdd
fixup: Server.js 2024-03-19 14:18:29 +01:00
Philip H
5fbfb26937
fixup: Server.js 2024-03-19 14:16:44 +01:00
Philip H
74f3e2f320
fixup: Server.js 2024-03-19 14:11:03 +01:00
Philip H
c107920df2
Merge branch 'master' into feat-h3 2024-03-19 14:09:42 +01:00
Sergei Birukov
aedb691b2b Fix traffic charts. Add chart vars
Add UI_TRAFFIC_STATS, UI_CHART_TYPE
2024-03-18 21:25:08 +01:00
Philip H
f7bd362538
fixup: Server.js 2024-03-15 15:23:12 +01:00
Philip H
ee5a2c6c5a
Server.js: remove cookie setting
Proxy is recommended else use only internally
2024-03-15 15:17:41 +01:00
Philip H
68187e07a1
Merge branch 'master' into feat-cidr-notation 2024-03-14 13:49:26 +01:00
Philip H.
7596385d5a
fixup: lint errors and uninstall express 2024-03-14 12:18:47 +00:00
Philip H.
10f246ea59
fixup: Server.js 2024-03-14 08:19:29 +00:00
Philip H.
3f2495a0ea
fixup: UI_TRAFFIC_STATS 2024-03-14 08:14:52 +00:00
Philip H.
b7c2c81cc7
fixup: lint errors 2024-03-14 08:05:09 +00:00
Philip H
064e264ce8
Server.js: add missing ')' 2024-03-14 08:59:31 +01:00
Philip H
08c412fd14
Server.js: remove white-space 2024-03-14 08:57:38 +01:00
Philip H
8c771b054c
Server.js: add UI_TRAFFIC_STATS 2024-03-14 08:55:15 +01:00
Philip H
e9480a5ed5
fixup Server.js: even to master 2024-03-14 08:50:31 +01:00
Philip H
1a3cff855e
Merge branch 'feat-h3' into master 2024-03-14 08:48:53 +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
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