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
|
|
|
|
dsvpn:
|
|
|
|
image: vimagick/dsvpn
|
2019-12-18 09:58:35 +02:00
|
|
|
command: server vpn.key auto 443
|
2019-12-12 14:19:46 +02:00
|
|
|
ports:
|
2019-12-18 09:58:35 +02:00
|
|
|
- "443:443"
|
2019-12-12 14:19:46 +02:00
|
|
|
volumes:
|
|
|
|
- ./data:/etc/dsvpn
|
2019-12-18 09:58:35 +02:00
|
|
|
tty: true
|
2019-12-12 14:19:46 +02:00
|
|
|
privileged: true
|
|
|
|
restart: unless-stopped
|
|
|
|
```
|
|
|
|
|
|
|
|
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
|
|
|
|
$ sudo dsvpn vpn.key 1.2.3.4 1959
|
|
|
|
$ 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
|