Follow

Is it possible to run an openvpn client inside a docker container, and then have other containers use that container as a gateway?

@mhamzahkhan I think yes, if they share the network namespace, i.e. they constitute a pod.

@mhamzahkhan Yes, but not without making this openvpn container privileged. Otherwise you'll have trouble setting up the network device and routing.

Of course you also need to push the VPN route into the other container's network stack, but this might be done on the host.

container -> host -> openvpn-container

At least in docker I've seen such setups working. if you want this in k8s, it becomes more adventures.

Sign in to participate in the conversation
Mastodon@intahnet.co.uk

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!