I need to publish the same service from different environment on the same IP Gateway. I need to bind the tow different publishing on specific IPs or interface.
I would like to have something like :
- eth0 : 192.168.1.100:8080/myservice/hello --> Test backend
- eth1 : 192.168.1.101:8080/myservice/hello --> Preproduction backend
I do not want to reach Test from the 192.168.1.100 neither to reach Preproduction from the other interface.
I was able to bind specific IPs on specific port but all services are available on both interfaces... I'll need help !
Thank you in advance for your help,
I would suggest reviewing the listen port advanced properties, specifically the option to 'Associate port with single published service'. If it needs more refining you can setup a policy that checks the incoming port/ip and route accordingly.
Listen Port Properties - CA API Gateway - 9.2 - CA Technologies Documentation
Transport Layer Context Variables - CA API Gateway - 9.2 - CA Technologies Documentation
Thank you ! I works as expected.