Important
This repository is largely simply packaging other authors' work!
Alex Samorukov is the mastermind behind this implementation. He figured out how AWS patches the openvpn client and created the first implementations. Be sure to read his blog on for more details.
Botify Labs maintains the .patch
files for more recent versions of OpenVPN than what are available originally
in Alex's repository.
This repository aims to package the work of Alex Samorukov and Botify Labs on making OpenVPN compatible with AWS VPN SAML.
- Download your AWS VPN client profile into a directory
- Run
docker run --name vpn -d --net host -v /path/to/profile.ovpn:/opt/openvpn/profile.ovpn:ro --device /dev/net/tun:/dev/net/tun --cap-add NET_ADMIN kpalang/aws-vpn:latest
- Run
docker logs -f vpn
to grab the login link - After logging in, you can safely exit the log tail with
Ctrl-C
- Run
- Enjoy
- Clone this repository
- Download your AWS VPN client profile into a directory.
- Adjust the mount source (
./profile.ovpn
) incompose.yml
to read your ovpn profile file (cvpn-endpoint-*.ovpn
)- Don't change the mount target (
/opt/openvpn/profile.ovpn
)!
- Don't change the mount target (
- Run
docker compose up --build
- Also grab the login link from
docker compose logs
- Also grab the login link from
- Enjoy