Whitelisting external server IPs at the gateway. #612
Replies: 1 comment
-
@prasanna2400 This is a standard ChatGPT answer that I got. @naresh-egov @nikhilmulinti @talele08 if you all know of a different approach please share: Yes, you can whitelist IPs of third-party servers in Spring Cloud Gateway by using a combination of filters and configurations. Here’s an approach to achieve this:
Example ConfigurationIn your spring:
cloud:
gateway:
routes:
- id: third-party-api-route
uri: http://your-third-party-service
predicates:
- RemoteAddr=192.168.1.0/24
filters:
- StripPrefix=1 This configuration only allows requests from the
In this filter, requests from IPs not listed in Notes:
This approach offers both flexibility and security for managing IP whitelisting directly at the gateway level. |
Beta Was this translation helpful? Give feedback.
-
Hello,I hope you all are doing well. We are using DIGIT for our application and need to integrate a couple of third-party services, which will make calls to our application. Could you please let us know if it’s possible to whitelist the IPs of these third-party servers at the gateway in DIGIT?
Beta Was this translation helpful? Give feedback.
All reactions