{"id":37192003,"url":"https://github.com/samm-git/aws-vpn-client","last_synced_at":"2026-01-14T22:15:40.555Z","repository":{"id":42040143,"uuid":"277906891","full_name":"samm-git/aws-vpn-client","owner":"samm-git","description":"Connect to the AWS Client VPN with SAML using OSS Client","archived":false,"fork":false,"pushed_at":"2025-05-01T07:30:16.000Z","size":26,"stargazers_count":211,"open_issues_count":9,"forks_count":101,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-01T08:28:54.853Z","etag":null,"topics":["aws","openvpn","vpn"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samm-git.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-07T19:40:21.000Z","updated_at":"2025-05-01T07:30:20.000Z","dependencies_parsed_at":"2022-08-12T03:10:19.966Z","dependency_job_id":null,"html_url":"https://github.com/samm-git/aws-vpn-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samm-git/aws-vpn-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samm-git%2Faws-vpn-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samm-git%2Faws-vpn-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samm-git%2Faws-vpn-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samm-git%2Faws-vpn-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samm-git","download_url":"https://codeload.github.com/samm-git/aws-vpn-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samm-git%2Faws-vpn-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","openvpn","vpn"],"created_at":"2026-01-14T22:15:39.794Z","updated_at":"2026-01-14T22:15:40.549Z","avatar_url":"https://github.com/samm-git.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-vpn-client\n\nThis is PoC to connect to the AWS Client VPN with OSS OpenVPN using SAML\nauthentication. Tested on macOS and Linux, should also work on other POSIX OS with a minor changes.\n\nSee [my blog post](https://smallhacks.wordpress.com/2020/07/08/aws-client-vpn-internals/) for the implementation details.\n\nP.S. Recently [AWS released Linux desktop client](https://aws.amazon.com/about-aws/whats-new/2021/06/aws-client-vpn-launches-desktop-client-for-linux/), however, it is currently available only for Ubuntu, using Mono and is closed source. \n\n## Content of the repository\n\n- [openvpn-v2.4.9-aws.patch](openvpn-v2.4.9-aws.patch) - patch required to build\nAWS compatible OpenVPN v2.4.9, based on the\n[AWS source code](https://amazon-source-code-downloads.s3.amazonaws.com/aws/clientvpn/osx-v1.2.5/openvpn-2.4.5-aws-2.tar.gz) (thanks to @heprotecbuthealsoattac) for the link.\n- [server.go](server.go) - Go server to listed on http://127.0.0.1:35001 and save\nSAML Post data to the file\n- [aws-connect.sh](aws-connect.sh) - bash wrapper to run OpenVPN. It runs OpenVPN first time to get SAML Redirect and open browser and second time with actual SAML response\n\n## How to use\n\n1. Build patched openvpn version and put it to the folder with a script\n1. Start HTTP server with `go run server.go`\n1. Set VPN_HOST in the [aws-connect.sh](aws-connect.sh)\n1. Replace CA section in the sample [vpn.conf](vpn.conf) with one from your AWS configuration\n1. Finally run `aws-connect.sh` to connect to the AWS.\n\n### Additional Steps\n\nInspect your ovpn config and remove the following lines if present\n- `auth-user-pass` (we dont want to show user prompt)\n- `auth-federate` (propietary AWS keyword)\n- `auth-retry interact` (do not retry on failures)\n- `remote` and `remote-random-hostname` (already handled in CLI and can cause conflicts with it)\n\n## Todo\n\nBetter integrate SAML HTTP server with a script or rewrite everything on golang\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamm-git%2Faws-vpn-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamm-git%2Faws-vpn-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamm-git%2Faws-vpn-client/lists"}