[GH-ISSUE #816] Can I use an .ovpn config file with login/password for connection via the AmnesiaWG Windows App? #202

Open
opened 2026-10-13 20:15:15 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @n8creator on GitHub (May 19, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/816

Hi! I use the AmnesiaWG Windows app to connect to various VPN locations for personal use. Recently, at my new job, I was given an .ovpn config file to connect to the company server using login and password authentication. Can I use this config file to set up an OpenVPN connection through the AmnesiaWG app?

I tried adding the auth-user-pass parameter with an absolute path to the config file, but the connection fails (everything works fine when I use the native OpenVPN app)). Here is a fragment of my .ovpn configuration file:

client
auth-user-pass C:\openvpn-credentials.txt
auth-nocache
#static-challenge Verification code: 1
reneg-sec 0
dev tun
proto udp
sndbuf 0
...

Any help would be appreciated!

Originally created by @n8creator on GitHub (May 19, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/816 Hi! I use the AmnesiaWG Windows app to connect to various VPN locations for personal use. Recently, at my new job, I was given an `.ovpn` config file to connect to the company server using login and password authentication. Can I use this config file to set up an OpenVPN connection through the AmnesiaWG app? **I tried adding the `auth-user-pass` parameter with an absolute path to the config file, but the connection fails** (everything works fine when I use the native OpenVPN app)). Here is a fragment of my `.ovpn` configuration file: ``` client auth-user-pass C:\openvpn-credentials.txt auth-nocache #static-challenge Verification code: 1 reneg-sec 0 dev tun proto udp sndbuf 0 ... ``` Any help would be appreciated!
Author
Owner

@Virenta commented on GitHub (Oct 11, 2024):

On OpenVPN 2.6.0+ you can use inline auth, like this:

<auth-user-pass>
username
password
</auth-user-pass>

image

Also why you use AmnesiaWG? It's used mainly for wireguard protocol AFAIK

<!-- gh-comment-id:2407074858 --> @Virenta commented on GitHub (Oct 11, 2024): On OpenVPN 2.6.0+ you can use inline auth, like this: ``` <auth-user-pass> username password </auth-user-pass> ``` ![image](https://github.com/user-attachments/assets/c690fa4c-6eb3-42a5-a9b1-6b6bff7eb4e4) Also why you use AmnesiaWG? It's used mainly for wireguard protocol AFAIK
Author
Owner

@redplcs commented on GitHub (Feb 9, 2026):

Have anyone figured it out? The answer above does not working for me. It's preparing for 0.5 sec and then shows connect button again

Logs:

[2026-02-09 10:14:00.862Z] [DEBUG] Amnezia  : Logger::setServiceLogsEnabled(): Logs transitioned to be  enabled
[2026-02-09 10:14:00.863Z] [INFO] Amnezia  : Logging has enabled on AmneziaVPN version 4.8.12.9 f7379284
[2026-02-09 10:14:00.863Z] [INFO] Amnezia  : Windows 11 Version 25H2 (x86_64)
[2026-02-09 10:14:05.388Z] [DEBUG] Amnezia  : VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
[2026-02-09 10:14:05.389Z] [DEBUG] Amnezia  : "ConnectToVpn, Server index is 2, container is amnezia-openvpn, route mode is" Settings::VpnAllExceptSites
[2026-02-09 10:14:05.389Z] [DEBUG] Amnezia  : OpenVpnProtocol::stop()
[2026-02-09 10:14:05.389Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключение..."
[2026-02-09 10:14:05.391Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключено"
[2026-02-09 10:14:05.391Z] [DEBUG] Amnezia  : OpenVpnProtocol::stop()
[2026-02-09 10:14:05.391Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключение..."
[2026-02-09 10:14:05.391Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключено"
[2026-02-09 10:14:05.609Z] [DEBUG] Amnezia  : Set config data C:/Users/Redplcs/AppData/Local/Temp/AmneziaVPN.hYiGgI
[2026-02-09 10:14:05.660Z] [DEBUG] Amnezia  : OpenVpnProtocol::stop()
[2026-02-09 10:14:05.660Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключение..."
[2026-02-09 10:14:05.660Z] [DEBUG] Amnezia  : Connection state: 'Отключение...'
[2026-02-09 10:14:05.671Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключено"
[2026-02-09 10:14:05.671Z] [DEBUG] Amnezia  : Connection state: 'Отключено'
[2026-02-09 10:14:05.673Z] [DEBUG] Amnezia  : OpenVpnProtocol::start mgmt port selected: 25895
[2026-02-09 10:14:05.673Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Подключение..."
[2026-02-09 10:14:05.673Z] [DEBUG] Amnezia  : Connection state: 'Подключение...'
[2026-02-09 10:14:05.676Z] [DEBUG] Amnezia  : "--config C:/Users/Redplcs/AppData/Local/Temp/AmneziaVPN.hYiGgI --management 127.0.0.1 25895 --management-client"
[2026-02-09 10:14:05.685Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Starting
[2026-02-09 10:14:05.690Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Running
[2026-02-09 10:14:05.717Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::NotRunning
[2026-02-09 10:14:05.717Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Отключено"
[2026-02-09 10:14:05.717Z] [DEBUG] Amnezia  : Connection state: 'Отключено'
<!-- gh-comment-id:3870760478 --> @redplcs commented on GitHub (Feb 9, 2026): Have anyone figured it out? The answer above does not working for me. It's preparing for 0.5 sec and then shows connect button again Logs: ``` [2026-02-09 10:14:00.862Z] [DEBUG] Amnezia : Logger::setServiceLogsEnabled(): Logs transitioned to be enabled [2026-02-09 10:14:00.863Z] [INFO] Amnezia : Logging has enabled on AmneziaVPN version 4.8.12.9 f7379284 [2026-02-09 10:14:00.863Z] [INFO] Amnezia : Windows 11 Version 25H2 (x86_64) [2026-02-09 10:14:05.388Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" [2026-02-09 10:14:05.389Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 2, container is amnezia-openvpn, route mode is" Settings::VpnAllExceptSites [2026-02-09 10:14:05.389Z] [DEBUG] Amnezia : OpenVpnProtocol::stop() [2026-02-09 10:14:05.389Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключение..." [2026-02-09 10:14:05.391Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключено" [2026-02-09 10:14:05.391Z] [DEBUG] Amnezia : OpenVpnProtocol::stop() [2026-02-09 10:14:05.391Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключение..." [2026-02-09 10:14:05.391Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключено" [2026-02-09 10:14:05.609Z] [DEBUG] Amnezia : Set config data C:/Users/Redplcs/AppData/Local/Temp/AmneziaVPN.hYiGgI [2026-02-09 10:14:05.660Z] [DEBUG] Amnezia : OpenVpnProtocol::stop() [2026-02-09 10:14:05.660Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключение..." [2026-02-09 10:14:05.660Z] [DEBUG] Amnezia : Connection state: 'Отключение...' [2026-02-09 10:14:05.671Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключено" [2026-02-09 10:14:05.671Z] [DEBUG] Amnezia : Connection state: 'Отключено' [2026-02-09 10:14:05.673Z] [DEBUG] Amnezia : OpenVpnProtocol::start mgmt port selected: 25895 [2026-02-09 10:14:05.673Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Подключение..." [2026-02-09 10:14:05.673Z] [DEBUG] Amnezia : Connection state: 'Подключение...' [2026-02-09 10:14:05.676Z] [DEBUG] Amnezia : "--config C:/Users/Redplcs/AppData/Local/Temp/AmneziaVPN.hYiGgI --management 127.0.0.1 25895 --management-client" [2026-02-09 10:14:05.685Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-02-09 10:14:05.690Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-02-09 10:14:05.717Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning [2026-02-09 10:14:05.717Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Отключено" [2026-02-09 10:14:05.717Z] [DEBUG] Amnezia : Connection state: 'Отключено' ```
Sign in to join this conversation.
No labels
pull-request
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
amnezia-vpn/amnezia-client#202
No description provided.