Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
/ openvpn-dockerfile Public archive

Dockerfile for OpenVPN server on Alpine Linux

Notifications You must be signed in to change notification settings

grffio/openvpn-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openvpn-dockerfile

Dockerfile for OpenVPN server on Alpine Linux

Features

  • Automatic creation of a configuration file
  • Support ECDSA and AES-GCM

Build

$ docker build -t grffio/openvpn .
  • Supported Args: OPENVPN_VER=, EASYRSA_VER=

Quick Start

$ docker run --name openvpn -d -p 1194:1194/tcp                     \
             -v /dir-to-cert:/etc/openvpn/certs --cap-add=NET_ADMIN \
             grffio/openvpn
  • Supported Environment variables:

    • OVPN_PROTO - Protocol to use when connecting with the remote, tcp or udp (default: tcp)
    • OVPN_NETWORK - The network that will be used the VPN, subnet 255.255.255.0 (default: 10.36.54.0)
    • OVPN_MAXCL - Limit the number of concurrent clients (default: 2)
    • OVPN_SERVERCN - The CN that will be used to generate the certificate (default: example.com)
    • OVPN_DEBUG - The verbosity "9" of OpenVPN's logs (default: false)
  • Exposed Ports:

    • 1194/tcp 1194/udp

Client configuration will be available in logs.

An example how to use with docker-compose shadownet-compose

About

Dockerfile for OpenVPN server on Alpine Linux

Resources

Stars

Watchers

Forks

Packages

No packages published