OpenConnect (a VPN client) and OpenSSH. It allows users to connect to a specified VPN server
462
This Docker image sets up an Alpine-based container running OpenConnect (a VPN client) and OpenSSH. It allows users to connect to a specified VPN server and access the container via SSH.
VPN_SERVER: The VPN server address.VPN_USERNAME: The VPN username.VPN_PASSWORD: The VPN password.Run the Docker Container
To run the container, use the following command:
docker run -it -d --privileged -p 222:22 \
-e VPN_SERVER="vpn.example.com" \
-e VPN_USERNAME="user" \
-e VPN_PASSWORD="password" \
--name openconnect-vpn morgan404/openconnect-client
SSH into VPN network using the container as a proxy
+--------+ +----------------------+ +-------------+
| | | | | |
| User +-- SSH Proxy --> OpenConnect Container +-- VPN --> VPN Server |
| | | | | |
+--------+ +----------------------+ +-------------+
|
|
v
+-------------+
| |
| SSH Server |
| |
+-------------+
ssh -o "ProxyCommand=ssh -W %h:%p root@localhost -p 222" [email protected]
Removed -e VPN_SERVERCERT= Variable: The VPN_SERVERCERT environment variable is no longer required as it is now automatically obtained from VPN_SERVER.
docker run -e VPN_SERVER=example.com -e VPN_SERVERCERT="pin-sha256:Jyeq2EIRLeXSyb654qOFYSmZt/1YnMGgWi0mskRNJJo=" morgan404/openconnect-client:1.0
The source code for this project is available on GitHub/GitLab. If you're interested in building the image yourself, you can clone the repository and follow the instructions provided in the documentation.
Feel free to explore the code and contribute!
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:1eec090d0…
Size
13.2 MB
Last updated
about 2 years ago
docker pull morgan404/openconnect-client