{"id":13550459,"url":"https://github.com/PHLAK/docker-openvpn","last_synced_at":"2025-04-03T00:33:59.186Z","repository":{"id":3333285,"uuid":"48980262","full_name":"PHLAK/docker-openvpn","owner":"PHLAK","description":"Docker image for OpenVPN client/server.","archived":false,"fork":false,"pushed_at":"2023-04-01T19:56:42.000Z","size":53,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T12:37:38.320Z","etag":null,"topics":["alpine-linux","docker","docker-image","openvpn","vpn","vpn-client","vpn-server"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/phlak/openvpn/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHLAK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"PHLAK","patreon":"PHLAK","custom":"https://paypal.me/ChrisKankiewicz"}},"created_at":"2016-01-04T07:00:20.000Z","updated_at":"2024-04-07T18:51:22.000Z","dependencies_parsed_at":"2023-02-17T09:46:12.647Z","dependency_job_id":null,"html_url":"https://github.com/PHLAK/docker-openvpn","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-openvpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-openvpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-openvpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-openvpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHLAK","download_url":"https://codeload.github.com/PHLAK/docker-openvpn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916733,"owners_count":20854511,"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":["alpine-linux","docker","docker-image","openvpn","vpn","vpn-client","vpn-server"],"created_at":"2024-08-01T12:01:33.360Z","updated_at":"2025-04-03T00:33:58.679Z","avatar_url":"https://github.com/PHLAK.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/PHLAK","https://patreon.com/PHLAK","https://paypal.me/ChrisKankiewicz"],"categories":["Dockerfile","docker"],"sub_categories":[],"readme":"docker-openvpn\n==============\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/PHLAK/docker-openvpn/discussions\"\u003e\u003cimg src=\"https://img.shields.io/badge/Join_the-Community-7b16ff.svg?style=for-the-badge\" alt=\"Join the Community\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/users/PHLAK/sponsorship\"\u003e\u003cimg src=\"https://img.shields.io/badge/Become_a-Sponsor-cc4195.svg?style=for-the-badge\" alt=\"Become a Sponsor\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://paypal.me/ChrisKankiewicz\"\u003e\u003cimg src=\"https://img.shields.io/badge/Make_a-Donation-006bb6.svg?style=for-the-badge\" alt=\"One-time Donation\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://hub.docker.com/repository/docker/phlak/openvpn/tags\"\u003e\u003cimg alt=\"Docker Image Version\" src=\"https://img.shields.io/docker/v/phlak/openvpn?style=flat-square\u0026sort=semver\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/repository/docker/phlak/openvpn\"\u003e\u003cimg alt=\"Docker Pulls\" src=\"https://img.shields.io/docker/pulls/phlak/openvpn?style=flat-square\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/PHLAK/docker-openvpn/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/PHLAK/docker-openvpn?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/repository/docker/phlak/openvpn/builds\"\u003e\u003cimg alt=\"Docker Cloud Build Status\" src=\"https://img.shields.io/docker/cloud/build/phlak/openvpn?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    Docker image for \u003ca href=\"https://openvpn.net\"\u003eOpenVPN\u003c/a\u003e client/server.\n\u003c/p\u003e\n\n---\n\nThis container can run as an OpenVPN server or as an OpenVPN client and provide a VPN tunnel for\nother containers to utilize via Docker's shared networking stack (i.e. `--net container:[NAME]`).\n\nRunning the Container\n---------------------\n\nPlace your OpenVPN client/server configuration file in a directory on your host file system\n(i.e. `/srv/openvpn`) with the name `openvpn.conf`. You should also place your client/server certs,\nkeys and any additional files required in this directory.\n\n\n#### Running as an OpenVPN server\n\nRun the OpenVPN container and map your local config directory (`/srv/openvpn`) to the container\nconfig directory (`/vol/config`) and map ports to your host OS:\n\n    docker run -d -v /srv/openvpn:/vol/config -p 443:443 -p 943:943 -p 1194:1194/udp --privileged --name openvpn-server phlak/openvpn --server [NETWORK] [NETMASK]\n\n\n#### Running as an OpenVPN client\n\nRun the OpenVPN container and map your local config directory (`/srv/openvpn`) to the container\nconfig directory (`/vol/config`):\n\n    docker run -d -v /srv/openvpn:/vol/config --privileged --name openvpn-client phlak/openvpn\n\nNow you can start up another container with a shared network stack to the OpenVPN container:\n\n    docker run -d --net container:openvpn-client --name container-name alpine\n\nThis container will now be reliant on the OpenVPN container's network stack for network access.\n\n\n#### Optional 'docker run' Arguments\n\n`-p 1234:1234` - Map a port on the host OS to the OpenVPN container. When running as a client this\n                 will pass ports through to containers that share the OpenVPN container's network\n                 stack (i.e. When ran with the `--net container:openvpn-client` parameter).\n\n`--restart always` - Always restart the container regardless of the exit status. See the Docker\n                     [restart policies](https://goo.gl/OI87rA) for additional details.\n\n\nTroubleshooting\n---------------\n\nWhen running a client container, if you are having trouble making a connection and `docker logs`\nshows `Initialization Sequence Completed` without indicatiing any problems try manually setting your\ncontainer's DNS servers by adding `--dns 1.1.1.1 --dns 1.0.0.1` to your run command. Once your\ncontainer is running check you DNS name servers with:\n\n    docker exec transmission-vpn cat /etc/resolv.conf\n\nFor general help and support join our [GitHub Discussions](https://github.com/PHLAK/docker-openvpn/discussions) or reach out on [Twitter](https://twitter.com/PHLAK).\n\nPlease report bugs to the [GitHub Issue Tracker](https://github.com/PHLAK/docker-openvpn/issues).\n\n\nCopyright\n---------\n\nThis project is licensed under the [MIT License](https://github.com/PHLAK/docker-openvpn/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPHLAK%2Fdocker-openvpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPHLAK%2Fdocker-openvpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPHLAK%2Fdocker-openvpn/lists"}