[GH-ISSUE #5090] [Feature]: Add AmnesiaWG as an option for wireguard. #3582

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

Originally created by @rqzbeh on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5090

Normal Wireguard signature is easily detected by the DPI. so my solution is to add support for AmnesiaWG 2.0 which bypass DPI with random packets and junk and has proven effective in regions with restricted regions such as Russia and Iran.

Describe the solution you'd like

The panel has to detect whether or not, Linux module of AmnesiaWG2.0 is installed or not (https://github.com/amnezia-vpn/amneziawg-linux-kernel-module), and when user select to create a wireguard inbound offers them 3 options.
1- Normal Wireguard
2- AmnesiaWG 1 or 1.5
3- AmnesiaWG 2.0
although I think they are backward compatible if we only ship the panel with AmnesiaWG 2.0

the values the panel need to add for the inbound contain these filds:
I1-I5 (AWG 2.0 only- not for awg1.5)
S1-S4
Jc
Jmin, Jmax
H1-H4
the tag format and values are explained in here:
https://docs.amnezia.org/documentation/amnezia-wg/

Alternatives you've considered

We have to install AmnesiaWG2.0 linux module or have a prebuilt version shipped with the panel on docker install.

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 @rqzbeh on GitHub (Jun 8, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5090 ### Is your feature request related to a problem? Normal Wireguard signature is easily detected by the DPI. so my solution is to add support for AmnesiaWG 2.0 which bypass DPI with random packets and junk and has proven effective in regions with restricted regions such as Russia and Iran. ### Describe the solution you'd like The panel has to detect whether or not, Linux module of AmnesiaWG2.0 is installed or not (https://github.com/amnezia-vpn/amneziawg-linux-kernel-module), and when user select to create a wireguard inbound offers them 3 options. 1- Normal Wireguard 2- AmnesiaWG 1 or 1.5 3- AmnesiaWG 2.0 although I think they are backward compatible if we only ship the panel with AmnesiaWG 2.0 the values the panel need to add for the inbound contain these filds: I1-I5 (AWG 2.0 only- not for awg1.5) S1-S4 Jc Jmin, Jmax H1-H4 the tag format and values are explained in here: https://docs.amnezia.org/documentation/amnezia-wg/ ### Alternatives you've considered We have to install AmnesiaWG2.0 linux module or have a prebuilt version shipped with the panel on docker install. ### 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? - [x] 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:33:28 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 8, 2026):

Thank you for the detailed request and for offering to help implement it!

Unfortunately, this is a duplicate of several prior requests for the same feature — most notably #4849, #3330, #3017, and #2459.

The core architectural blocker: 3x-ui is a management panel built on top of xray-core. It can only expose protocols that xray-core itself implements. AmneziaWG is not a protocol supported by xray-core, so 3x-ui cannot add it unilaterally — the maintainer confirmed this explicitly in #2459: "We support only xray core."

What would need to happen first:

  1. AmneziaWG support would need to be implemented in xray-core upstream.
  2. Once xray-core exposes it, 3x-ui could then surface it in the panel.

Closing as a duplicate. You're welcome to track #3017 for any updates, or to contribute AmneziaWG support to xray-core directly, which would unblock this for the entire ecosystem.

<!-- gh-comment-id:4652404423 --> @github-actions[bot] commented on GitHub (Jun 8, 2026): Thank you for the detailed request and for offering to help implement it\! Unfortunately, this is a duplicate of several prior requests for the same feature — most notably #4849, #3330, #3017, and #2459. **The core architectural blocker:** 3x-ui is a management panel built on top of [xray-core](https://github.com/xtls/xray-core). It can only expose protocols that xray-core itself implements. AmneziaWG is not a protocol supported by xray-core, so 3x-ui cannot add it unilaterally — the maintainer confirmed this explicitly in #2459: *"We support only xray core."* **What would need to happen first:** 1. AmneziaWG support would need to be implemented in xray-core upstream. 2. Once xray-core exposes it, 3x-ui could then surface it in the panel. Closing as a duplicate. You're welcome to track #3017 for any updates, or to contribute AmneziaWG support to xray-core directly, which would unblock this for the entire ecosystem.
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#3582
No description provided.