OpenVPN in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Niklas Rosenstein f729af2367
update ep
2 months ago
.gitignore update 2 months ago
Dockerfile disable ca/cert/key because we embed it 2 months ago
Makefile fix init 2 months ago
docker-compose.yml fix init 2 months ago update ep 2 months ago update 2 months ago


1. Usage

1.1. Configuration

  • Start with docker-compose.yml
    • Replace build: . with image: niklasrosenstein/ovpn if you're not building the container from source
  • Run $ docker run ovpn init
  • Update data/openvpn/server/server.conf

1.2 Add a client

$ docker run ovpn add-client <client-name>

1.3 Remove a client

Only use this if you really want to remove everything related to the client. You should prefer revokation if a client certificate key got leaked.

$ docker run ovpn delete-client <client-name>

1.4 Revoke a client