VirtualServer protect endpoints with IP filter. #4107
-
Hello, is it possible to return 403 for some endpoints using VirtualServer configuration? Thanks. cafe.example.com/* -> should be available publicly.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe this is what you are looking for. |
Beta Was this translation helpful? Give feedback.
-
@brianehlert Can you help with access-control if domain is behind proxy (for example, CloudFlare). We have deployed Nginx Ingress Controller with
As I understand, that access-control via policy test against "REMOTE_ADDR" no "HTTP_X_FORWARDED_FOR". How could we override, so Policy check against "HTTP_X_FORWARDED_FOR" for some domains? There are no issues setting up VirtualSever with Policy from k8s.nginx.org CRDs. Thanks! |
Beta Was this translation helpful? Give feedback.
I believe this is what you are looking for.
The Policy object for Access Controls.
https://docs.nginx.com/nginx-ingress-controller/configuration/policy-resource/#accesscontrol