update dsvpn

This commit is contained in:
kev 2021-10-22 16:25:34 +08:00
parent 9f0a01423c
commit 0a586f067e
3 changed files with 27 additions and 23 deletions

View File

@ -1,4 +1,4 @@
FROM alpine AS builder
FROM alpine:3 AS builder
ENV DSVPN_VERSION=0.1.4
ENV DSVPN_URL=https://github.com/jedisct1/dsvpn/archive/${DSVPN_VERSION}.tar.gz
@ -13,7 +13,7 @@ RUN set -xe \
# Dockerfile for dsvpn
#
FROM alpine
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache iproute2

View File

@ -9,16 +9,18 @@ docker-compose.yml
------------------
```yaml
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 443
ports:
- "443:443"
volumes:
- ./data:/etc/dsvpn
tty: true
privileged: true
restart: unless-stopped
version: "3.8"
services:
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 443
ports:
- "443:443"
volumes:
- ./data:/etc/dsvpn
tty: true
privileged: true
restart: unless-stopped
```
server
@ -35,7 +37,7 @@ client
------
```bash
$ sudo dsvpn vpn.key 1.2.3.4 1959
$ sudo dsvpn vpn.key 1.2.3.4 443
$ ifconfig tun0
$ ping 192.168.192.254
```

View File

@ -1,10 +1,12 @@
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 443
ports:
- "443:443"
volumes:
- ./data:/etc/dsvpn
tty: true
privileged: true
restart: unless-stopped
version: "3.8"
services:
dsvpn:
image: vimagick/dsvpn
command: server vpn.key auto 443
ports:
- "443:443"
volumes:
- ./data:/etc/dsvpn
tty: true
privileged: true
restart: unless-stopped