Problem in nm-openvpn-service.c, openvpn connection fails after key renegotiation because --auth-user-pass is passed with --auth-nocache.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-openvpn (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
So I've been using OpenVPN through the network-
Now, I played around with .conf files and the CLI openvpn client and noticed EXACTLY the same behavior happening. I eventually arrived to the conclusion that the flag or option "auth-nocache" would cause a connection reset after or during downloads and streaming. I then got to reading the openvpn man pages and I stumbled across this message (you can easily find it by going 'man openvpn | grep nocache') about the guaranteed failure of key renegotiation if auth-user-pass and auth-nocache were used together:
" Further, using --daemon together with --auth-user-pass (entered
on console) and --auth-nocache will fail as soon as key renego‐
tiation (and reauthentication) occurs."
When I removed auth-user-pass from my .conf files, the problem went away. Then I wondered. Now what if...network-
"add_openvpn_arg (args, "--auth-nocache");"
So I decided to comment out that single line. I then rebuilt the packages network-
description: | updated |
summary: |
- Problem in network-manager-openvpn, openvpn fails during and after - downloads. + Problem in nm-openvpn-service.c, openvpn connection fails after key + renegotiation because --auth-user-pass is passed with --auth-nocache. |
Built patched package.