Skip to content

Debian package to connect to the AWS Client VPN using SSO

License

Notifications You must be signed in to change notification settings

botify-labs/aws-vpn-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package aws-vpn-client


Based on this repo made by samm-git

The aim of this repo is to have an easy way to connect to an Amazon Client VPN using SSO with a debian package. A convenient way to do so is a debian package installing everything needed to connect to a VPN A single command start OpenVPN as a daemon allowing to close the terminal without worries

Note that the patched version of OpenVPN is nowhere in this repo, it is dowloaded, patched and builded When building the package. It works for Ubuntu 22.04+

How to use

Building and istalling the package

The builded package can be found in the github releases :

sudo dpkg -i ../aws-vpn_<version>-1_amd64.deb

If you want to built it yourself :

# Build tools
sudo apt install dh-make dpkg-dev -y

# Build dependencies
sudo apt install libssl-dev liblzo2-dev libpam0g-dev libnl-3-dev libnl-genl-3-dev libcap-ng-dev -y

# Build and install the DEB package
dpkg-buildpackage -b -rfakeroot -tc -us -uc
sudo dpkg -i ../aws-vpn_<version>-1_amd64.deb

Configuration

Yout configuration file must be /etc/aws-vpn.conf

Be sure to put this fields in your openvpn counfiguration file:

  • proto
  • remote (vpn endpoint and port)

And also remove:

  • auth-user-pass (we dont want to show user prompt)
  • auth-federate (propietary AWS keyword)
  • auth-retry interact (do not retry on failures)

Finally run aws-vpn to connect to you AWS VPN and aws-vpn --kill to disconnect. More option are available for this command try aws-vpn --help

More information

Since openvpn and the http server run as a daemon, if there is an issue the outpups are redirected to /var/log/aws-vpn.log

About

Debian package to connect to the AWS Client VPN using SSO

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 85.1%
  • Go 14.9%