You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by stefang <st...@me.com> on 2020/04/01 15:54:52 UTC

Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Hi,

actually we failed to use the proxy feature (
http://blog.nanthrax.net/?p=830 ) if real host is only reachable via Proxy
(like squid, ...) based on this example.

karaf@root()> http:proxy-add /kibana http://remote_host:5601

Is there anything we missed ?

Regards

Stefan 







--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
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 <st...@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>

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
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", \
  ]

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


karaf@root()> http:proxies
URL         │ ProxyTo
────────────┼─────────────────────────────────────
/webconsole │ 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

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Stefan

  

I don?t see any reason why it would not work, but never try.

  

Do you have a specific error ?

  

I will try myself.  

  

Regards

JB

  

Le jeu. 23 avr. 2020 ? 18:13, stefang <st...@me.com> a ?crit :  

> 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  
> > Hi JB,  
> >  
> > is it possible to use proxy feature in static distribution?  
> >  
> > Regards  
> >  
> > Stefan  
> >  
> >  
> > jbonofre wrote  
> >> Thanks for the update. Let me check if I intercept the auth in the proxy  
> >> see let.&nbsp; Regards&nbsp; JB Le&nbsp;jeu. 2 avr. 2020 ? 11:05, stefang  
> >> &lt;  
> >  
> >> stefan.guenst@  
> >  
> >> &gt; a ?crit&nbsp;: Hi JB,  
> >>  
> >> we found that AUTH to Squid seems to be the problem.  
> >>  
> >> -Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser and  
> >> -Dhttp.proxyPassword for AUTH to Proxy not.  
> >>  
> >> Regards  
> >>  
> >> Stefan  
> >>  
> >>  
> >>  
> >> stefang wrote  
> >> &gt; yes without proxy frontend it works.  
> >> &gt;  
> >> &gt; Regards  
> >> &gt; Stefan  
> >> &gt;  
> >> &gt;  
> >> &gt;  
> >> &gt; jbonofre wrote  
> >> &gt;&gt; And you confirm it works fine "without" proxy frontend ?  
> >> &gt;&gt;  
> >> &gt;&gt; Regards  
> >> &gt;&gt; JB  
> >> &gt;&gt;  
> >> &gt;&gt;&gt; Le 1 avr. 2020 ? 18:23, stefang &amp;lt;  
> >> &gt;  
> >> &gt;&gt; stefan.guenst@  
> >> &gt;  
> >> &gt;&gt; &amp;gt; a ?crit :  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt; Hi JB,  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt; we tried to configure proxy at JVM Level but without any  
> >> luck.  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt; Regards  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt; Stefan  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt; jbonofre wrote  
> >> &gt;&gt;&gt;&gt; Hi Stefan,  
> >> &gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt; It works fine directly on kibana for instance but not if  
> >> you have a  
> >> &gt;&gt;&gt;&gt; proxy  
> >> &gt;&gt;&gt;&gt; forward in front of kibana (for instance squid, ?) ?  
> >> &gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt; Did you configure the http proxy at JVM level  
> >> (-Dhttp.proxy?) ?  
> >> &gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt; Regards  
> >> &gt;&gt;&gt;&gt; JB  
> >> &gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; Le 1 avr. 2020 ? 17:54, stefang &amp;lt;  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt; stefan.guenst@  
> >> &gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt; &amp;gt; a ?crit :  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; Hi,  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; actually we failed to use the proxy feature (  
> >> &gt;&gt;&gt;&gt;&gt; http://blog.nanthrax.net/?p=830 ) if real host is  
> >> only reachable via  
> >> &gt;&gt;&gt;&gt;&gt; Proxy  
> >> &gt;&gt;&gt;&gt;&gt; (like squid, ...) based on this example.  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; karaf@root()&gt; http:proxy-add /kibana  
> >> http://remote_host:5601  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; Is there anything we missed ?  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; Regards  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt; Stefan  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&gt;&gt;&gt;&gt;  
> >> &gt;&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;&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;  
> >> &amp;lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&amp;gt;  
> >> &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  
>  
>  
>  
>  
>  
> \--  
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html  
>


Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
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
> Hi JB,
> 
> is it possible to use proxy feature in static distribution?
> 
> Regards
> 
> Stefan 
> 
> 
> jbonofre wrote
>> Thanks for the update. Let me check if I intercept the auth in the proxy
>> see let.&nbsp; Regards&nbsp; JB Le&nbsp;jeu. 2 avr. 2020 ? 11:05, stefang
>> &lt;
> 
>> stefan.guenst@
> 
>> &gt; a ?crit&nbsp;: Hi JB,
>> 
>> we found that AUTH to Squid seems to be the problem.
>> 
>> -Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser and
>> -Dhttp.proxyPassword for AUTH to Proxy not.
>> 
>> Regards
>> 
>> Stefan
>> 
>> 
>> 
>> stefang wrote
>> &gt; yes without proxy frontend it works. 
>> &gt; 
>> &gt; Regards
>> &gt; Stefan
>> &gt; 
>> &gt; 
>> &gt; 
>> &gt; jbonofre wrote
>> &gt;&gt; And you confirm it works fine "without" proxy frontend ?
>> &gt;&gt; 
>> &gt;&gt; Regards
>> &gt;&gt; JB
>> &gt;&gt; 
>> &gt;&gt;&gt; Le 1 avr. 2020 ? 18:23, stefang &amp;lt;
>> &gt; 
>> &gt;&gt; stefan.guenst@
>> &gt; 
>> &gt;&gt; &amp;gt; a ?crit :
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; Hi JB,
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; we tried to configure proxy at JVM Level but without any
>> luck.
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; Regards
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; Stefan
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt; jbonofre wrote
>> &gt;&gt;&gt;&gt; Hi Stefan,
>> &gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt; It works fine directly on kibana for instance but not if
>> you have a
>> &gt;&gt;&gt;&gt; proxy
>> &gt;&gt;&gt;&gt; forward in front of kibana (for instance squid, ?) ?
>> &gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt; Did you configure the http proxy at JVM level
>> (-Dhttp.proxy?) ?
>> &gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt; Regards
>> &gt;&gt;&gt;&gt; JB
>> &gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; Le 1 avr. 2020 ? 17:54, stefang &amp;lt;
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt; stefan.guenst@
>> &gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt; &amp;gt; a ?crit :
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; Hi,
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; actually we failed to use the proxy feature (
>> &gt;&gt;&gt;&gt;&gt; http://blog.nanthrax.net/?p=830 ) if real host is
>> only reachable via
>> &gt;&gt;&gt;&gt;&gt; Proxy
>> &gt;&gt;&gt;&gt;&gt; (like squid, ...) based on this example.
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; karaf@root()&gt; http:proxy-add /kibana
>> http://remote_host:5601
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; Is there anything we missed ?
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; Regards
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; Stefan 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&gt;&gt;&gt;&gt; 
>> &gt;&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;&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;
>> &amp;lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&amp;gt;
>> &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





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
Hi JB,

is it possible to use proxy feature in static distribution?

Regards

Stefan 


jbonofre wrote
> Thanks for the update. Let me check if I intercept the auth in the proxy
> see let.&nbsp; Regards&nbsp; JB Le&nbsp;jeu. 2 avr. 2020 ? 11:05, stefang
> &lt;

> stefan.guenst@

> &gt; a ?crit&nbsp;: Hi JB,
> 
> we found that AUTH to Squid seems to be the problem.
> 
> -Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser and
> -Dhttp.proxyPassword for AUTH to Proxy not.
> 
> Regards
> 
> Stefan
> 
> 
> 
> stefang wrote
> &gt; yes without proxy frontend it works. 
> &gt; 
> &gt; Regards
> &gt; Stefan
> &gt; 
> &gt; 
> &gt; 
> &gt; jbonofre wrote
> &gt;&gt; And you confirm it works fine "without" proxy frontend ?
> &gt;&gt; 
> &gt;&gt; Regards
> &gt;&gt; JB
> &gt;&gt; 
> &gt;&gt;&gt; Le 1 avr. 2020 ? 18:23, stefang &amp;lt;
> &gt; 
> &gt;&gt; stefan.guenst@
> &gt; 
> &gt;&gt; &amp;gt; a ?crit :
> &gt;&gt;&gt; 
> &gt;&gt;&gt; Hi JB,
> &gt;&gt;&gt; 
> &gt;&gt;&gt; we tried to configure proxy at JVM Level but without any
> luck.
> &gt;&gt;&gt; 
> &gt;&gt;&gt; Regards
> &gt;&gt;&gt; 
> &gt;&gt;&gt; Stefan
> &gt;&gt;&gt; 
> &gt;&gt;&gt; 
> &gt;&gt;&gt; 
> &gt;&gt;&gt; jbonofre wrote
> &gt;&gt;&gt;&gt; Hi Stefan,
> &gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt; It works fine directly on kibana for instance but not if
> you have a
> &gt;&gt;&gt;&gt; proxy
> &gt;&gt;&gt;&gt; forward in front of kibana (for instance squid, ?) ?
> &gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt; Did you configure the http proxy at JVM level
> (-Dhttp.proxy?) ?
> &gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt; Regards
> &gt;&gt;&gt;&gt; JB
> &gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; Le 1 avr. 2020 ? 17:54, stefang &amp;lt;
> &gt;&gt;&gt; 
> &gt;&gt;&gt;&gt; stefan.guenst@
> &gt;&gt;&gt; 
> &gt;&gt;&gt;&gt; &amp;gt; a ?crit :
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; Hi,
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; actually we failed to use the proxy feature (
> &gt;&gt;&gt;&gt;&gt; http://blog.nanthrax.net/?p=830 ) if real host is
> only reachable via
> &gt;&gt;&gt;&gt;&gt; Proxy
> &gt;&gt;&gt;&gt;&gt; (like squid, ...) based on this example.
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; karaf@root()&gt; http:proxy-add /kibana
> http://remote_host:5601
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; Is there anything we missed ?
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; Regards
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; Stefan 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&gt;&gt;&gt;&gt; 
> &gt;&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;&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;
> &amp;lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&amp;gt;
> &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

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks for the update. Let me check if I intercept the auth in the proxy see
let.

  

Regards

JB

  

Le jeu. 2 avr. 2020 ? 11:05, stefang <st...@me.com> a ?crit :  

> Hi JB,  
>  
> we found that AUTH to Squid seems to be the problem.  
>  
> -Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser and  
> -Dhttp.proxyPassword for AUTH to Proxy not.  
>  
> Regards  
>  
> Stefan  
>  
>  
>  
> stefang wrote  
> > yes without proxy frontend it works.  
> >  
> > Regards  
> > Stefan  
> >  
> >  
> >  
> > jbonofre wrote  
> >> And you confirm it works fine "without" proxy frontend ?  
> >>  
> >> Regards  
> >> JB  
> >>  
> >>> Le 1 avr. 2020 ? 18:23, stefang &lt;  
> >  
> >> stefan.guenst@  
> >  
> >> &gt; a ?crit :  
> >>>  
> >>> Hi JB,  
> >>>  
> >>> we tried to configure proxy at JVM Level but without any luck.  
> >>>  
> >>> Regards  
> >>>  
> >>> Stefan  
> >>>  
> >>>  
> >>>  
> >>> jbonofre wrote  
> >>>> Hi Stefan,  
> >>>>  
> >>>> It works fine directly on kibana for instance but not if you have a  
> >>>> proxy  
> >>>> forward in front of kibana (for instance squid, ?) ?  
> >>>>  
> >>>> Did you configure the http proxy at JVM level (-Dhttp.proxy?) ?  
> >>>>  
> >>>> Regards  
> >>>> JB  
> >>>>  
> >>>>> Le 1 avr. 2020 ? 17:54, stefang &lt;  
> >>>  
> >>>> stefan.guenst@  
> >>>  
> >>>> &gt; a ?crit :  
> >>>>>  
> >>>>> Hi,  
> >>>>>  
> >>>>> actually we failed to use the proxy feature (  
> >>>>> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via  
> >>>>> Proxy  
> >>>>> (like squid, ...) based on this example.  
> >>>>>  
> >>>>> karaf@root()> http:proxy-add /kibana http://remote_host:5601  
> >>>>>  
> >>>>> Is there anything we missed ?  
> >>>>>  
> >>>>> Regards  
> >>>>>  
> >>>>> Stefan  
> >>>>>  
> >>>>>  
> >>>>>  
> >>>>>  
> >>>>>  
> >>>>>  
> >>>>>  
> >>>>> \--  
> >>>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html  
> >>>  
> >>>  
> >>>  
> >>>  
> >>>  
> >>> \--  
> >>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html  
> >>> &lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&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  
>


Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
Hi JB,

we found that AUTH to Squid seems to be the problem.

-Dhttp.proxyHost and -Dhttp.proxyPort works but -Dhttp.proxyUser and
-Dhttp.proxyPassword for AUTH to Proxy not.

Regards

Stefan



stefang wrote
> yes without proxy frontend it works. 
> 
> Regards
> Stefan
> 
> 
> 
> jbonofre wrote
>> And you confirm it works fine "without" proxy frontend ?
>> 
>> Regards
>> JB
>> 
>>> Le 1 avr. 2020 à 18:23, stefang &lt;
> 
>> stefan.guenst@
> 
>> &gt; a écrit :
>>> 
>>> Hi JB,
>>> 
>>> we tried to configure proxy at JVM Level but without any luck.
>>> 
>>> Regards
>>> 
>>> Stefan
>>> 
>>> 
>>> 
>>> jbonofre wrote
>>>> Hi Stefan,
>>>> 
>>>> It works fine directly on kibana for instance but not if you have a
>>>> proxy
>>>> forward in front of kibana (for instance squid, …) ?
>>>> 
>>>> Did you configure the http proxy at JVM level (-Dhttp.proxy…) ?
>>>> 
>>>> Regards
>>>> JB
>>>> 
>>>>> Le 1 avr. 2020 à 17:54, stefang &lt;
>>> 
>>>> stefan.guenst@
>>> 
>>>> &gt; a écrit :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> actually we failed to use the proxy feature (
>>>>> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via
>>>>> Proxy
>>>>> (like squid, ...) based on this example.
>>>>> 
>>>>> karaf@root()> http:proxy-add /kibana http://remote_host:5601
>>>>> 
>>>>> Is there anything we missed ?
>>>>> 
>>>>> Regards
>>>>> 
>>>>> Stefan 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>> &lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&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

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
yes without proxy frontend it works. 

Regards
Stefan



jbonofre wrote
> And you confirm it works fine "without" proxy frontend ?
> 
> Regards
> JB
> 
>> Le 1 avr. 2020 à 18:23, stefang &lt;

> stefan.guenst@

> &gt; a écrit :
>> 
>> Hi JB,
>> 
>> we tried to configure proxy at JVM Level but without any luck.
>> 
>> Regards
>> 
>> Stefan
>> 
>> 
>> 
>> jbonofre wrote
>>> Hi Stefan,
>>> 
>>> It works fine directly on kibana for instance but not if you have a
>>> proxy
>>> forward in front of kibana (for instance squid, …) ?
>>> 
>>> Did you configure the http proxy at JVM level (-Dhttp.proxy…) ?
>>> 
>>> Regards
>>> JB
>>> 
>>>> Le 1 avr. 2020 à 17:54, stefang &lt;
>> 
>>> stefan.guenst@
>> 
>>> &gt; a écrit :
>>>> 
>>>> Hi,
>>>> 
>>>> actually we failed to use the proxy feature (
>>>> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via
>>>> Proxy
>>>> (like squid, ...) based on this example.
>>>> 
>>>> karaf@root()> http:proxy-add /kibana http://remote_host:5601
>>>> 
>>>> Is there anything we missed ?
>>>> 
>>>> Regards
>>>> 
>>>> Stefan 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> &lt;http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html&gt;





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
And you confirm it works fine "without" proxy frontend ?

Regards
JB

> Le 1 avr. 2020 à 18:23, stefang <st...@me.com> a écrit :
> 
> Hi JB,
> 
> we tried to configure proxy at JVM Level but without any luck.
> 
> Regards
> 
> Stefan
> 
> 
> 
> jbonofre wrote
>> Hi Stefan,
>> 
>> It works fine directly on kibana for instance but not if you have a proxy
>> forward in front of kibana (for instance squid, …) ?
>> 
>> Did you configure the http proxy at JVM level (-Dhttp.proxy…) ?
>> 
>> Regards
>> JB
>> 
>>> Le 1 avr. 2020 à 17:54, stefang &lt;
> 
>> stefan.guenst@
> 
>> &gt; a écrit :
>>> 
>>> Hi,
>>> 
>>> actually we failed to use the proxy feature (
>>> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via
>>> Proxy
>>> (like squid, ...) based on this example.
>>> 
>>> karaf@root()> http:proxy-add /kibana http://remote_host:5601
>>> 
>>> Is there anything we missed ?
>>> 
>>> Regards
>>> 
>>> Stefan 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> 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>

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by stefang <st...@me.com>.
Hi JB,

we tried to configure proxy at JVM Level but without any luck.

Regards

Stefan



jbonofre wrote
> Hi Stefan,
> 
> It works fine directly on kibana for instance but not if you have a proxy
> forward in front of kibana (for instance squid, …) ?
> 
> Did you configure the http proxy at JVM level (-Dhttp.proxy…) ?
> 
> Regards
> JB
> 
>> Le 1 avr. 2020 à 17:54, stefang &lt;

> stefan.guenst@

> &gt; a écrit :
>> 
>> Hi,
>> 
>> actually we failed to use the proxy feature (
>> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via
>> Proxy
>> (like squid, ...) based on this example.
>> 
>> karaf@root()> http:proxy-add /kibana http://remote_host:5601
>> 
>> Is there anything we missed ?
>> 
>> Regards
>> 
>> Stefan 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf http proxy feature failed if destination is only reach over central Proxy like Squid

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Stefan,

It works fine directly on kibana for instance but not if you have a proxy forward in front of kibana (for instance squid, …) ?

Did you configure the http proxy at JVM level (-Dhttp.proxy…) ?

Regards
JB

> Le 1 avr. 2020 à 17:54, stefang <st...@me.com> a écrit :
> 
> Hi,
> 
> actually we failed to use the proxy feature (
> http://blog.nanthrax.net/?p=830 ) if real host is only reachable via Proxy
> (like squid, ...) based on this example.
> 
> karaf@root()> http:proxy-add /kibana http://remote_host:5601
> 
> Is there anything we missed ?
> 
> Regards
> 
> Stefan 
> 
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html