Note: VPN config, certificates and keys are stored in the ovpn0 directory on the machine that was used to run the commands. Prepend with REPLACE=true to update the existing ones: $. Generate a client config (can be repeated for any new client): $ export CLIENT_NAME=android bin/generate-config.shĬhange ownership of ovpn0 folder so that we can write to it: $ sudo chown -R "$". Set environment variables to be used to generate OpenVPN config: $ export VPN_HOSTNAME="" Generate OpenVPN Configuration Files and CertificatesĬreate a Kubernetes namespace: $ kubectl create namespace openvpn $ docker tag openvpn:latest lisenet/openvpn:latest We will build a new image and push it to Docker Hub. TL DR: use lisenet/openvpn:latest docker image.Īt the time of writing, OpenVPN image provided by kylemanna/openvpn:2.5 has not been updated since 2020, which makes it slightly out of date if you ask me. Test VPN access from an Android client.Configure a destination NAT rule on Mikrotik router.Generate OpenVPN configuration files and certificates. Build a container image for the latest version of OpenVPN.We also want to route all traffic through the VPN server (push default gateway). This would allow us to access internally hosted services like: We want to be able to access Kubernetes homelab subnet 10.11.1.0/24 from the Internet using a VPN connection on an Android device. Clone the following repositories: $ git clone We are using our Kubernetes homelab in this article.Ĭonfiguration files used in this article can be found on GitHub. OpenVPN server in a Docker container running on Kubernetes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |