From 0fb1c8f69ed7f7c3476d71bc7b8e5801c1d94682 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 30 May 2019 19:39:48 +0800 Subject: [PATCH] add n2n --- README.md | 1 + n2n/Dockerfile | 20 ++++++++++++++++++++ n2n/README.md | 8 ++++++++ n2n/docker-compose.yml | 6 ++++++ 4 files changed, 35 insertions(+) create mode 100644 n2n/Dockerfile create mode 100644 n2n/README.md create mode 100644 n2n/docker-compose.yml diff --git a/README.md b/README.md index 0c6d5c6..803047c 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,7 @@ A collection of delicious docker recipes. ## VPN +- [x] n2n :+1: - [x] ocserv :+1: - [x] openconnect - [x] openconnect-arm diff --git a/n2n/Dockerfile b/n2n/Dockerfile new file mode 100644 index 0000000..45d0a35 --- /dev/null +++ b/n2n/Dockerfile @@ -0,0 +1,20 @@ +# +# Dockerfile for n2n +# + +FROM debian:stretch +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apt update \ + && apt install -y gnupg lsb-release wget \ + && wget http://apt.ntop.org/stretch/all/apt-ntop.deb \ + && dpkg -i apt-ntop.deb \ + && apt update \ + && apt install -y n2n \ + && rm -rf apt-ntop.deb /var/lib/apt/lists/* + +EXPOSE 5645/udp # management +EXPOSE 7654/udp # main + +ENTRYPOINT ["supernode"] diff --git a/n2n/README.md b/n2n/README.md new file mode 100644 index 0000000..82c2601 --- /dev/null +++ b/n2n/README.md @@ -0,0 +1,8 @@ +n2n +=== + +[n2n][1] is a layer-two peer-to-peer virtual private network (VPN) which allows +users to exploit features typical of P2P applications at network instead of +application level. + +[1]: https://www.ntop.org/products/n2n/ diff --git a/n2n/docker-compose.yml b/n2n/docker-compose.yml new file mode 100644 index 0000000..555e778 --- /dev/null +++ b/n2n/docker-compose.yml @@ -0,0 +1,6 @@ +n2n: + image: vimagick/n2n + ports: + - "5645:5645/udp" + - "7654:7654/udp" + restart: unless-stopped