pieterlange / kube-openvpn

:closed_lock_with_key: Kubernetes native OpenVPN
MIT License
383 stars 57 forks source link

Accessing any client on any port from any pod #76

Open roeeklinger opened 2 years ago

roeeklinger commented 2 years ago

I have a requirement that I need to reach any OpenVPN client on any port from any pod on the cluster and that the client will receive the request on the same port, so if we take your client example with Alice = 10.140.0.10 and Bob = 10.140.0.20, I need each pod in the cluster to be able to send a request to Bob on any port and have the request reach Bob on the same port, of course, the same goes to Alice as well.

To try and make it clearer:

pod in the cluster sends a request to Bob on 10.140.0.20:16273 --> request is received by Bob on port 16273
pod in the cluster sends a request to Bob on 10.140.0.20:4372 --> request is received by Bob on port 4372
pod in the cluster sends a request to Alice on 10.140.0.20:4372 --> request is received by Alice on port 4372
...
...

Is this possible to achieve?

Thanks.