Docker OpenVPN

Docker OpenVPN

is creating Open-source software for free communication without censorship

0

patrons

$0

per month

🔐Docker-OpenVPN

Out of the box stateless openvpn server docker image which starts in a few seconds and doesn't require persistent storage.

Quick Start 🚀

Prerequisites:

  1. Any physical or VPS server running Linux. You should have administrative rights on this machine.
  2. Docker installation on your server.
  3. Public IP address assigned to your server.
<h5>Run Docker-OpenVPN</h5> If you know which IP address was assigned to your server, pass it in an environment variable:

docker run --privileged -it --rm --name dovpn -p 1194:1194/udp -p 8080:8080/tcp -e HOST_ADDR=<your_host_public_ip> alekslitvinenk/openvpn

If you don't know your server's IP address, use the code below to launch your docker-openvpn:

docker run --privileged -it --rm --name dovpn -p 1194:1194/udp -p 8080:8080/tcp -e HOST_ADDR=$(curl -s https://api.ipify.org) alekslitvinenk/openvpn

ℹ️ Note: --privileged flag is required to do manipulations with iptables and to set up flag that allows traffic forwarding in sysctl.conf. We will try to get rid of this flag in the future releases of docker-openvpn.
If everything went well, you should be able to see the following output in your console:

Sun Jun 9 08:56:11 2019 Initialization Sequence Completed
Sun Jun 9 08:56:12 2019 Client.ovpn file has been generated
Sun Jun 9 08:56:12 2019 Config server started, download your client.ovpn config at http://example.com:8080/
Sun Jun 9 08:56:12 2019 NOTE: After you download your client config, HTTP server will be shut down!

<h5>Get client configuration</h5> Now, as your docker-openvpn is up and running you can go to <your_host_public_ip>:8080 on your desktop or laptop and download your client configuration. As soon as you have your config file downloaded you will see the following output in the console:
Sun Jun 9 09:01:15 2019 Config http server has been shut down
Import client.ovpn into your favorite openvpn client. In most cases, it should be enough to just double-click on that file.

<h5>Connect to your Docker-OpenVPN container</h5> You should be able to see your newly added client configuration in the list of available configurations. Click on it, the connection process should initiate and be established within a few seconds.
Congratulations, now you're all set and can safely browse the internet.

🔐Docker-OpenVPN

Out of the box stateless openvpn server docker image which starts in a few seconds and doesn't require persistent storage.

Quick Start 🚀

Prerequisites:

  1. Any physical or VPS server running Linux. You should have administrative rights on this machine.
  2. Docker installation on your server.
  3. Public IP address assigned to your server.
<h5>Run Docker-OpenVPN</h5> If you know which IP address was assigned to your server, pass it in an environment variable:

docker run --privileged -it --rm --name dovpn -p 1194:1194/udp -p 8080:8080/tcp -e HOST_ADDR=<your_host_public_ip> alekslitvinenk/openvpn

If you don't know your server's IP address, use the code below to launch your docker-openvpn:

docker run --privileged -it --rm --name dovpn -p 1194:1194/udp -p 8080:8080/tcp -e HOST_ADDR=$(curl -s https://api.ipify.org) alekslitvinenk/openvpn

ℹ️ Note: --privileged flag is required to do manipulations with iptables and to set up flag that allows traffic forwarding in sysctl.conf. We will try to get rid of this flag in the future releases of docker-openvpn.
If everything went well, you should be able to see the following output in your console:

Sun Jun 9 08:56:11 2019 Initialization Sequence Completed
Sun Jun 9 08:56:12 2019 Client.ovpn file has been generated
Sun Jun 9 08:56:12 2019 Config server started, download your client.ovpn config at http://example.com:8080/
Sun Jun 9 08:56:12 2019 NOTE: After you download your client config, HTTP server will be shut down!

<h5>Get client configuration</h5> Now, as your docker-openvpn is up and running you can go to <your_host_public_ip>:8080 on your desktop or laptop and download your client configuration. As soon as you have your config file downloaded you will see the following output in the console:
Sun Jun 9 09:01:15 2019 Config http server has been shut down
Import client.ovpn into your favorite openvpn client. In most cases, it should be enough to just double-click on that file.

<h5>Connect to your Docker-OpenVPN container</h5> You should be able to see your newly added client configuration in the list of available configurations. Click on it, the connection process should initiate and be established within a few seconds.
Congratulations, now you're all set and can safely browse the internet.

Recent posts by Docker OpenVPN