<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&#39;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 &quot;%{REMOTE_ADDR}s&quot; (SSL)<br></div><div><br></div><div>RequestHeader set X-Forwarded-For &quot;%{REMOTE_ADDR}e&quot; (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">&lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;</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 &lt;<a href="mailto:renalexster@gmail.com">renalexster@gmail.com</a>&gt; wrote:<br>
&gt; Nice folks.<br>
&gt; I&#39;ll try do it.<br>
&gt;<br>
&gt; On Mar 9, 2018 12:17 PM, &quot;Eric Wittmann&quot; &lt;<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Note that, with just a little bit of java expertise, you can easily create<br>
&gt;&gt; your own policy plugin.  The documentation for doing so is quite good (IMO):<br>
&gt;&gt;<br>
&gt;&gt; <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>
&gt;&gt;<br>
&gt;&gt; Also there are plenty of examples here:<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://github.com/apiman/apiman-plugins" rel="noreferrer" target="_blank">https://github.com/apiman/<wbr>apiman-plugins</a><br>
&gt;&gt;<br>
&gt;&gt; You could start with the no-op policy (is a valid, working policy plugin<br>
&gt;&gt; but doesn&#39;t do anything) and the simple-header-policy (does things with<br>
&gt;&gt; headers).<br>
&gt;&gt;<br>
&gt;&gt; -Eric<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Mar 9, 2018 at 8:55 AM, Marc Savy &lt;<a href="mailto:marc.savy@redhat.com">marc.savy@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The simple header policy can&#39;t do that directly as I recall. As Eric<br>
&gt;&gt;&gt; suggests you should write your own custom policy to achieve this. It<br>
&gt;&gt;&gt; should be really simple -- probably just a few lines!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 7 March 2018 at 18:56, Eric Wittmann &lt;<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; I can&#39;t remember if there is a policy for this already.  If not, it&#39;s<br>
&gt;&gt;&gt; &gt; fairly<br>
&gt;&gt;&gt; &gt; trivial to write a custom policy.  Thoughts Marc?<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On Wed, Mar 7, 2018 at 10:01 AM, Renato Barros &lt;<a href="mailto:renalexster@gmail.com">renalexster@gmail.com</a>&gt;<br>
&gt;&gt;&gt; &gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Hi folks,<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; I&#39;d like to know if there is some way to add the Client remote IP on<br>
&gt;&gt;&gt; &gt;&gt; my<br>
&gt;&gt;&gt; &gt;&gt; Request Header from API Man.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; I need to add a Simple Header Policy with a &quot;X-Forwarded-For&quot;<br>
&gt;&gt;&gt; &gt;&gt; containing<br>
&gt;&gt;&gt; &gt;&gt; the client remote ip.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; My backend is getting the APIMan IP as remote client, but what I need<br>
&gt;&gt;&gt; &gt;&gt; get<br>
&gt;&gt;&gt; &gt;&gt; to client IP.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt; &gt;&gt; Apiman-user mailing list<br>
&gt;&gt;&gt; &gt;&gt; <a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
&gt;&gt;&gt; &gt;&gt; <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>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt; &gt; Apiman-user mailing list<br>
&gt;&gt;&gt; &gt; <a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
&gt;&gt;&gt; &gt; <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>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>