Connecting a Linux box to AWS-VPN using OKTA Authentication/Authorization


First of all, a rookie, related to VPN/Security issues, so really forgive me for whatever error I make while describing my problem, and hope I'm able to make it clear.

Our contractors changed AVIATRIX-OKTA VPN for AWS-VPN with OKTA Authentication, they send as an .ovpn file, that works ok for Windows/MAC using AWS-Vpn-Client application software, but a couple of us using Linux boxes (Ubuntu specifically) run the described method in AWS which is:

openvn config-file.ovpn

but it fails to authenticate.

It simply asks for usr/pwd an then it fails with auth error (we use our OKTA credentials) , seems nothing is configured to go to OKTA, open a browser or whatever it needs to do.

As an aside note, we can connect without any trouble to our aws k8s cluster using OKTA client libraries, no sure is this is useful or not, just in case.

The .ovpn file looks like this

dev tun
proto tcp
remote 443
resolv-retry infinite
remote-cert-tls server
cipher AES-256-GCM
verb 5

auth-retry interact
reneg-sec 0

An interesting thing to notice is that openvpn complains about auth-federate
seems not to recognize it, so I started using gnome network-manager which seems
to accept this configuration, but getting Auth error too.

After this I tried openvpn3 which didn't complain about configuration,
but still getting the same error.

Any help on how to configure it, or just know if it is possible, will be greatly welcome , seems there is very little information around this in the net and we are really stuck on this, we are willing not to change OS or machines as they are asking to, or using VM just to connect.

Thanks in advance,

asked 2 years ago70 views
3 Answers

Finally I got an answer from AWS people:

If the Client VPN endpoint is configured using SAML-based authentication (such as Okta), then you > > have to use the AWS-provided client to connect:

And the promise to update the client documentation with a WARNING about this.

answered 2 years ago

I hope for a Linux client..
The general theme of getting Linux client stuff from AWS is getting better, they provided the NOSQL workbench in Linux form recently.

answered 2 years ago

Definitely, not sure why there is not, okta is kind of linux friendly openvpn no need to explain, so why there is not one, is probably the question.

Just to mention, previously as I stated, we used aviatrix, which provided a token that we can use as a password wehen askled and use standard OVPN configuration without any trouble, why not a simple similar solution.

Thanks Steven for triggering this response :-)

Edited by: tjc on Jun 26, 2020 6:32 AM

answered 2 years ago

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