mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add openconnect
This commit is contained in:
parent
b94a0b75e1
commit
eb308805e9
@ -83,8 +83,9 @@ A collection of delicious docker recipes.
|
||||
- [x] nullmailer
|
||||
- [x] nullmailer-arm
|
||||
- [x] obfsproxy
|
||||
- [x] ocserv
|
||||
- [x] ocserv :+1:
|
||||
- [x] opencart
|
||||
- [x] openconnect
|
||||
- [x] openrefine
|
||||
- [x] openvpn :+1:
|
||||
- [x] pdnsd
|
||||
|
1
openconnect/.gitignore
vendored
Normal file
1
openconnect/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.pem
|
16
openconnect/Dockerfile
Normal file
16
openconnect/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# Dockerfile for openconnect
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ openconnect \
|
||||
&& mkdir -p /etc/openconnect \
|
||||
&& touch /etc/openconnect/openconnect.conf
|
||||
|
||||
VOLUME /etc/openconnect
|
||||
|
||||
ENTRYPOINT ["openconnect", "--config=/etc/openconnect/openconnect.conf"]
|
||||
CMD ["--help"]
|
53
openconnect/README.md
Normal file
53
openconnect/README.md
Normal file
@ -0,0 +1,53 @@
|
||||
openconnect
|
||||
===========
|
||||
|
||||
![](https://badge.imagelayers.io/vimagick/openconnect:latest.svg)
|
||||
|
||||
[OpenConnect][1] is an SSL VPN client initially created to support Cisco's
|
||||
AnyConnect SSL VPN. It has since been ported to support the Juniper SSL VPN
|
||||
which is now known as Pulse Connect Secure.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
openconnect:
|
||||
image: vimagick/openconnect
|
||||
command: https://vpn.easypi.info:4443
|
||||
net: host
|
||||
volumes:
|
||||
- ./data:/etc/openconnect
|
||||
stop_signal: SIGINT
|
||||
privileged: yes
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```bash
|
||||
$ cd ~/fig/openconnect/
|
||||
$ tree
|
||||
.
|
||||
├── data/
|
||||
│ ├── certs/
|
||||
│ │ └── client.p12
|
||||
│ └── openconnect.conf
|
||||
├── docker-compose.yml
|
||||
├── Dockerfile
|
||||
└── README.md
|
||||
|
||||
$ cd ./data/certs/
|
||||
$ openssl pkcs12 -in client.p12 -nodes -cacerts -out ca-cert.pem
|
||||
$ openssl pkcs12 -in client.p12 -nodes -clcerts -out client-cert.pem
|
||||
$ openssl pkcs12 -in client.p12 -nodes -nocerts -out client-key.pem
|
||||
|
||||
$ docker-compose up -d
|
||||
$ docker-compose logs -f
|
||||
|
||||
$ ip link show
|
||||
$ ip addr show
|
||||
$ ip route show
|
||||
|
||||
$ curl ifconfig.co
|
||||
$ curl ifconfig.ovh
|
||||
$ curl ifconfig.me
|
||||
```
|
||||
[1]: http://www.infradead.org/openconnect/index.html
|
0
openconnect/data/certs/client.p12
Normal file
0
openconnect/data/certs/client.p12
Normal file
5
openconnect/data/openconnect.conf
Normal file
5
openconnect/data/openconnect.conf
Normal file
@ -0,0 +1,5 @@
|
||||
cafile=/etc/openconnect/certs/ca-cert.pem
|
||||
certificate=/etc/openconnect/certs/client-cert.pem
|
||||
sslkey=/etc/openconnect/certs/client-key.pem
|
||||
#user=username
|
||||
#key-password=password
|
8
openconnect/docker-compose.yml
Normal file
8
openconnect/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
openconnect:
|
||||
image: vimagick/openconnect
|
||||
command: https://vpn.easypi.info:4443
|
||||
net: host
|
||||
volumes:
|
||||
- ./data:/etc/openconnect
|
||||
stop_signal: SIGINT
|
||||
privileged: yes
|
Loading…
Reference in New Issue
Block a user