[GH-ISSUE #6015] [Feature]: Adding openvpn connection #4167

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

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

no

Describe the solution you'd like

As the all method using proxy solutions not native networking solutions, the connection like open vpn needed for many environments that they need connections that support routing. for example im using panel to update some network security devices like firewalls and wafs that their vendor blocked our country ip due to sanctions. for such a use, raw networking solutions like openvpn would be helpful.
Thank you for all you did and doing in this years till now.

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 @ashkan955 on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6015 ### Is your feature request related to a problem? no ### Describe the solution you'd like As the all method using proxy solutions not native networking solutions, the connection like open vpn needed for many environments that they need connections that support routing. for example im using panel to update some network security devices like firewalls and wafs that their vendor blocked our country ip due to sanctions. for such a use, raw networking solutions like openvpn would be helpful. Thank you for all you did and doing in this years till now. ### 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 - [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:37:39 +07:00
Author
Owner

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

This is the same request as #3358 (and #5128), which already has a definitive answer: OpenVPN support cannot be added to 3x-ui because the underlying engine, Xray-core (github.com/xtls/xray-core, see go.mod), does not implement the OpenVPN protocol as an inbound or an outbound.

Confirmed in this repo: internal/database/model/model.go defines the full, closed set of supported inbound protocols:

VMESS       Protocol = "vmess"
VLESS       Protocol = "vless"
Tunnel      Protocol = "tunnel"
HTTP        Protocol = "http"
Trojan      Protocol = "trojan"
Shadowsocks Protocol = "shadowsocks"
Mixed       Protocol = "mixed"
WireGuard   Protocol = "wireguard"
Hysteria    Protocol = "hysteria"
MTProto     Protocol = "mtproto"

There is no OpenVPN entry, and no reference to OpenVPN anywhere else in the codebase. 3x-ui is a management panel for Xray-core: it runs Xray-core as a child process and imports it for config generation and the gRPC stats/handler API (internal/xray/process.go). The only protocol handled outside Xray-core itself is MTProto, which runs through a separately bundled binary (internal/mtproto/). OpenVPN is a full Layer-3 VPN with its own TLS handshake and tun/tap interface management, architecturally different from Xray's proxy-oriented inbounds/outbounds, so adding it would require OpenVPN support in Xray-core first, which is outside 3x-ui's control.

If the underlying need is a routable tunnel for reaching internal devices (rather than proxying), wireguard is already a supported protocol in the enum above, with genuine Layer-3 routing unlike the other proxy protocols. It may cover this use case without waiting on upstream Xray-core changes.

Closing as a duplicate of #3358 so discussion and any future updates stay in one place.

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

<!-- gh-comment-id:5002421750 --> @github-actions[bot] commented on GitHub (Jul 17, 2026): This is the same request as #3358 (and #5128), which already has a definitive answer: OpenVPN support cannot be added to 3x-ui because the underlying engine, Xray-core (`github.com/xtls/xray-core`, see `go.mod`), does not implement the OpenVPN protocol as an inbound or an outbound. Confirmed in this repo: `internal/database/model/model.go` defines the full, closed set of supported inbound protocols: ```go VMESS Protocol = "vmess" VLESS Protocol = "vless" Tunnel Protocol = "tunnel" HTTP Protocol = "http" Trojan Protocol = "trojan" Shadowsocks Protocol = "shadowsocks" Mixed Protocol = "mixed" WireGuard Protocol = "wireguard" Hysteria Protocol = "hysteria" MTProto Protocol = "mtproto" ``` There is no OpenVPN entry, and no reference to OpenVPN anywhere else in the codebase. 3x-ui is a management panel for Xray-core: it runs Xray-core as a child process and imports it for config generation and the gRPC stats/handler API (`internal/xray/process.go`). The only protocol handled outside Xray-core itself is MTProto, which runs through a separately bundled binary (`internal/mtproto/`). OpenVPN is a full Layer-3 VPN with its own TLS handshake and tun/tap interface management, architecturally different from Xray's proxy-oriented inbounds/outbounds, so adding it would require OpenVPN support in Xray-core first, which is outside 3x-ui's control. If the underlying need is a routable tunnel for reaching internal devices (rather than proxying), `wireguard` is already a supported protocol in the enum above, with genuine Layer-3 routing unlike the other proxy protocols. It may cover this use case without waiting on upstream Xray-core changes. Closing as a duplicate of #3358 so discussion and any future updates stay 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#4167
No description provided.