From user-return-4407-archive-asf-public=cust-asf.ponee.io@guacamole.apache.org Fri Aug 24 10:11:59 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 47EA5180629 for ; Fri, 24 Aug 2018 10:11:58 +0200 (CEST) Received: (qmail 94357 invoked by uid 500); 24 Aug 2018 08:11:57 -0000 Mailing-List: contact user-help@guacamole.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.apache.org Delivered-To: mailing list user@guacamole.apache.org Received: (qmail 94347 invoked by uid 99); 24 Aug 2018 08:11:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2018 08:11:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DDB4D1A038E for ; Fri, 24 Aug 2018 08:11:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.888 X-Spam-Level: * X-Spam-Status: No, score=1.888 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id qcia4zaU7W5D for ; Fri, 24 Aug 2018 08:11:55 +0000 (UTC) Received: from mail-io0-f195.google.com (mail-io0-f195.google.com [209.85.223.195]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8BB385F4DA for ; Fri, 24 Aug 2018 08:11:55 +0000 (UTC) Received: by mail-io0-f195.google.com with SMTP id c22-v6so6486692iob.1 for ; Fri, 24 Aug 2018 01:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=knL3Sm1URVLOZ0ZzNDequ5ziCmkuQUklNopBv0pdiI4=; b=XI+2gmXRjpP/KgSaCRl0Cf3AfM4efZXEA9CGbub8W/p7+0ep39W3eMeX1nDmagBoKu 45xTn+7CFlULEEnWAaE+m3Pf8svVKERVvWVj5in5+HuQOZV6EzALwIwIsmVCfp/9wVrH AuT4PwcZs9R6zavjG9Aq+1bc9Ryac6ywZhTumzOPFEY/Cgz9E765zpCSrP58+iNfq6hY kl6JtK8ye+qNack0DTSHq8mVmv3ODD0BwVkcKQOtbHbCQolrGYr1AoH/BiQJiN79GKZq X+U0ybOlqJD9u5IF81LC5F0L9cW/+nNACFU5n33CSUeWRkSQjaxLN6ansV+VWHXME/r8 sggA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=knL3Sm1URVLOZ0ZzNDequ5ziCmkuQUklNopBv0pdiI4=; b=GMuM3NWtrv4u24UK6TIQB6jYwz0X+HoBsxpVQpMoKJcl39RsBPq2k20IERlCnHldcn p98bUm7l6Xh76l5uec75IOnUAp4efRkRJ/CxFcFP6A9EqzsNFZmora3IVT7iXY3S0ldH Msw+FboQ3sMPzTlbtJ3udZu2CmkDAQDYAv3rhEgzzrB3G4rw/RxYmFNjf3N4fAf5BtB7 2nAkAJjlsXzTkUdtfoWLJqO13ISnE68Qc/MN62Oqce+AYyz2aNJaV2RUftLoNy0+gy+u vyXewczIskHdf7Hrl4lGzx95fNptOwTbTDwaFocVozOUKRFXsK8GfZ4Y2ff85gQMo9CK nmvA== X-Gm-Message-State: APzg51APnXZPTATu+I3oSsXD3eoF/BlllY44RCQL9snl/NoM6+Vlz4No Syt56/t5k47JS3lu4t3IowVJpsubWvmh2kZVvIJ0FK13 X-Google-Smtp-Source: ANB0VdZvgXVPM3V7m/9FLdAD4BzQ3QskcDF2ZDsPMdpHKfqnm2/0Kk/Z7jZ1Z/4O1yzjVYw08aFBmC7xvxfp+5wmIe8= X-Received: by 2002:a6b:da15:: with SMTP id x21-v6mr421784iob.102.1535098314576; Fri, 24 Aug 2018 01:11:54 -0700 (PDT) MIME-Version: 1.0 References: <1534934011607-0.post@n4.nabble.com> In-Reply-To: From: Liviu Petcu Date: Fri, 24 Aug 2018 11:11:10 +0300 Message-ID: Subject: Re: ${GUAC_CLIENT_HOSTNAME} expansion in To: user@guacamole.apache.org Content-Type: multipart/alternative; boundary="000000000000bc56cd057429ed76" --000000000000bc56cd057429ed76 Content-Type: text/plain; charset="UTF-8" Hi, As you said, it was enough to configure RemoteIPValve in Tomcat's server.xml like this: and now I have correct expansion of $ {GUAC_CLIENT_HOSTNAME} variable. Thank you. On Fri, Aug 24, 2018 at 8:18 AM Liviu Petcu wrote: > Thank you. I will follow your advice and return with the result. > > Liv > > > On Wed, Aug 22, 2018 at 3:33 PM Nick Couchman wrote: > >> On Wed, Aug 22, 2018 at 6:33 AM Liv Pet wrote: >> >>> Hi, >>> >>> I want to record sessions using custom filenames. I configured >>> recording-name (SCREEN RECORDING) via web interface like that: >>> myhost-${GUAC_USERNAME}@${GUAC_CLIENT_HOSTNAME} and the recorded file >>> has >>> that name: myhost-user@0:0:0:0:0:0:0:1.1 . Please, if anyone knows, >>> tell me >>> how I can solve the correct expansion of $ {GUAC_CLIENT_HOSTNAME} in >>> name or >>> IP. >>> Thank you. >> >> >> Two things to look at, here: >> - First, if you're using a proxy in front of Apache Tomcat (or JBOSS, >> Jetty, etc.) you need to make sure you have properly configured it to pass >> through the remote host/address headers. Otherwise you'll end up with what >> you see, here, which is the IPv6 representation of the "localhost" >> address. Look at the manual page regarding proxying and make sure you have >> the headers passed through correctly: >> http://guacamole.apache.org/doc/gug/proxying-guacamole.html. Also, you >> might need to adjust Tomcat's configuration with the "remoteIpValve" to >> allow those IP addresses to be passed through. >> - Also, there was a JIRA issue raised dealing with making the handling of >> the remoteHost/remoteAddress processing more consistent in Guacamole: >> https://issues.apache.org/jira/browse/GUACAMOLE-540. The changes from >> that issue are in the Git repo and are scheduled to be released with >> version 1.0.0. >> >> -Nick >> > --000000000000bc56cd057429ed76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
As you said, it was enough to configure RemoteIPValve in Tomca= t's server.xml like this:
=C2=A0
<Valve
=C2=A0 =C2=A0className=3D"org.apache.catalina.valves.RemoteIpValve&qu= ot;
=C2=A0 =C2=A0internalProxies=3D"127\.0\.0\.1|0:0:0:0:0:0= :0:1"
=C2=A0 =C2=A0remoteIpHeader=3D"x-forwarded-for&qu= ot;
=C2=A0 =C2=A0proxiesHeader=3D"x-forwarded-by"
=
=C2=A0 =C2=A0trustedProxies=3D"proxy1|proxy2"
=C2= =A0 =C2=A0/>

and now I have correct expan= sion of=C2=A0=C2=A0$ {GUAC_CLIENT_HOSTNA= ME}=C2=A0 variable.
<= div>
Thank you.


=
On Fri, Aug 24, 2018 at 8:18 AM= Liviu Petcu <livpet@gmail.com&g= t; wrote:
Thank you. I will follow your advice and return with the result. 
Liv

On Wed, Aug 22, 2018 at 3:33 PM Nick Couchman <vnick@apache.org> = wrote:
--000000000000bc56cd057429ed76--