If you have a balancer I recommend adding into internalProxies (internalProxies="127.0.0.1|<IP_BAL>"), to get real client IP.
On Thu, Apr 9, 2020 at 3:51 PM Chris Misztur <cmisz...@mriiot.com> wrote: > > @DMoscovitch is your proxy listening on IPv6? > > > On Thu, Apr 9, 2020 at 7:53 AM <dmoscovi...@simard.ca> wrote: > >> Yes, as far as I can tell. I've gone through this so many times. >> I thought also i needed to set maybe the 0:0:... address into the proxies >> also but that didnt seem to have any affect either. >> The odd thing is it does work some of the time.... >> >> == >> <Valve className="org.apache.catalina.valves.RemoteIpValve" >> internalProxies="127.0.0.1" >> remoteIpHeader="X-Forwarded-For" >> remoteIpProxiesHeader="X-Forwarded-By" >> protocolHeader="X-Forwarded-Proto" /> >> === >> >> >> >> /danielm >> >> >> >> From: "Nick Couchman" <vn...@apache.org> >> To: user@guacamole.apache.org >> Date: 04/08/20 10:18 PM >> Subject: Re: randomely showing localhost IP in guacamole user >> history >> ------------------------------ >> >> >> >> >> So if it works some of the time, the headers must be getting sent >> correctly? >> so the >> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; >> must be working from nginx? >> >> >> Have you also set the RemoteIPValve correctly in Tomcat? >> >> >> *http://guacamole.apache.org/doc/gug/proxying-guacamole.html#tomcat-remote-ip* >> <http://guacamole.apache.org/doc/gug/proxying-guacamole.html#tomcat-remote-ip> >> >> -Nick >> > -- Ћiago ₢uz