1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/dsvpn
2019-12-18 15:58:35 +08:00
..
docker-compose.yml update dsvpn 2019-12-13 12:51:43 +08:00
Dockerfile update dsvpn 2019-12-13 12:51:43 +08:00
README.md update nginx-sso 2019-12-18 15:58:35 +08:00

dsvpn

DSVPN is a Dead Simple VPN

docker-compose.yml

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

$ mkdir -p data
$ dd if=/dev/urandom of=data/vpn.key count=1 bs=32
$ docker-compose up -d
$ docker-compose logs -f

client

$ sudo dsvpn vpn.key 1.2.3.4 1959
$ ifconfig tun0
$ ping 192.168.192.254