guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Patil <manoj2pa...@gmail.com>
Subject Re: How to get client ip address on guacamole
Date Tue, 28 May 2019 06:43:18 GMT
hi,

i am done all the setting as per document but it shows the Firewalll WAN ip not machine local
ip address

my server.xml setting

<Valve className="org.apache.catalina.valves.RemoteIpValve"
                                                        internalProxies="192\.168\.80\.162|172\.16\.20\.37"
                                                        remoteIpHeader="x-forwarded-for"
                                                        remoteIpProxiesHeader="x-forwarded-by"
                                                        protocolHeader="x-forwarded-proto"
                                                        protocolHeaderHttpsValue="https" />
<Valve className="org.apache.catalina.valves.ErrorReportValve"
                                                        showReport="false"
                                                        showServerInfo="false"/>


My nginx setting is——

server {

    listen 80;
    listen [::]:80;
    server_name gucserver;
    return 301 https://$server_name$request_uri;


        location /acecbs/ {
        proxy_pass http://192.168.80.162:8080/guacamole/;
        proxy_buffering off;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
        proxy_cookie_path /guacamole/ /acecbs/;
        access_log off;
        }


Username 	Start time 	Duration 	Connection name 	Remote host
samho
	2019-05-28 12:07:55 	0 seconds 	samta_ho 	223.196.84.130
samho
	2019-05-28 12:07:49 	0 seconds 	samta_ho 	223.196.84.130
samho
	2019-05-28 12:07:37 	0 seconds 	samta_ho 	223.196.84.130
samho
	2019-05-28 11:37:15 	28 seconds 	samta_ho 	223.196.84.130

> On 26-May-2019, at 11:24 PM, Mike Jumper <mjumper@apache.org> wrote:
> 
> On Sun, May 26, 2019, 10:14 Manoj Patil <manoj2patil@gmail.com <mailto:manoj2patil@gmail.com>>
wrote:
> Dear,
> 
> I see the history tab and table  but in that remote host it display the firewall ip not
actual machine ip and i want actual machine ip.
> 
> i used Guacamole(tomcat+nginix)+x!rdp(linux host).
> 
> http://guacamole.apache.org/doc/gug/proxying-guacamole.html#tomcat-remote-ip <http://guacamole.apache.org/doc/gug/proxying-guacamole.html#tomcat-remote-ip>
> 


Mime
View raw message