From 72d32f066cb76b668bfa2be5ff84368c6c4ff17a Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 15 Mar 2018 23:08:14 +0800 Subject: [PATCH] add xl2tpd --- README.md | 2 +- xl2tpd/README.md | 46 +++++++++++++++++++++++++++++++++++++++ xl2tpd/docker-compose.yml | 13 +++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 xl2tpd/README.md create mode 100644 xl2tpd/docker-compose.yml diff --git a/README.md b/README.md index 6677780..5e85433 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ A collection of delicious docker recipes. - [ ] ssf - [ ] tshark - [ ] youtube-upload -- [ ] xl2tpd ## IoT @@ -228,6 +227,7 @@ A collection of delicious docker recipes. - [x] strongswan :+1: - [x] tinc :+1: - [x] tinc-arm :+1: +- [x] xl2tpd ## DNS diff --git a/xl2tpd/README.md b/xl2tpd/README.md new file mode 100644 index 0000000..4418537 --- /dev/null +++ b/xl2tpd/README.md @@ -0,0 +1,46 @@ +xl2tpd +====== + +## docker-compose.yml + +```yaml +xl2tpd: + image: hwdsl2/ipsec-vpn-server + ports: + - "500:500" + - "4500:4500" + volumes: + - /lib/modules:/lib/modules:ro + environment: + - VPN_IPSEC_PSK=foobar + - VPN_USER=easypi + - VPN_PASSWORD=123456 + privileged: yes + restart: always +``` + +## up and running + +```bash +$ docker-compose up -d +$ docker-compose logs +Attaching to xl2tpd_xl2tpd_1 +xl2tpd_1 | +xl2tpd_1 | Trying to auto discover IP of this server... +xl2tpd_1 | +xl2tpd_1 | ================================================ +xl2tpd_1 | +xl2tpd_1 | IPsec VPN server is now ready for use! +xl2tpd_1 | +xl2tpd_1 | Connect to your new VPN with these details: +xl2tpd_1 | +xl2tpd_1 | Server IP: x.x.x.x +xl2tpd_1 | IPsec PSK: foobar +xl2tpd_1 | Username: easypi +xl2tpd_1 | Password: 123456 +xl2tpd_1 | +xl2tpd_1 | Write these down. You'll need them to connect! + +$ docker-compose exec xl2tpd ipsec status +$ docker-compose exec xl2tpd ipsec whack --trafficstatus +``` diff --git a/xl2tpd/docker-compose.yml b/xl2tpd/docker-compose.yml new file mode 100644 index 0000000..3bbee6d --- /dev/null +++ b/xl2tpd/docker-compose.yml @@ -0,0 +1,13 @@ +xl2tpd: + image: hwdsl2/ipsec-vpn-server + ports: + - "500:500" + - "4500:4500" + volumes: + - /lib/modules:/lib/modules:ro + environment: + - VPN_IPSEC_PSK=foobar + - VPN_USER=easypi + - VPN_PASSWORD=123456 + privileged: yes + restart: always