[GH-ISSUE #5818] [Feature]: Feature request: Add support for AmneziaWG / extended WireGuard parameters #4043

Closed
opened 2026-10-31 20:36:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kuzzrus on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5818

Hello.

I would like to suggest adding support for extended WireGuard-compatible parameters used by AmneziaWG.

Currently, 3x-ui already has WireGuard-related functionality, but it does not expose or preserve AmneziaWG-specific obfuscation parameters. Because of that, it is not possible to create or manage AmneziaWG-compatible configurations directly from the panel.

Requested parameters

Please consider adding support for the following fields:

Jc =
Jmin =
Jmax =

S1 =
S2 =
S3 =
S4 =

H1 =
H2 =
H3 =
H4 =

I1 =

And, if applicable in future versions:

I2 =
I3 =
I4 =
I5 =
Why this is useful

AmneziaWG is based on WireGuard but adds additional parameters for traffic obfuscation and compatibility with AmneziaWG clients.

Adding support for these fields would allow 3x-ui to manage AmneziaWG-style configurations in the same way it already manages other inbound/client configurations.

This would be useful for users who want to manage:

regular WireGuard configurations;
AmneziaWG 1.x configurations;
AmneziaWG 2.0 configurations;
client QR codes and exported configs with the required extended fields;
multiple peers from the same web panel.
Possible implementation

This could be implemented in one of two ways:

Extend the current WireGuard configuration UI to optionally support AmneziaWG fields.
Add a separate protocol/profile type, for example amneziawg, while keeping regular WireGuard unchanged.

The second option may be safer because it avoids mixing standard WireGuard and AmneziaWG behavior.

Backend considerations

Since these parameters are not part of standard WireGuard, the panel would probably need to support one of the following backends:

awg / awg-quick;
amneziawg-go;
AmneziaWG kernel module;
or another compatible backend.

It would also be helpful if 3x-ui could:

generate server and peer keys;
generate valid AmneziaWG client configs;
show QR codes;
add/remove peers;
enable/disable peers;
preserve custom AWG parameters when editing configs;
optionally auto-generate sane default obfuscation parameters.
Backward compatibility

This feature should not affect existing standard WireGuard users.

If AmneziaWG support is added as an optional mode or separate protocol type, existing WireGuard configurations can remain unchanged.

Summary

Please consider adding native or optional support for AmneziaWG / extended WireGuard parameters in 3x-ui.

This would make 3x-ui a much more complete management panel for users who need both Xray-based protocols and WireGuard-compatible protocols with AmneziaWG support.

Thank you for your work on this project.

Describe the solution you'd like

Example config fields

Example of the additional server-side fields:

[Interface]
PrivateKey = ...
Address = 10.8.0.1/24
ListenPort = 443

Jc = 4
Jmin = 40
Jmax = 70
S1 = ...
S2 = ...
S3 = ...
S4 = ...
H1 = ...
H2 = ...
H3 = ...
H4 = ...
I1 = ...

Example peer:

[Peer]
PublicKey = ...
PresharedKey = ...
AllowedIPs = 10.8.0.2/32

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @kuzzrus on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5818 ### Is your feature request related to a problem? Hello. I would like to suggest adding support for extended WireGuard-compatible parameters used by AmneziaWG. Currently, 3x-ui already has WireGuard-related functionality, but it does not expose or preserve AmneziaWG-specific obfuscation parameters. Because of that, it is not possible to create or manage AmneziaWG-compatible configurations directly from the panel. Requested parameters Please consider adding support for the following fields: Jc = Jmin = Jmax = S1 = S2 = S3 = S4 = H1 = H2 = H3 = H4 = I1 = And, if applicable in future versions: I2 = I3 = I4 = I5 = Why this is useful AmneziaWG is based on WireGuard but adds additional parameters for traffic obfuscation and compatibility with AmneziaWG clients. Adding support for these fields would allow 3x-ui to manage AmneziaWG-style configurations in the same way it already manages other inbound/client configurations. This would be useful for users who want to manage: regular WireGuard configurations; AmneziaWG 1.x configurations; AmneziaWG 2.0 configurations; client QR codes and exported configs with the required extended fields; multiple peers from the same web panel. Possible implementation This could be implemented in one of two ways: Extend the current WireGuard configuration UI to optionally support AmneziaWG fields. Add a separate protocol/profile type, for example amneziawg, while keeping regular WireGuard unchanged. The second option may be safer because it avoids mixing standard WireGuard and AmneziaWG behavior. Backend considerations Since these parameters are not part of standard WireGuard, the panel would probably need to support one of the following backends: awg / awg-quick; amneziawg-go; AmneziaWG kernel module; or another compatible backend. It would also be helpful if 3x-ui could: generate server and peer keys; generate valid AmneziaWG client configs; show QR codes; add/remove peers; enable/disable peers; preserve custom AWG parameters when editing configs; optionally auto-generate sane default obfuscation parameters. Backward compatibility This feature should not affect existing standard WireGuard users. If AmneziaWG support is added as an optional mode or separate protocol type, existing WireGuard configurations can remain unchanged. Summary Please consider adding native or optional support for AmneziaWG / extended WireGuard parameters in 3x-ui. This would make 3x-ui a much more complete management panel for users who need both Xray-based protocols and WireGuard-compatible protocols with AmneziaWG support. Thank you for your work on this project. ### Describe the solution you'd like Example config fields Example of the additional server-side fields: [Interface] PrivateKey = ... Address = 10.8.0.1/24 ListenPort = 443 Jc = 4 Jmin = 40 Jmax = 70 S1 = ... S2 = ... S3 = ... S4 = ... H1 = ... H2 = ... H3 = ... H4 = ... I1 = ... Example peer: [Peer] PublicKey = ... PresharedKey = ... AllowedIPs = 10.8.0.2/32 ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:36:44 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 5, 2026):

This looks like a duplicate of #3017, which tracks the same request (AmneziaWG / extended WireGuard obfuscation parameters — Jc, Jmin, Jmax, S1-S4, H1-H4, etc.). Several related requests have also been filed and closed as duplicates of it (#5237, #5300, #5113, #4849, #5090, #3330, #2459).

Please continue the discussion on #3017 so all interest and details are tracked in one place.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:4886468719 --> @github-actions[bot] commented on GitHub (Jul 5, 2026): This looks like a duplicate of #3017, which tracks the same request (AmneziaWG / extended WireGuard obfuscation parameters — `Jc`, `Jmin`, `Jmax`, `S1`-`S4`, `H1`-`H4`, etc.). Several related requests have also been filed and closed as duplicates of it (#5237, #5300, #5113, #4849, #5090, #3330, #2459). Please continue the discussion on #3017 so all interest and details are tracked in one place. *This reply was generated automatically. A maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4043
No description provided.