Openvpn in docker

Hi guys

Premise:
yesterday I was looking for a personal VPN, I’m using Arch as daily distro and official Openvpn project is not supported in Arch based distros, so I tried to find some docker images for managing the VPN.

The solution:
I come into this githgub repository: GitHub - d3vilh/openvpn-server: Fast Docker container with OpenVPN Server living inside.
I tried to install it on my Arch VM and everything is working very great.

Some notes:

  • for better usability you need to have a static IP
  • you need to use TCP 1194 port instead using UDP protocol and open it in your router for external access
  • you are not able to change default 8080 port of the administrative tool gui
  • is better to keep your port 8080 closed and safe on your router!
  • for change your gui admin username and password you are not able to do it in docker-compose.yml, you need to do it trought the web interface

As I followed the docker compose guideline, now I’m able to turn on my VPN and connect to my homelab when I’m outside.

-ricky

1 Like

Nice! Thanks for sharing.