Commit Graph

41 Commits

Author SHA1 Message Date
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
taohua 8df1b6ff54 Update config.js
should respect WG_PORT, not hard code 51820.
2024-05-18 14:13:03 +02:00
Philip H bf214fb4d3
Revert "feat: cidr notation" 2024-03-27 14:41:31 +01:00
Utkarsh Goel 5cdacd6cc3
Fix CIDR block calculation issue, fix POST_DOWN config 2024-03-25 23:28:36 +08:00
Philip H 6c0049770e
Merge branch 'master' into feat-cidr-notation 2024-03-23 21:30:52 +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 86f23cd1d3
config.js: formatting 2024-03-05 18:37:28 +01:00
Philip H 76a3d7f81d
fixing stuff and formating 2024-03-05 18:15:42 +01:00
Thomas Willems c4d4da38e7 correct CIDR notation 2024-03-05 16:58:19 +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
Chanchai 6604e44ea3 feat: support graceful shutdown 2024-03-01 14:26:13 +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 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
Alexander 7d7a2ff8d7
Merge branch 'master' into master 2023-12-22 14:29:38 +07:00
Philip H 291cd3325b
config.js: revert fixed MTU 1420 2023-12-21 22:14:57 +01:00
Alexander 3ee12e2a6a
Merge branch 'master' into master 2023-12-19 14:06:57 +07:00
Philip H 1a8062dde3
config.js: if not set use wireguard default mtu 2023-11-15 10:36:17 +01:00
Philip H 94b9eaf3cd
Revert "fixup: Determine interface of default network rather than assume eth0" 2023-11-15 09:36:45 +01:00
Chris Debenham 7ba23dc593 Determine interface of default network rather than assume eth0
fixup: import child_process before package.json
2023-11-14 12:32:01 +00: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
Joe Roback 5e5506eea0
add wireguard device parameter 2023-02-23 15:12:47 -07:00
cany748 2c29909ef6 add environment variable for changes lang 2022-06-20 20:09:17 +07: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
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
Fastidious 0c46cbf30a
Extra E
Removed an extra E. Sorry!
2021-07-17 10:44:33 -04:00
Fastidious 534fb0ab79
Update config.js 2021-07-17 10:20:01 -04:00
Fastidious 49a2949aea
Renaming and settings values
Renaming environmental variable, and changing its default value.
2021-07-17 10:18:19 -04:00
Fastidious 5248dfec77
Binding web address
Ability to change whether app binds to 0.0.0.0 or other address (127.0.0.1, for proxying).
2021-07-15 06:54:08 -04:00
Fastidious 587bb7a3f0
Adding Persistent keepalive 2021-07-14 20:49:29 -04:00
Emile Nijssen 91832c8e20 wip 2021-07-13 21:39:45 +02:00
Emile Nijssen 985d886362 make WG_DEFAULT_DNS optional, fixes #40 2021-07-13 21:00:40 +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 e3b7d94fa0 wip 2021-05-23 12:25:14 +02:00
Emile Nijssen 9d355f67d8 wip 2021-05-23 12:02:56 +02:00
Emile Nijssen 18b6ce7c78 wip 2021-05-22 23:29:01 +02:00
Emile Nijssen d8f45476da wip 2021-05-22 22:40:11 +02:00
Emile Nijssen d7bb645470 wip 2021-05-22 22:21:09 +02:00