Coder Social home page Coder Social logo

johnathanfl / alpine-l2tp-vpn-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuamin/alpine-l2tp-vpn-client

0.0 0.0 0.0 11 KB

An Alpine based docker image to setup an L2TP over IPsec VPN client w/ PSK (and optionally Socks5) within the container.

License: MIT License

Shell 84.79% Dockerfile 15.21%

alpine-l2tp-vpn-client's Introduction

alpine-l2tp-vpn-client

Docker Cloud Automated build Docker Cloud Build Status GitHub

An Alpine based docker image to setup an L2TP over IPsec VPN client w/ PSK (and optionally Socks5) within the container.

Run

Setup environment variables for your credentials and config:

export VPN_SERVER='YOUR VPN SERVER IP OR FQDN'
export VPN_PSK='my pre shared key'
export VPN_USERNAME='[email protected]'
export VPN_PASSWORD='mypass'
export SCOKS5_ENABLE=0

Now run it (you can daemonize of course after debugging):

docker run --rm -it --privileged \
           -e VPN_SERVER \
           -e VPN_PSK \
           -e VPN_USERNAME \
           -e VPN_PASSWORD \
              wuamin/alpine-l2tp-vpn-client

You can use .env file:

source .env;docker run --rm -it --privileged --env-file .env -p ${SCOKS5_PORT}:1080 wuamin/alpine-l2tp-vpn-client

Socks5

If 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.

export SCOKS5_ENABLE=0
export SCOKS5_PORT=1080
docker run --rm -it --privileged \
           -e VPN_SERVER \
           -e VPN_PSK \
           -e VPN_USERNAME \
           -e VPN_PASSWORD \
           -e SCOKS5_ENABLE \
           -p ${SCOKS5_PORT}:1080 \
              wuamin/alpine-l2tp-vpn-client

Debugging

On your VPN client localhost machine you may need to sudo modprobe af_key if you're getting this error when starting:

pluto[17]: No XFRM/NETKEY kernel interface detected
pluto[17]: seccomp security for crypto helper not supported

This project is forked from l2tp-ipsec-vpn-client

alpine-l2tp-vpn-client's People

Contributors

wuamin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.