1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/dsvpn/README.md

47 lines
675 B
Markdown
Raw Normal View History

2019-12-12 14:19:46 +02:00
dsvpn
=====
[DSVPN][1] is a Dead Simple VPN
2019-12-13 04:42:27 +02:00
![][2]
2019-12-12 14:19:46 +02:00
docker-compose.yml
------------------
```yaml
2021-10-22 10:25:34 +02:00
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
2019-12-12 14:19:46 +02:00
```
server
------
```bash
$ mkdir -p data
$ dd if=/dev/urandom of=data/vpn.key count=1 bs=32
$ docker-compose up -d
$ docker-compose logs -f
```
client
------
```bash
2021-10-22 10:25:34 +02:00
$ sudo dsvpn vpn.key 1.2.3.4 443
2019-12-12 14:19:46 +02:00
$ ifconfig tun0
$ ping 192.168.192.254
```
[1]: https://github.com/jedisct1/dsvpn
2019-12-13 04:42:27 +02:00
[2]: https://github.com/jedisct1/dsvpn/raw/master/logo.png