{"id":19905623,"url":"https://github.com/ekristen/docker-openvpn-client","last_synced_at":"2025-10-05T11:26:56.695Z","repository":{"id":139003152,"uuid":"52833984","full_name":"ekristen/docker-openvpn-client","owner":"ekristen","description":"OpenVPN Client for Docker","archived":false,"fork":false,"pushed_at":"2020-06-29T22:04:02.000Z","size":2,"stargazers_count":42,"open_issues_count":8,"forks_count":40,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T07:47:07.348Z","etag":null,"topics":["docker","openvpn","openvpn-client"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekristen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-03-01T00:01:31.000Z","updated_at":"2024-11-15T20:15:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"13c9310e-c3c9-4c10-af33-e02f7a5505c8","html_url":"https://github.com/ekristen/docker-openvpn-client","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/ekristen%2Fdocker-openvpn-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-openvpn-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-openvpn-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekristen%2Fdocker-openvpn-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekristen","download_url":"https://codeload.github.com/ekristen/docker-openvpn-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234188176,"owners_count":18793195,"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":["docker","openvpn","openvpn-client"],"created_at":"2024-11-12T20:34:03.840Z","updated_at":"2025-09-26T02:31:34.440Z","avatar_url":"https://github.com/ekristen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker OpenVPN Client\n\nOriginal idea borrowed from https://github.com/dperson/openvpn-client\n\n1. You should add the generated openvpn client config to a directory, you can call it client.ovpn\n2. You should add the password for the private key in the `client.ovpn` to `client.pwd`\n3. Run the following, I recommend adding `--auth-nocache`\n\n```\ndocker run -d --name vpn-client \\\n  --cap-add=NET_ADMIN \\\n  --device /dev/net/tun \\\n  -v /path/with/vpn/configs:/vpn \\\n  ekristen/openvpn-client --config /vpn/client.conf --askpass /vpn/client.pwd --auth-nocache\n```\n\n### Route container traffic\n\nUse `--net=container:\u003ccontainer-id\u003e` -- routes available by the VPN client will be made available to the container.\n\n```\ndocker run -it --rm \\\n  --net=container:vpn-client\n  ubuntu /bin/bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fdocker-openvpn-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekristen%2Fdocker-openvpn-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekristen%2Fdocker-openvpn-client/lists"}