{"id":22477167,"url":"https://github.com/base2services/aws-client-vpn","last_synced_at":"2025-08-02T13:30:52.837Z","repository":{"id":59151990,"uuid":"192523296","full_name":"base2Services/aws-client-vpn","owner":"base2Services","description":"Manages the resources required to create a client vpn in AWS","archived":false,"fork":false,"pushed_at":"2019-06-21T06:05:26.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-01T03:13:25.761Z","etag":null,"topics":["aws","aws-client-vpn","client-vpn","openvpn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/base2Services.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-06-18T11:04:13.000Z","updated_at":"2024-05-04T08:46:35.000Z","dependencies_parsed_at":"2022-09-13T10:50:23.411Z","dependency_job_id":null,"html_url":"https://github.com/base2Services/aws-client-vpn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Faws-client-vpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Faws-client-vpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Faws-client-vpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base2Services%2Faws-client-vpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base2Services","download_url":"https://codeload.github.com/base2Services/aws-client-vpn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228476047,"owners_count":17926134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","aws-client-vpn","client-vpn","openvpn"],"created_at":"2024-12-06T14:09:42.145Z","updated_at":"2024-12-06T14:09:42.805Z","avatar_url":"https://github.com/base2Services.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-client-vpn\n\n## Requirements\n\n- python 3\n- boto3\n- docker\n\n## Scripts\n\n### client-vpn.py\n\n- generate the certicates using OpenVPN easy-rsa in the output directory\n- uploads the certificates to ACM and tags them\n- creates the vpn endpoint required resources using cloudformation\n\n```bash\nusage: client-vpn.py [-h] [--verbose] --server-cn SERVER_CN\n                     [--client-cn CLIENT_CN] --name NAME --subnet-id SUBNET_ID\n                     [--cidr CIDR]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --verbose             increase output verbosity\n  --server-cn SERVER_CN\n                        common name for the server certificate\n  --client-cn CLIENT_CN\n                        common name for the server certificate\n  --name NAME           stack and environment name the vpn\n  --subnet-id SUBNET_ID\n                        SubnetId to which the vpn will assocate with\n  --cidr CIDR           CIDR the vpn will give to the clients\n```\n\n### get-vpn-config.py\n\n- gets the id of the client vpn endpoint\n- downloads the client config file into the output directory\n- alters the hostname in the config with a random string\n\n```bash\nusage: get-vpn-config.py [-h] [--verbose] --name NAME [--region REGION]\n\noptional arguments:\n  -h, --help       show this help message and exit\n  --verbose        increase output verbosity\n  --name NAME      stack and environment name the vpn\n  --region REGION  aws region the vpn exists\n```\n\n## Setup\n\n1. Clone the repo\n\n2. Get the id of the subnet you wish to associate the vpn with\n\n3. Run the `client-vpn.py` script with the following required options\n\n  ```bash\n  ./client-vpn.py --server-cn=vpn.domain.tld --name ciinabox --subnet-id ${SubnetId}\n  ```\n\n4. Run the `get-vpn-config.py` script to download the config file\n\n5. copy the config file and the client certificate and key to a local secure directory\n\n6. modify the config paths for the `cert` and `key`\n\n7. open the config in your favourite vpn client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase2services%2Faws-client-vpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase2services%2Faws-client-vpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase2services%2Faws-client-vpn/lists"}