https://github.com/dleidert/docker-openvpn
OpenVPN Docker Container
https://github.com/dleidert/docker-openvpn
Last synced: 3 months ago
JSON representation
OpenVPN Docker Container
- Host: GitHub
- URL: https://github.com/dleidert/docker-openvpn
- Owner: dleidert
- License: unlicense
- Created: 2022-12-03T20:02:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T20:56:16.000Z (over 2 years ago)
- Last Synced: 2025-01-12T01:15:01.309Z (4 months ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/dleidert/docker-openvpn-server
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenVPN Docker Container
The aim of this project is to have a small Debian stable-based Docker container
providing an OpenVPN server with the same limitations and settings the
`[email protected]` uses.The container does not include a CA environment. The necessary CA is maintained
elsewhere. The configuration and the certificates and files, necessary to run
the server, are expected to be copied into the configuration directory via a
[bind mount ot named volume](docker-compose.yml#L15-L16).## Structure
The project's [`Dockerfile`](Dockerfile) contains the instructions to build the
image, while the [`docker-compose.yml`](docker-compose.yml) file contains a few
[build](docker-compose.yml#L34) instructions, but mainly the directives to run
the docker container.The `tun` device is not created, but [mapped](docker-compose.yml#L18-L19) into
the container!The configuration of sysctl is also done via
[`docker-compose.yml`](docker-compose.yml#L20-L23).The file `ta.key` must be created. If this file does not exist when starting
the container, it will be created, but requires `/etc/openvpn` to be mounted
*read-write*. For normal operations, though, this directory should be
read-only.## Docker Hub
The image can be found at .