Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Protocol fo TCP mode (L4xNAT) #92

Open
kladiv opened this issue Dec 7, 2020 · 4 comments
Open

Proxy Protocol fo TCP mode (L4xNAT) #92

kladiv opened this issue Dec 7, 2020 · 4 comments
Labels
configuration help The issue is related with the product configuration

Comments

@kladiv
Copy link

kladiv commented Dec 7, 2020

Hello,
does Zevenet CE support Proxy Protocol (v2) for TCP mode (L4xNAT - SNAT) ?
During our tests it seems not.
This feature is quite important in the case of a ZLB in front of a Kubernetes on-premise cluster (with NodePorts services exposing SSL/HTTPS traffic). Any ETA?

We tested https profile but our SSL are managed by Kubernetes service itself (cert-manager + Ingress). But ZLB https profile requires SSL for configuration, so no applicable.

Thank you

Best,
Claudio

@cano-devel
Copy link
Contributor

Hello,

Reading your issue, I deduce you need the client connection information in your Kubernetes cluster.
Using the L4xNAT profile with SNAT mode, you should get the client IP in the Kubernetes ingress.
Remember that the load balancer has to be configured as Kubernetes gateway in order to forward the response to the clients.

If you need further assistance configuring it, you can write in the ZEVENET community list.

As you mentioned, the HTTP profile requires the certificates to work with SSL, but this profile does not add the proxy protocol (v2) headers at the moment.
Instead, you could get the client IP from the "X-Forwarded-For" header.

Best regards

@cano-devel cano-devel added the configuration help The issue is related with the product configuration label Dec 9, 2020
@cano-devel
Copy link
Contributor

Sorry, I had a mistake in my previous commentary. You should use the mode DNAT in the L4xNAT profile.

@kladiv
Copy link
Author

kladiv commented Dec 9, 2020

Hi @alvarocano-zevenet ,
DNAT is not applicable 'cause Kubernetes cluster default gateway (nodes default gateway) cannot be changed.

Are you able to add ProxyProtocol to TCP Mode (via L4xNAT) or it requires a refactor of TCP Mode method?

Thank you

Best,
Claudio

@kladiv kladiv changed the title Proxy Protocol fo TCP mode (LX4NAT) Proxy Protocol fo TCP mode (L4xNAT) Dec 9, 2020
@cano-devel
Copy link
Contributor

Hi,

The L4xNAT profile manages only connection information, it is not possible to modify the application data with it because the kernel manages the packets in this profile.

I recommend you to test with the HTTP profile for your environment. You only have to configure an HTTPS farm and adding it the SSL certificates.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration help The issue is related with the product configuration
Projects
None yet
Development

No branches or pull requests

2 participants