How to Forward Client’s request IP With Alias IP

How to Forward Client’s request IP With Alias IP ?

example
Device --> Kong --> Server

Device hit Kong with Ip: 1.1.1.1
and Kong Forward The Client Request To Server with Alias IP : 2.2.2.2

Depending on how they log the client IP you could do:

X-Real-IP: 2.2.2.2

Or if they are trusting X-Forwarded-For maybe:

X-Forwarded-For: 2.2.2.2

I think the request transformation plugin header add/edit could static set these but haven’t tried it myself.

Hi Jeremy,

i solve this problem last day. i am using request transformation pulgin too for change the origin. and using response transformation plugin for turn back the origin with the original request origin

Thanks All


© 2018 Kong Inc.    Terms  •  Privacy  •  FAQ