Subscription activation failure through proxy

I am trying to activate a new Enterprise subscription on our VPN server, but the activation fails with the following error:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘app.pritunl.com’, port=443): Max retries exceeded with url: /subscription (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f9acc8d35e0>: Failed to establish a new connection: [Errno 110] Connection timed out’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 2528, in wsgi_app
response = self.full_dispatch_request()
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1823, in full_dispatch_request
rv = self.dispatch_request()

File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/auth/app.py”, line 10, in _wrapped
return call(*args, **kwargs)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/handlers/subscription.py”, line 84, in subscription_post
response = requests.get(
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/requests/api.py”, line 73, in get
return request(“get”, url, params=params, **kwargs)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/requests/api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/requests/sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/requests/sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/requests/adapters.py”, line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘app.pritunl.com’, port=443): Max retries exceeded with url: /subscription (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f9acc8d35e0>: Failed to establish a new connection: [Errno 110] Connection timed out’))

The problem is due to the fact that the VPN is behind a hardware firewall, and only an UDP port (for the server) and a random port for the pritunl-web process are exposed to the internet, and the outbound traffic passes via a secure Squid proxy.

Is there any possibility to get help on this matter?

Later edit:
I have verified the server has indeed connectivity to https://app.pritunl.com/subscriptions, and updated all the packages.
In the Python scripts above, in adapter.py, I see a “get_connection” function, with the following definition:
proxy = select_proxy(url, proxies)

I have looked also in utils.py, but I can’t find any clear locations where proxies are determined.

Also, the overall OS proxy is well defined in /etc/environment.

I would really need some help to get this going.

@zach ?

The software doesn’t have any code to handle web proxy configurations, it isn’t something that is likely to be supported.