{"id":14155265,"url":"https://github.com/WUAmin/alpine-l2tp-vpn-client","last_synced_at":"2025-08-06T01:30:53.760Z","repository":{"id":218005892,"uuid":"287379661","full_name":"WUAmin/alpine-l2tp-vpn-client","owner":"WUAmin","description":"An Alpine based docker image to setup an L2TP over IPsec VPN client w/ PSK (and optionally Socks5) within the container.","archived":false,"fork":false,"pushed_at":"2020-08-14T16:18:21.000Z","size":11,"stargazers_count":19,"open_issues_count":1,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-17T08:05:00.759Z","etag":null,"topics":["dante-server","docker","docker-container","dockerfile","l2tp","proxy","socks5","vpn","vpn-client","xl2tpd"],"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/WUAmin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-13T21:04:41.000Z","updated_at":"2024-08-17T08:05:01.320Z","dependencies_parsed_at":null,"dependency_job_id":"2155ba9b-9861-4bc6-a703-124d6f65cbfd","html_url":"https://github.com/WUAmin/alpine-l2tp-vpn-client","commit_stats":null,"previous_names":["wuamin/alpine-l2tp-vpn-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WUAmin%2Falpine-l2tp-vpn-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WUAmin%2Falpine-l2tp-vpn-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WUAmin%2Falpine-l2tp-vpn-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WUAmin%2Falpine-l2tp-vpn-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WUAmin","download_url":"https://codeload.github.com/WUAmin/alpine-l2tp-vpn-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228821401,"owners_count":17977166,"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":["dante-server","docker","docker-container","dockerfile","l2tp","proxy","socks5","vpn","vpn-client","xl2tpd"],"created_at":"2024-08-17T08:02:36.374Z","updated_at":"2024-12-09T02:31:14.635Z","avatar_url":"https://github.com/WUAmin.png","language":"Shell","funding_links":[],"categories":["vpn"],"sub_categories":[],"readme":"alpine-l2tp-vpn-client\n---\n![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/wuamin/alpine-l2tp-vpn-client)\n![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/wuamin/alpine-l2tp-vpn-client)\n[![](https://images.microbadger.com/badges/image/wuamin/alpine-l2tp-vpn-client.svg)](https://microbadger.com/images/wuamin/alpine-l2tp-vpn-client \"Get your own image badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/version/wuamin/alpine-l2tp-vpn-client.svg)](https://microbadger.com/images/wuamin/alpine-l2tp-vpn-client \"Get your own version badge on microbadger.com\")\n![GitHub](https://img.shields.io/github/license/wuamin/alpine-l2tp-vpn-client)\n\n\nAn Alpine based docker image to setup an L2TP over IPsec VPN client w/ PSK (and optionally Socks5) within the container.\n\n\n## Run\nSetup environment variables for your credentials and config:\n\n```bash\nexport VPN_SERVER='YOUR VPN SERVER IP OR FQDN'\nexport VPN_PSK='my pre shared key'\nexport VPN_USERNAME='myuser@myhost.com'\nexport VPN_PASSWORD='mypass'\nexport SCOKS5_ENABLE=0\n```\nNow run it (you can daemonize of course after debugging):\n```bash\ndocker run --rm -it --privileged \\\n           -e VPN_SERVER \\\n           -e VPN_PSK \\\n           -e VPN_USERNAME \\\n           -e VPN_PASSWORD \\\n              wuamin/alpine-l2tp-vpn-client\n```\nYou can use `.env` file:\n```bash\nsource .env;docker run --rm -it --privileged --env-file .env -p ${SCOKS5_PORT}:1080 wuamin/alpine-l2tp-vpn-client\n```\n\n## Socks5\nIf you set `SCOKS5_ENABLE` to `1` (default value is `0`), the container will run `dante` at startup to provide a socks5 proxy (via VPN). Don not forget to expose port 1080.\n```bash\nexport SCOKS5_ENABLE=0\nexport SCOKS5_PORT=1080\ndocker run --rm -it --privileged \\\n           -e VPN_SERVER \\\n           -e VPN_PSK \\\n           -e VPN_USERNAME \\\n           -e VPN_PASSWORD \\\n           -e SCOKS5_ENABLE \\\n           -p ${SCOKS5_PORT}:1080 \\\n              wuamin/alpine-l2tp-vpn-client\n```\n\n\n## Debugging\nOn your VPN client localhost machine you may need to `sudo modprobe af_key`\nif you're getting this error when starting:\n```\npluto[17]: No XFRM/NETKEY kernel interface detected\npluto[17]: seccomp security for crypto helper not supported\n```\n\n\n---\n\nThis project is forked from [l2tp-ipsec-vpn-client](https://github.com/ubergarm/l2tp-ipsec-vpn-client)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWUAmin%2Falpine-l2tp-vpn-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWUAmin%2Falpine-l2tp-vpn-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWUAmin%2Falpine-l2tp-vpn-client/lists"}