<div dir="ltr">Hi Marc,<div><br></div><div>Actually I managed to do it using Apache with mod_headers, because it was pretty simple. In my architecture, I've the apache server and mod_jk to redirect to the ApiMan.</div><div><br></div><div><br></div><div><br></div><div>RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s" (SSL)<br></div><div><br></div><div>RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}e" (NO-SSL)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 April 2018 at 07:50, Marc Savy <span dir="ltr"><<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just to quickly follow up: did you have any success with this? Any issues?<br>
<div class="HOEnZb"><div class="h5"><br>
On 9 March 2018 at 16:18, Renato Barros <<a href="mailto:renalexster@gmail.com">renalexster@gmail.com</a>> wrote:<br>
> Nice folks.<br>
> I'll try do it.<br>
><br>
> On Mar 9, 2018 12:17 PM, "Eric Wittmann" <<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>> wrote:<br>
>><br>
>> Note that, with just a little bit of java expertise, you can easily create<br>
>> your own policy plugin. The documentation for doing so is quite good (IMO):<br>
>><br>
>> <a href="http://www.apiman.io/latest/developer-guide.html#_plugins" rel="noreferrer" target="_blank">http://www.apiman.io/latest/<wbr>developer-guide.html#_plugins</a><br>
>><br>
>> Also there are plenty of examples here:<br>
>><br>
>> <a href="https://github.com/apiman/apiman-plugins" rel="noreferrer" target="_blank">https://github.com/apiman/<wbr>apiman-plugins</a><br>
>><br>
>> You could start with the no-op policy (is a valid, working policy plugin<br>
>> but doesn't do anything) and the simple-header-policy (does things with<br>
>> headers).<br>
>><br>
>> -Eric<br>
>><br>
>><br>
>> On Fri, Mar 9, 2018 at 8:55 AM, Marc Savy <<a href="mailto:marc.savy@redhat.com">marc.savy@redhat.com</a>> wrote:<br>
>>><br>
>>> The simple header policy can't do that directly as I recall. As Eric<br>
>>> suggests you should write your own custom policy to achieve this. It<br>
>>> should be really simple -- probably just a few lines!<br>
>>><br>
>>> On 7 March 2018 at 18:56, Eric Wittmann <<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>> wrote:<br>
>>> > I can't remember if there is a policy for this already. If not, it's<br>
>>> > fairly<br>
>>> > trivial to write a custom policy. Thoughts Marc?<br>
>>> ><br>
>>> > On Wed, Mar 7, 2018 at 10:01 AM, Renato Barros <<a href="mailto:renalexster@gmail.com">renalexster@gmail.com</a>><br>
>>> > wrote:<br>
>>> >><br>
>>> >> Hi folks,<br>
>>> >><br>
>>> >> I'd like to know if there is some way to add the Client remote IP on<br>
>>> >> my<br>
>>> >> Request Header from API Man.<br>
>>> >><br>
>>> >> I need to add a Simple Header Policy with a "X-Forwarded-For"<br>
>>> >> containing<br>
>>> >> the client remote ip.<br>
>>> >><br>
>>> >> My backend is getting the APIMan IP as remote client, but what I need<br>
>>> >> get<br>
>>> >> to client IP.<br>
>>> >><br>
>>> >> ______________________________<wbr>_________________<br>
>>> >> Apiman-user mailing list<br>
>>> >> <a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
>>> >> <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
>>> >><br>
>>> ><br>
>>> ><br>
>>> > ______________________________<wbr>_________________<br>
>>> > Apiman-user mailing list<br>
>>> > <a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
>>> > <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
>>> ><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>