1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/ocserv/README.md

36 lines
694 B
Markdown
Raw Normal View History

2016-06-28 22:35:26 +02:00
ocserv
======
[OpenConnect server][1] (ocserv) is an SSL VPN server. Its purpose is to be a
secure, small, fast and configurable VPN server.
## docker-compose.yml
```yaml
ocserv:
image: vimagick/ocserv
ports:
- "4443:443/tcp"
- "4443:443/udp"
environment:
- VPN_DOMAIN=vpn.easypi.info
- VPN_NETWORK=10.20.30.0
- VPN_NETMASK=255.255.255.0
- VPN_USERNAME=username
- VPN_PASSWORD=password
cap_add:
- NET_ADMIN
restart: always
```
2016-06-29 10:30:45 +02:00
> :warning: Please choose a strong password to protect VPN service.
## up and running
```bash
$ docker-compose up -d
$ docker cp ocserv_ocserv_1:/etc/ocserv/certs/client.p12 .
```
2016-06-28 22:35:26 +02:00
[1]: http://www.infradead.org/ocserv/