{"id":18836274,"url":"https://github.com/reneluria/tupeuxpasvpn","last_synced_at":"2026-05-01T06:33:30.231Z","repository":{"id":46805749,"uuid":"180243696","full_name":"reneluria/tupeuxpasvpn","owner":"reneluria","description":"on demand vpn endpoint using ansible, amazon and sshuttle","archived":false,"fork":false,"pushed_at":"2023-02-08T01:16:37.000Z","size":64,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T18:34:34.300Z","etag":null,"topics":["ansible","ssh","sshuttle","tupeuxpastest","vpn"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reneluria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"patreon":"reneluria"}},"created_at":"2019-04-08T22:41:07.000Z","updated_at":"2022-10-13T02:21:32.000Z","dependencies_parsed_at":"2025-05-22T18:44:53.185Z","dependency_job_id":null,"html_url":"https://github.com/reneluria/tupeuxpasvpn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reneluria/tupeuxpasvpn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneluria%2Ftupeuxpasvpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneluria%2Ftupeuxpasvpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneluria%2Ftupeuxpasvpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneluria%2Ftupeuxpasvpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneluria","download_url":"https://codeload.github.com/reneluria/tupeuxpasvpn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneluria%2Ftupeuxpasvpn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible","ssh","sshuttle","tupeuxpastest","vpn"],"created_at":"2024-11-08T02:21:11.297Z","updated_at":"2026-05-01T06:33:30.215Z","avatar_url":"https://github.com/reneluria.png","language":"Shell","funding_links":["https://patreon.com/reneluria"],"categories":[],"sub_categories":[],"readme":"TuPeuxPasVPN\n============\n\nOn-demand ansible provided VPN endpoint, using aws ec2 and sshuttle\n\nDependencies\n------------\n\n* ansible https://docs.ansible.com/\n* boto https://pypi.org/project/boto/\n* ssh \n* sshuttle https://github.com/sshuttle/sshuttle\n\nInstallation\n------------\n\nNothing to install if deps are already met.\n\nOtherwise:\n\n```\npipenv shell\n```\n\nor\n\n```\npython3 -m venv venv\n. venv/bin/activate\npython3 -m pip install -U pip wheel\npython3 -m pip install -r requirements.txt\n```\n\nUsage\n-----\n\nTo create an ssh endpoint in London:\n\n```\nSSH_AUTH_SOCK= ansible-playbook create-instance.yml -e 'region=eu-west-2'\n```\n\nIt creates a vm in the given ec2 region and adds it to inventory.\n\nIt also creates a helper script in `artifacts` folder.\n\nLaunch VPN like this:\n\n```\n./artifacts/start-vpn.sh\n```\n\nAnd in another terminal you can check where you apparently are:\n\n```\n$ curl ipinfo.io\n{\n  \"ip\": \"3.8.174.42\",\n  \"hostname\": \"ec2-3-8-174-42.eu-west-2.compute.amazonaws.com\",\n  \"city\": \"London\",\n  \"region\": \"London, City of\",\n  \"country\": \"GB\",\n  \"loc\": \"51.5115,-0.0912\",\n  \"postal\": \"EC4R\",\n  \"org\": \"AS16509 Amazon.com, Inc.\"\n}\n```\n\nAnd remove this instance when you're done:\n\n```\nansible-playbook delete-instance.yml -e 'region=eu-west-2'\n```\n\nNotes\n-----\n\n* This recipe generates a ssh keypair for this purpose\n\n* The VM is created with a security group allowing only your public ip to connect to it\n\n* You need to set your aws cli config or EC2_ACCESS_KEY and EC2_SECRET_KEY variables\n\n* Feel free to adapt the template of the vpn script to make it less verbose and daemonize for example\n\nAuthor\n------\n\nRene Luria","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneluria%2Ftupeuxpasvpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneluria%2Ftupeuxpasvpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneluria%2Ftupeuxpasvpn/lists"}