1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dsvpn/README.md
2019-12-12 20:19:46 +08:00

611 B

dsvpn

DSVPN is a Dead Simple VPN

docker-compose.yml

dsvpn:
  image: vimagick/dsvpn
  command: server vpn.key auto 1959
  ports:
    - "1959:1959"
  volumes:
    - ./data:/etc/dsvpn
  working_dir: /etc/dsvpn
  devices:
    - /dev/net/tun
  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