ich777 / docker-openvpn-client

GNU Affero General Public License v3.0
5 stars 5 forks source link

local net plus openvpn-client #14

Closed davew723 closed 3 days ago

davew723 commented 6 days ago

I was wondering if you might have any guidance on this configuration. I'm attempting to use this docker-openvpn-client project via the unraid openvpn-client app. The issue I'm running into is I would like to serve immich thru the openvpn-client but it has a dependent service of postgres. So my desired configuration is like the below.

<- local net -> <- openvpn-client.container net -> openvpn-client <-> openvpn-server <- browser. Docker run only allows one --net on startup. I can connect a second network after startup. I'm not sure if that is the best approach. (I also don't think there is a way to automate that in unraid? I realize this question is out of scope.) Any recommendations how else to best deploy this configuration with this project?
ich777 commented 6 days ago

@davew723 you could always allow the container to a subnet with ROUTE and the subnet, like described here in this example. So to speak create a new Variable in the Unraid template with the key: ROUTE and as the value the subnet that you want to give access to eg: 192.168.0.0/24 However that defeats somehow the purpose of the OpenVPN container since it has then access to your subnet.

I would recommend that you put all containers into the network from OpenVPN for simplicity and that's how I would set it up. If you are doing it that way don't forget you have to change the IPs to the containers in the config files or webui for Immich.

ich777 commented 3 days ago

Can I close this issue or do you have any further questions?

davew723 commented 3 days ago

Yes. Thanks you I got things working!