Commit 457b5df8 authored by Tommy Lau's avatar Tommy Lau

Update readme with UDP enable

parent faf4bfe5
......@@ -17,7 +17,7 @@ docker pull tommylau/ocserv
Start an ocserv instance:
```bash
docker run --name ocserv --privileged -p 443:443 -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d tommylau/ocserv
```
This will start an instance with the a test user named `test` and password is also `test`.
......@@ -56,31 +56,31 @@ The default values of the above environment variables:
Start an instance out of the box with username `test` and password `test`
```bash
docker run --name ocserv --privileged -p 443:443 -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -d tommylau/ocserv
```
Start an instance with server name `my.test.com`, `My Test` and `365` days
```bash
docker run --name ocserv --privileged -p 443:443 -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -d tommylau/ocserv
```
Start an instance with CA name `My CA`, `My Corp` and `3650` days
```bash
docker run --name ocserv --privileged -p 443:443 -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -d tommylau/ocserv
```
A totally customized instance with both CA and server certification
```bash
docker run --name ocserv --privileged -p 443:443 -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -d tommylau/ocserv
```
Start an instance as above but without test user
```bash
docker run --name ocserv --privileged -p 443:443 -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -e NO_TEST_USER=1 -v /some/path/to/ocpasswd:/etc/ocserv/ocpasswd -d tommylau/ocserv
docker run --name ocserv --privileged -p 443:443 -p 443:443/udp -e CA_CN="My CA" -e CA_ORG="My Corp" -e CA_DAYS=3650 -e SRV_CN=my.test.com -e SRV_ORG="My Test" -e SRV_DAYS=365 -e NO_TEST_USER=1 -v /some/path/to/ocpasswd:/etc/ocserv/ocpasswd -d tommylau/ocserv
```
**WARNING:** The ocserv requires the ocpasswd file to start, if `NO_TEST_USER=1` is provided, there will be no ocpasswd created, which will stop the container immediately after start it. You must specific a ocpasswd file pointed to `/etc/ocserv/ocpasswd` by using the volume argument `-v` by docker as demonstrated above.
......
......@@ -92,6 +92,7 @@ instagramstatic-a.akamaihd.net
igcdn-photos-h-a.akamaihd.net
92.122.190.32
instagramimages-a.akamaihd.net
scontent-a.cdninstagram.com
# TuneIn
api.tunein.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment