From e9d4751e21fc6e06c29e5066aeae1a95b01629c3 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sun, 9 Jun 2019 14:26:05 +0900 Subject: [PATCH] Update README.md Signed-off-by: Teddysun --- docker/l2tp/README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docker/l2tp/README.md b/docker/l2tp/README.md index 2ced3a2..cc9493e 100644 --- a/docker/l2tp/README.md +++ b/docker/l2tp/README.md @@ -47,22 +47,26 @@ VPN_DNS1= VPN_DNS2= ``` -This will create a default user account for L2TP/IPsec VPN login, which can be used by your **multiple devices**. +This will create a default user account for L2TP/IPsec VPN login, which can be used by your **multiple devices**. + The IPSec PSK (pre-shared key) is specified by the `VPN_IPSEC_PSK` environment variable. + The username is specified in `VPN_USER` environment variable. + and password is specified in `VPN_PASSWORD` environment variable. + If your VPS has multiple public IP addresses, maybe public IP need to specified in `VPN_PUBLIC_IP` environment variable. There is an example to start a container: ```bash -$ docker run -d --privileged -p 500:500/udp -p 4500:4500/udp --name l2tp --env-file /etc/l2tp.env -v /lib/modules:/lib/modules teddysun/l2tp +$ docker run -d --privileged -p 500:500/udp -p 4500:4500/udp --name l2tp --restart=always --env-file /etc/l2tp.env -v /lib/modules:/lib/modules teddysun/l2tp ``` or start a container with tag **alpine** ```bash -$ docker run -d --privileged -p 500:500/udp -p 4500:4500/udp --name l2tp --env-file /etc/l2tp.env -v /lib/modules:/lib/modules teddysun/l2tp:alpine +$ docker run -d --privileged -p 500:500/udp -p 4500:4500/udp --name l2tp --restart=always --env-file /etc/l2tp.env -v /lib/modules:/lib/modules teddysun/l2tp:alpine ``` **Note**: The UDP port number `500` and `4500` must be opened in firewall. @@ -132,6 +136,12 @@ $ docker exec -it l2tp l2tpctl -d $ docker exec -it l2tp l2tpctl -m ``` +### Print Libreswan & xl2tpd version + +```bash +$ docker exec -it l2tp l2tpctl -v +``` + ### Print help information ```bash