1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

update ocserv

This commit is contained in:
kev 2016-06-29 17:01:38 +08:00
parent eb1bcc0e5e
commit 8471ca5f8c

@ -1,6 +1,8 @@
ocserv
======
![](https://badge.imagelayers.io/vimagick/ocserv:latest.svg)
[OpenConnect server][1] (ocserv) is an SSL VPN server. Its purpose is to be a
secure, small, fast and configurable VPN server.
@ -23,13 +25,42 @@ ocserv:
restart: always
```
> :warning: Please choose a strong password to protect VPN service.
> - :warning: Please choose a strong password to protect VPN service.
> - These environment variables are used to generate config files/keys.
> - VPN accounts can be managed via [ocpasswd][2] command.
> - You can edit the config file [/etc/ocserv/ocserv.conf][3], then restart service.
## up and running
```bash
$ docker-compose up -d
$ docker-compose exec ocserv bash
>>> cd /etc/ocserv/
>>> ocpasswd -c /etc/ocserv/ocpasswd username
Enter password: ******
Re-enter password: ******
>>> exit
$ docker cp ocserv_ocserv_1:/etc/ocserv/certs/client.p12 .
$ docker-compose logs -f
```
## android client
There are two auth types:
- :-1: passwd: type everytime
- :+1: certificate: import once
```
AnyConnect ->
Connection ->
Add New VPN Connection... ->
Advanced Preferences... ->
Certificate ->
Import ->
File System
```
[1]: http://www.infradead.org/ocserv/
[2]: http://www.gnutls.org/manual/html_node/certtool-Invocation.html
[3]: http://www.infradead.org/ocserv/manual.html