Sign inSign up

clover/openvpn

By clover

Updated 4 months ago

Image
0

1.0K

clover/openvpn repository overview

OpenVPN docker image

openvpn is an application to securely tunnel IP networks over a single UDP or TCP port. OpenVPN uses all of the encryption, authentication, and certification features provided by the OpenSSL library (any cipher, key size, or HMAC digest).

This image is based on openvpn builds for debian and it is built on top of the clover/common.

Enviroment variables
NameDefault valueDescription
PUID50Desired UID of the process owner *
PGIDprimary group id of the UID user (50)Desired GID of the process owner *
CRONnot setWill start cron inside the container if set to 1
TIMEZONEUTCDesired container timezone
Exposed ports
PortDescription
1194Default OpenVPN TCP and UDP port
Configuration files
LocationDescription
/etc/openvpnn/config.ovpnMain openvpn configuration file (symlink to server.ovpn)
/etc/openvpnn/server.ovpnExample of openvpn server configuration
/etc/openvpnn/client.ovpnExample of openvpn client configuration
/etc/openvpnn/certificatesSample openvpn certificates and keys (don't use)
Supported platforms
  • linux/amd64;
  • linux/386;
  • linux/arm/v7;
  • linux/arm64/v8;
  • linux/ppc64le;
  • linux/s390x;
CA certificate generation example
openssl genpkey -algorithm RSA -out ca.key
openssl req -x509 -new -key ca.key -out ca.crt -days 3650 -subj "/CN=ca"
Server certificate generation example
openssl genpkey -algorithm RSA -out server.key
openssl req -new -key server.key -out server.csr -subj "/CN=server"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 3650
Client certificate generation example
openssl genpkey -algorithm RSA -out client.key
openssl req -new -key client.key -out client.csr -subj "/CN=client"
openssl x509 -req -in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out client.crt -days 3650
TLS control channel key generation
openvpn --genkey secret ta.key
Running with docker
docker run -it --rm -eTERM --device=/dev/net/tun --cap-add=NET_ADMIN clover/openvpn
Running with compose
services:
    vpn:
        image: "clover/openvpn"
        cap_add:
            - "NET_ADMIN"
        devices:
            - "/dev/net/tun"

Tag summary

Content type

Image

Digest

sha256:96c4ea0f7

Size

16.8 MB

Last updated

4 months ago

docker pull clover/openvpn