Any workarounds to run AWS Client VPN on Ubuntu 22.10?

4

I am forced to use AWS Client VPN. My organisation uses SAML-based authentication. Therefore OpenVPN client cannot be used.

I successfully used AWS Client VPN version 3.3.0 with Ubuntu 22.04, using workarounds described in https://repost.aws/questions/QUNJeF_ja_Suykous7EvfX5Q/aws-client-vpn-on-ubuntu-22-04. After I updated my system to Ubuntu 22.10, a different problem appeared and I am unable to connect.

I found a solution to:

Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()

Ubuntu 22.10 comes with libicu71. I don't have older versions available. I solved the problem based on a StackOverflow question, so with export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1.

Setting the env var makes the app start successfully. But I am block by the final problem: clicking 'Connect' button ends with a window saying

Unknown error ocurred. Try again.

Browsing logs from ~/.config/AWSVPNClient/logs shows:

2023-05-10 19:02:04.024 +02:00 [DBG] Starting OpenVpn process
2023-05-10 19:02:04.048 +02:00 [DBG] Received exception for connection state Disconnected. Show error message to user
2023-05-10 19:02:04.048 +02:00 [ERR] Exception received by connect window view model
Tmds.DBus.ConnectException: Connection refused awsvpnclient
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (111): Connection refused awsvpnclient

This looks like a new problem to me. The question for Ubuntu 22.04 mentioned libssl, but there the problem manifested itself with a hard crash with core dump.

I tried different versions of libssl1.1:

  • libssl1.1_1.1.0g-2ubuntu4_amd64.deb
  • libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb (this worked for me when using Ubuntu 22.04)
  • libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb

But nothing changes.

  • More on 'connection refused'. When everything worked, logs were:

    [DBG] OvpnGtkServiceClient connected. Calling StartVpnAsync
    [DBG] OvpnGtkServiceClient received OpenVPN process PID: 62858
    [INF] Connecting to management interface... host 127.0.0.1, port 8096
    [DBG] Socket connected
    

    Now the exception is:

       at Tmds.DBus.Connection.DoConnectAsync()
       at Tmds.DBus.Connection.ConnectAsync()
       at ACVC.Core.OpenVpn.OvpnGtkServiceClient.StartVpnAsync(String[] ovpnConfigFileContents, String[] managementPortPasswordFileContents) in /home/ubuntu/Jenkins/workspace/GtkBuild/SecureConnectClient/ACVC.Core/OpenVpn/OvpnGtkServiceClient.cs:line 24
       at ACVC.Core.OpenVpn.OvpnGtkProcessManager.Start(String openVpnConfigPath, String managementPortPasswordFile, Int32 timeoutMilliseconds) in /home/ubuntu/Jenkins/workspace/GtkBuild/SecureConnectClient/ACVC.Core/OpenVpn/OvpnProcessManager.cs:line 695
       at ACVC.Core.OpenVpn.OvpnConnectionManager.Connect(OvpnConnectionProfile ckonfigProfile, GetCredentialsCallback getCredentialsCallback, Int32 timeout) in /home/ubuntu/Jenkins/workspace/GtkBuild/SecureConnectClient/ACVC.Core/OpenVpn/OvpnConnectionManager.cs:line 862
    
  • Same exact issue on Ubuntu 23.04

asked a year ago229 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions