Hi, I want to connect my project using OpenVPN. Last time i tried using pritunl-client it doesn’t working because i cannot write in /var/run/pritunl.auth. I wonder if pkgs.openvpn got the same error because it doesnt have write access too. How to resolve this problem? or How to gain credentials to write the like sudo or other ways to modify the permission?
Hi, I already solve this problem actually. But, in the hard way.
First, all the service which is need to connect through VPN must be inside a docker.
Then create another container with Ubuntu/Debian images. In that Ubuntu/Debian container, make a Dockerfile to install OpenVPN package, then copy the profile and run OpenVPN.
And the docker container in same network configuration should be connected to OpenVPN.
But, the existing problem on this solution is you can’t connect to VPN in terminal. You must access through docker network inside docker container.
I have specify the network type using docker compose and set to bridge mode. But, still I only able to access VPN when opening a terminal in docker images which is in the same network with OpenVPN images.
I hope that can helps you out. Maybe I will provide some code to do that if you need it.