1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/openconnect
2021-04-06 15:55:21 +08:00
..
arm fix openconnect (FIX #44) 2021-04-06 15:55:21 +08:00
data add openconnect 2016-06-30 02:31:11 +08:00
.gitignore add openconnect 2016-06-30 02:31:11 +08:00
docker-compose.yml add pptp 2016-06-30 15:16:05 +08:00
Dockerfile fix openconnect (FIX #44) 2021-04-06 15:55:21 +08:00
README.md add openconnect 2016-06-30 02:31:11 +08:00

openconnect

OpenConnect 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

openconnect:
  image: vimagick/openconnect
  command: https://vpn.easypi.info:4443
  net: host
  volumes:
    - ./data:/etc/openconnect
  stop_signal: SIGINT
  privileged: yes

up and running

$ 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