OpenVPN 2.5.1 built on May 14 2021, container to create Server and or Client VPN.
1.8K
![]()
OpenVPN 2.5.1 built on May 14 2021, container to create Server and or Client VPN. This allows you to use OpenVPN without needing to install it on your computer and regardless of your operating system (Linux or Windows).
Docker must be configured to run Linux Docker containers. You need the certificates, you can use Docker-openssl
For generating the configuration file, you can use the environmerts:
Remember, without server.conf you can not generate the client file. Docker-openssl
# Make sure you replace `<your_path>` with your target folder, this is the path where files will be created.
# To generate the Certification Authority, Server and Clinet certificate you can use Docker-openssl
docker run --rm -v your_path:/opt -e GENERATE_SERVER=true \
-e REDIRECT_GATEWAY=true \
-e GENERATE_CLIENT=true \
4ss078/docker-openvpn:latest
# After this command, you are going to have in your folder the client.conf, server.conf files
# Make sure you replace `<your_path>` with your target folder, this is where files will be created.
# In this case the docker runs every .conf file locates in your_path/openvpn
# To generate the Certification Authority, Server and Clinet certificate use Docker-openssl
docker run --network host -v your_path:/opt --privileged --cap-add=NET_ADMIN --device=/dev/net/tun -e RUN_SERVER=true 4ss078/docker-openvpn:latest
# Run Docker container in interactive mode
# In this case the docker runs every .ovpn file locates in your_path/openvpn
# Make sure you replace `<your_path>` with your target folder, this is where the client.conf files will be placed.
docker run --network host -v your_path_of_client.conf:/opt --cap-add=NET_ADMIN --device=/dev/net/tun -e RUN_CLIENT=true 4ss078/docker-openvpn:latest
Content type
Image
Digest
sha256:3edfaa651…
Size
53.9 MB
Last updated
over 2 years ago
docker pull 4ss078/docker-openvpn