karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofre ...@nanthrax.net>
Subject Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid
Date Fri, 24 Apr 2020 05:49:34 GMT
Hi,

The persistence of the config has been added in Karaf 4.2.2, as you are using 4.2.6 it should
be fine.

Let me try to reproduce.

Regards
JB

> Le 24 avr. 2020 à 07:46, stefang <stefan.guenst@me.com> a écrit :
> 
> Hi JB,
> 
> we created a new config file in etc (org.apache.karaf.http.cfg) with the
> following content 
> 
> proxies = [ \
>  "/webconsole http://localhost:8181/system/console <http://localhost:8181/system/console>",
\
>  ]
> 
> nothing happens after start.
> 
> This will work but lost after restart 
> 
> ./karaf
>        __ __                  ____      
>       / //_/____ __________ _/ __/      
>      / ,<  / __ `/ ___/ __ `/ /_        
>     / /| |/ /_/ / /  / /_/ / __/        
>    /_/ |_|\__,_/_/   \__,_/_/         
> 
>  Apache Karaf (4.2.6)
> 
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> 
> karaf@root()> http:proxy-add /webconsole
> http://localhost:8181/system/console <http://localhost:8181/system/console>
> 
> 
> karaf@root()> http:proxies
> URL         │ ProxyTo
> ────────────┼─────────────────────────────────────
> /webconsole │ http://localhost:8181/system/console <http://localhost:8181/system/console>
> 
> 
> 
> Regards 
> 
> Stefan 
> 
> 
> jbonofre wrote
>> Hi Stefan I don?t see any reason why it would not work, but never
>> try.&nbsp; Do you have a specific error ? I will try myself. &nbsp;
>> Regards JB Le&nbsp;jeu. 23 avr. 2020 ? 18:13, stefang &lt;
> 
>> stefan.guenst@
> 
>> &gt; a ?crit&nbsp;: Hi,
>> 
>> we found that in static distribution config from etc will not be picked up
>> for http proxies.
>> So this is feature is not usable in static or did we miss something?
>> 
>> Regards
>> Stefan
>> 
>> 
>> 
>> stefang wrote
>> &gt; Hi JB,
>> &gt; 
>> &gt; is it possible to use proxy feature in static distribution?
>> &gt; 
>> &gt; Regards
>> &gt; 
>> &gt; Stefan 
>> &gt; 
>> &gt; 
>> &gt; jbonofre wrote
>> &gt;&gt; Thanks for the update. Let me check if I intercept the auth in
>> the proxy
>> &gt;&gt; see let.&amp;nbsp; Regards&amp;nbsp; JB Le&amp;nbsp;jeu.
2 avr.
>> 2020 ? 11:05, stefang
>> &gt;&gt; &amp;lt;
>> &gt; 
>> &gt;&gt; stefan.guenst@
>> &gt; 
>> &gt;&gt; &amp;gt; a ?crit&amp;nbsp;: Hi JB,
>> &gt;&gt; 
>> &gt;&gt; we found that AUTH to Squid seems to be the problem.
>> &gt;&gt; 
>> &gt;&gt; -Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser
>> and
>> &gt;&gt; -Dhttp.proxyPassword for AUTH to Proxy not.
>> &gt;&gt; 
>> &gt;&gt; Regards
>> &gt;&gt; 
>> &gt;&gt; Stefan
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; stefang wrote
>> &gt;&gt; &amp;gt; yes without proxy frontend it works. 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; Regards
>> &gt;&gt; &amp;gt; Stefan
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; jbonofre wrote
>> &gt;&gt; &amp;gt;&amp;gt; And you confirm it works fine "without"
proxy
>> frontend ?
>> &gt;&gt; &amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt; Regards
>> &gt;&gt; &amp;gt;&amp;gt; JB
>> &gt;&gt; &amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; Le 1 avr. 2020 ? 18:23, stefang
>> &amp;amp;lt;
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt; stefan.guenst@
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt; &amp;amp;gt; a ?crit :
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; Hi JB,
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; we tried to configure proxy
at JVM Level
>> but without any
>> &gt;&gt; luck.
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; Regards
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; Stefan
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; jbonofre wrote
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Stefan,
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; It works fine directly
on kibana
>> for instance but not if
>> &gt;&gt; you have a
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; proxy
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; forward in front
of kibana (for
>> instance squid, ?) ?
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Did you configure
the http proxy
>> at JVM level
>> &gt;&gt; (-Dhttp.proxy?) ?
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; JB
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Le
1 avr. 2020 ? 17:54,
>> stefang &amp;amp;lt;
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; stefan.guenst@
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;amp;gt;
a ?crit :
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; actually
we failed to
>> use the proxy feature (
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
>> http://blog.nanthrax.net/?p=830 ) if real host is
>> &gt;&gt; only reachable via
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Proxy
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (like
squid, ...) based
>> on this example.
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; karaf@root()&amp;gt;
>> http:proxy-add /kibana
>> &gt;&gt; http://remote_host:5601
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is
there anything we
>> missed ?
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Stefan

>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent
from:
>> &gt;&gt; http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; 
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; --
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt; Sent from:
>> &gt;&gt; http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> &gt;&gt; &amp;gt;&amp;gt;&amp;gt;
>> &gt;&gt;
>> &amp;amp;lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&amp;amp;gt;
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; 
>> &gt;&gt; &amp;gt; --
>> &gt;&gt; &amp;gt; Sent from:
>> http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; 
>> &gt;&gt; --
>> &gt;&gt; Sent from:
>> http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> &gt; 
>> &gt; 
>> &gt; 
>> &gt; 
>> &gt; 
>> &gt; --
>> &gt; Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html <http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html>

Mime
View raw message