Skip to content

feat: add support for TLSAuth to Openvpn - #2969

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
lyaaz:feat-openvpn-tlsauth
Jul 12, 2026
Merged

feat: add support for TLSAuth to Openvpn#2969
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
lyaaz:feat-openvpn-tlsauth

Conversation

@lyaaz

@lyaaz lyaaz commented Jul 12, 2026

Copy link
Copy Markdown

Adds tls-auth support to OpenVPN outbound.

Considering the value of key-direction can be 1, 0, or empty, this field is set to a string type instead of an int.

@lyaaz

lyaaz commented Jul 12, 2026

Copy link
Copy Markdown
Author

related #2846

@wwqgtxx

wwqgtxx commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Please provide additional details regarding the communication test with the actual server.

@lyaaz

lyaaz commented Jul 12, 2026

Copy link
Copy Markdown
Author

Please provide additional details regarding the communication test with the actual server.

I have tested the connection using my company's OpenVPN server, and the communication works without problem with the following config:

  - name: openvpn
    type: openvpn
    server: xxx.xxx.xxx.xxx
    port: 1194
    proto: udp
    cipher: AES-256-GCM
    udp: true
    comp-lzo: "yes"
    ca: |
      ...
    cert: |
      ...
    key: |
      ...
    tls-auth: |
      ...
    key-direction: "1"
    peer-info:
      IV_PROTO: "8094"
      UV_UUID: xxxx
      ...

The server is not under my control, so I cannot perform further testing

@wwqgtxx
wwqgtxx merged commit 76d8088 into MetaCubeX:Alpha Jul 12, 2026
kuno pushed a commit to kuno/mihomo that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants