{"id":22397113,"url":"https://github.com/archef2000/pivpn-docker","last_synced_at":"2025-07-31T12:31:40.116Z","repository":{"id":38947465,"uuid":"444942912","full_name":"archef2000/pivpn-docker","owner":"archef2000","description":"pivpn docker container ","archived":false,"fork":false,"pushed_at":"2024-05-18T20:11:29.000Z","size":534,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T20:37:49.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/archef2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-01-05T20:35:54.000Z","updated_at":"2024-05-19T20:37:49.560Z","dependencies_parsed_at":"2024-05-18T20:33:59.118Z","dependency_job_id":"0cb4ac0c-ba8c-4fe0-be16-a94d54bbaa62","html_url":"https://github.com/archef2000/pivpn-docker","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/archef2000%2Fpivpn-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archef2000%2Fpivpn-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archef2000%2Fpivpn-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archef2000%2Fpivpn-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archef2000","download_url":"https://codeload.github.com/archef2000/pivpn-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228242556,"owners_count":17890481,"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":[],"created_at":"2024-12-05T06:10:54.268Z","updated_at":"2024-12-05T06:10:54.681Z","avatar_url":"https://github.com/archef2000.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pivpn for docker\n\u003ca href=\"https://hub.docker.com/repository/docker/archef2000/pivpn\"\u003eDocker Container\u003c/a\u003e for \u003ca href=\"https://github.com/pivpn/pivpn\"\u003ePIVPN\u003c/a\u003e\n\n\n[![Docker PIVPN](https://github.com/Archef2000/pivpn-docker/actions/workflows/main.yml/badge.svg)](https://github.com/Archef2000/pivpn-docker/actions/workflows/main.yml)\n\nRun \"reconf\" to reinstall pivpn and use new Variables\n\nFirst instalation takes about 1-5 min depending on your Internet connection\n\nprivileged is needed for openvpn\n\nnet_admin is needed for wireguard\n\nDocker Container for \u003ca href=\"https://github.com/pivpn/pivpn\"\u003ePIVPN\u003c/a\u003e\n\n\u003ca href=\"https://github.com/Archef2000/pivpn-docker/\"\u003eGithub\u003c/a\u003e\n\nFollowing errors are known and solved in other ways but still shown\n```sh\nFailed to connect to bus: No such file or directory\n```\n```sh\n./easyrsa: 341: set: Illegal option -o echo\n```\n\n## docker-compose\n## Openvpn\n```yaml\nversion: '3'\nservices:\n  openvpn:\n    image: archef2000/pivpn:latest\n    container_name: pivpn\n    hostname: pivpn\n    ports:\n      - 1194:1194/udp\n    volumes:\n      - ./openvpn/ovpns:/home/pivpn/ovpns\n      - ./openvpn/openvpn:/etc/openvpn\n    environment:\n      - HOST=example.com\n      - PROTO=udp # or tcp\n      - VPN=openvpn\n      - PORT=1194\n# optional\n      - CLIENT_NAME=pivpn\n      - NET=10.8.0.0\n      - TWO_POINT_FOUR=1 # or 0 If TWO_POINT_FOUR=0 then ENCRYPT needs to be 2048, 3072, or 4096\n      - DNS1=1.1.1.1 # Client DNS\n      - DNS2=9.9.9.9 # Client DNS\n      - ENCRYPT=256 # 256, 384, or 521 if TWO_POINT_FOUR=0 then ENCRYPT needs to be 2048, 3072, or 4096\n    privileged: true # Is needed to run Openvpn\n    restart: always\n```\n## Wireguard\n```yaml\nversion: '3'\nservices:\n  wireguard:\n    image: archef2000/pivpn:latest\n    container_name: pivpn\n    hostname: pivpn\n    ports:\n      - 51820:51820/udp\n    volumes:\n      - ./wireguard/configs:/home/pivpn/configs\n      - ./wireguard/wireguard:/etc/wireguard\n    environment:\n      - HOST=example.com\n      - VPN=wireguard\n      - PORT=51820\n# optional\n      - CLIENT_NAME=pivpn\n      - NET=10.8.0.0\n      - DNS1=1.1.1.1 # Client DNS\n      - DNS2=9.9.9.9 # Client DNS\n    cap_add:\n      - NET_ADMIN\n      - SYS_MODULE\n    restart: always\n```\n## Docker Run\n```bash\ndocker run -d --privileged \\\n-v ./openvpn/openvpn:/etc/openvpn -v ./openvpn/pivpn:/etc/pivpn/openvpn -v ./openvpn/ovpns:/home/pivpn/ovpns \\\n-p 1194:194/udp archef2000/pivpn:latest\n```\n\n## Environment Variables:\n```\npivpnHOST=example.com\npivpnPROTO=udp\npivpnPORT=1194\nVPN=openvpn #/wireguard\n# optional\npivpnDNS1=8.8.8.8\npivpnDNS2=8.8.4.4\npivpnSEARCHDOMAIN=\nTWO_POINT_FOUR=1\npivpnENCRYPT=256, 384, 521 or 2048, 3072, 4096\nUSE_PREDEFINED_DH_PARAM=1\npivpnNET=10.8.0.0\nsubnetClass=24\n```\n\n## Volumes:\n\n```\n./pivpn/openvpn:/etc/openvpn        # OPENVPN Server Config\n./pivpn/wireguard:/etc/wireguard    # If Wireguard\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchef2000%2Fpivpn-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchef2000%2Fpivpn-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchef2000%2Fpivpn-docker/lists"}