NetworkManager OpenVPN not connecting if proxy is set

Bug #2018676 reported by Ali Akbar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvpn (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My imported OpenVPN connection won't connect if a proxy is set in the [Advanced->Proxies] settings, however the same .ovpn file works when manually edited and added with `socks-proxy PROXY_IP PORT` and tried over the Terminal!

I only witnessed this bug on my Ubuntu 22.04 and not newer versions! I even reinstalled a fresh copy and tried again before changing anything on my Ubuntu Jammy but to no avail.

OS Release: Ubuntu 22.04.2 LTS
openvpn package: 2.5.5-1ubuntu3.1

OpenVPN Config file:
```
client
dev tun
proto tcp

remote x.x.x.x 8443
remote x.x.x.x 443
remote x.x.x.x 7770

remote-random
resolv-retry infinite
nobind

# The following setting is only needed for old OpenVPN clients compatibility. New clients
# automatically negotiate the optimal cipher.
cipher AES-256-CBC

auth SHA512
verb 3

setenv CLIENT_CERT 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun

reneg-sec 0

remote-cert-tls server
auth-user-pass
pull
fast-io

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
```

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for reporting this bug.

I've been trying to reproduce it locally to no avail. Here's what I'm doing:

- Create a Jammy VM.

- Install network-manager, network-manager-openvpn, and make sure that NetworkManager is managing the ethernet interface.

- Export http_proxy and set it to a SOCKS5 server (since this seems to be what you're doing, although it would be great if you could confirm it).

- Import a OpenVPN configuration into NetworkManager.

- Enable the VPN connection. So far, I have been able to successfully establish the VPN connection.

Would it be possible to provide more details about the steps you've taken to reproduce the issue? Also, could you provide NetworkManager's logs (from journalctl)?

For now, I am setting this bug as Incomplete. Feel free to set it back to New once you provide the information requested above. Thank you.

Changed in openvpn (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openvpn (Ubuntu) because there has been no activity for 60 days.]

Changed in openvpn (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.