A tiny Alpine based docker image to quickly setup an L2TP over IPsec (or not) VPN client.
forked from https://github.com/wolasss/l2tp-ipsec-vpn-client which fored from https://github.com/ubergarm/l2tp-ipsec-vpn-client
ex. export CUSTOM_ROUTE='192.168.42.0/24,10.10.0.0/16'
Main parameters which needed
export VPN_SERVER_IPV4='1.2.3.4'
export VPN_PSK='my pre shared key'
export VPN_USERNAME='[email protected]'
export VPN_PASSWORD='mypass'
docker run --rm -it --privileged --net=host \
-e VPN_SERVER_IPV4 \
-e VPN_PSK \
-e VPN_USERNAME \
-e VPN_PASSWORD \
jimorsm/l2tp-client
docker run --rm -it --cap-add=NET_ADMIN --device=/dev/ppp \
-e VPN_SERVER_IPV4 \
-e VPN_PSK \
-e VPN_USERNAME \
-e VPN_PASSWORD \
jimorsm/l2tp-client
CUSTOM_ROUTE
USEPEERDNS
DEBUG
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
Content type
Image
Digest
Size
13.5 MB
Last updated
about 5 years ago
docker pull jimorsm/l2tp-client