[users@httpd] RE: How to add X-Forwarded-for header in reverse proxy with SSL passthrough

2021-01-05 Thread Bram Mertens
I received the answer on stackexchange: https://unix.stackexchange.com/questions/627492/how-to-add-x-forwarded-for-header-in-reverse-proxy-with-ssl-passthrough and would like to share it here in the hope it can help someone else. My mistake was that I added the RemoteIPHeader and

[users@httpd] How to add X-Forwarded-for header in reverse proxy with SSL passthrough

2021-01-04 Thread Bram Mertens
.tech/learning-center/x-forwarded-for-ip-apache-web-server/) propose to use RemoteIPHeader X-Forwarded-For. However it seems that this only works when the proxy connection to the backend uses HTTP. (https://www.linode.com/community/questions/6351/ideas-to-get-x-forwarded-for-working-for-http

Re: [users@httpd] x-forwarded-for logging

2020-03-25 Thread Antony Stone
On Wednesday 25 March 2020 at 13:33:01, Mark Lybarger wrote: > I'm logging x-forwarded-for traffic, and i get logs that show: > > 99.88.22.22%123 > > what is the %123 portion? Can you show us the LogFormat definition you're using? Antony. -- Having been asked for a

[users@httpd] x-forwarded-for logging

2020-03-25 Thread Mark Lybarger
I'm logging x-forwarded-for traffic, and i get logs that show: 99.88.22.22%123 what is the %123 portion?

Re: [users@httpd] Can't get X-Forwarded-For to be passed through to app with apache reverse proxy

2019-09-24 Thread William A Rowe Jr
att wrote: > I have tried everything and I can't get Apache (2.4.39) to pass the > X-Forwarded-For header to my tomcat (8.5) instance. > > I have apache listening on port 8081 and bound to the public IP address as > a reverse proxy to a backend tomcat instance which is also bo

Re: [users@httpd] Can't get X-Forwarded-For to be passed through to app with apache reverse proxy

2019-09-23 Thread Konstantin Kolinko
пн, 23 сент. 2019 г. в 20:45, John Pyeatt : > > I have tried everything and I can't get Apache (2.4.39) to pass the > X-Forwarded-For header to my tomcat (8.5) instance. > > I have apache listening on port 8081 and bound to the public IP address as a > reverse proxy to a

[users@httpd] Can't get X-Forwarded-For to be passed through to app with apache reverse proxy

2019-09-23 Thread John Pyeatt
I have tried everything and I can't get Apache (2.4.39) to pass the X-Forwarded-For header to my tomcat (8.5) instance. I have apache listening on port 8081 and bound to the public IP address as a reverse proxy to a backend tomcat instance which is also bound to 8081 but on 127.0.0.1. My a

[users@httpd] X-Forwarded-For and If directive

2019-09-04 Thread Michael Nielsen
ge "No IP match [%{HTTP:X-Forwarded-For}]" produces the following log output: [Wed Sep 04 17:57:03.611095 2019] [log_debug:info] [pid 11134] [client 10.128.10.9:53515] No IP match [10.128.10.9] Clearly X-Forwarded-For has the value '10.128.10.9', which is certainly within the

[users@httpd] Re: X-Forwarded-For header is missing

2017-11-12 Thread Surendhar Thallapelly
Hi, As we discussed below, for only webservice calls X-Forwarded-For header is not added from apache, remaining other technologies it is adding fine. One more thing is, X-Forwarded-Host is working always - even for webservice call as well. I reported bug on this https://bz.apache.org/bugzilla

[users@httpd] Re: X-Forwarded-For header is missing

2017-11-08 Thread Surendhar Thallapelly
Hi Konstantin, It is not processed and deleted by backend. I enabled x-forwarded-for logging, it confirms our Apache webserver is not adding xff header. However xfh header added always. RemoteIpValve is not configured at Apache tomcat. We already placed ProxyAddHeaders after load modules only

[users@httpd] Re: X-Forwarded-For header is missing

2017-11-08 Thread Surendhar Thallapelly
already receiving client IP, only missing thing is webserver IP. Thanks, Surendhar On Wednesday, November 8, 2017, Daniel wrote: > That's odd because default behaviour is to add X-Forwarded-For, > ProxyAddHeaders is the default even if you don't specify it. It should > be there. &

Re: [users@httpd] X-Forwarded-For header is missing

2017-11-08 Thread Konstantin Kolinko
2017-11-07 21:44 GMT+03:00 Surendhar Thallapelly : > Hi Konstantin, > >> Hi Team, >> >> I configured apache http web server to redirect incoming WEBSERVICE call >> to >> another backend application server, X-Forwarded-For is missing(webserver >> ip) &

Re: [users@httpd] X-Forwarded-For header is missing

2017-11-08 Thread Daniel
That's odd because default behaviour is to add X-Forwarded-For, ProxyAddHeaders is the default even if you don't specify it. It should be there. Try adding it to LogFormat with: %{X-Forwarded-For}i Also try to log request headers reaching your backend and show logs. This is not a co

Re: [users@httpd] X-Forwarded-For header is missing

2017-11-07 Thread Surendhar Thallapelly
Hi Konstantin, > Hi Team, > > I configured apache http web server to redirect incoming WEBSERVICE call to > another backend application server, X-Forwarded-For is missing(webserver ip) > in backend call. > > I have configured below in my webserver httpd.conf file. > >

Re: [users@httpd] X-Forwarded-For header is missing

2017-11-07 Thread Konstantin Kolinko
2017-11-07 9:34 GMT+03:00 Surendhar Thallapelly : > Hi Team, > > I configured apache http web server to redirect incoming WEBSERVICE call to > another backend application server, X-Forwarded-For is missing(webserver ip) > in backend call. > > I have configured below in my webs

[users@httpd] X-Forwarded-For header is missing

2017-11-06 Thread Surendhar Thallapelly
Hi Team, I configured apache http web server to redirect incoming WEBSERVICE call to another backend application server, X-Forwarded-For is missing(webserver ip) in backend call. I have configured below in my webserver httpd.conf file. ProxyPass /TestProject http://10.160.160.33:2914

[users@httpd] Re: Apache logs not working properly with mod_remoteip and X-forwarded-for

2015-12-09 Thread georgi....@gmail.com
works and with the other services like awstatus, server-status etc. On 12/08/2015 12:42 PM, georgi@gmail.com wrote: Hello, I am using varnish which send x-forwarded-for to apache 2.4 and on the apache site i have mod_remoteip with the following configuration: RemoteIPHeader X-Forwarded-For

[users@httpd] Re: Apache logs not working properly with mod_remoteip and X-forwarded-for

2015-12-09 Thread georgi....@gmail.com
:42 PM, georgi@gmail.com wrote: Hello, I am using varnish which send x-forwarded-for to apache 2.4 and on the apache site i have mod_remoteip with the following configuration: RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 77.77.77.77 RemoteIPInternalProxy 127.0.0.1 On 2.2 with rpaf

[users@httpd] Re: Apache logs not working properly with mod_remoteip and X-forwarded-for

2015-12-08 Thread georgi....@gmail.com
Also I would like to ask you if by this way I just lie only the logs, or everything will works and with the other services like awstatus, server-status etc. On 12/08/2015 12:42 PM, georgi@gmail.com wrote: Hello, I am using varnish which send x-forwarded-for to apache 2.4 and on the

[users@httpd] Apache logs not working properly with mod_remoteip and X-forwarded-for

2015-12-08 Thread georgi....@gmail.com
Hello, I am using varnish which send x-forwarded-for to apache 2.4 and on the apache site i have mod_remoteip with the following configuration: RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 77.77.77.77 RemoteIPInternalProxy 127.0.0.1 On 2.2 with rpaf module eveything is ok without

Re: [users@httpd] X-Forwarded-For

2013-10-25 Thread Yehuda Katz
replace the client IP, you will need some kind of module or code change (there are others besides the cloudflare one). - Y On Friday, October 25, 2013, Chris Arnold wrote: > >The X-Forwarded-For header is set by Apache automatically ( > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#

Re: [users@httpd] X-Forwarded-For

2013-10-25 Thread Chris Arnold
> The X-Forwarded-For header is set by Apache automatically ( > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers ). Your inside > servers need to know to use it. >CloudFlare has some documentation about how > to handle this on different servers: > https://support

Re: [users@httpd] X-Forwarded-For

2013-10-24 Thread Yehuda Katz
The X-Forwarded-For header is set by Apache automatically ( http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers). Your inside servers need to know to use it. CloudFlare has some documentation about how to handle this on different servers: https://support.cloudflare.com/hc/en-us/sections

[users@httpd] X-Forwarded-For

2013-10-24 Thread Chris Arnold
Apache 2.2 (i believe) on sles11. We have some servers behind our apache (reverse) proxy. When connections come in to apache and apache proxies the connections, the logs show the apache proxy ip. We need to see the originating ip. I have seen on the internet that x-forwarded-for will do this

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread William A. Rowe Jr.
On 10/19/2010 11:53 AM, Igor Galić wrote: > > +1 for 2.4.0 GA then (: > Or as soon as possible.. I'm already moving my testing instances to 2.3.x Step 1 is broad acceptance of the 2.3.x beta. We'll likely ship a new one two weeks from now, after many of the developers have a chance to sit down t

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread Igor Galić
- "William A. Rowe Jr." wrote: > On 10/19/2010 11:20 AM, Igor Galić wrote: > > Hi Bill, > > > >> Some modules I've moved back to 2.2, including remoteip, can be > found > >> here; > > > > Not many people will think about looking under: > > > >> http://people.apache.org/~wrowe/httpd-2.2-p

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread William A. Rowe Jr.
On 10/19/2010 11:20 AM, Igor Galić wrote: > Hi Bill, > >> Some modules I've moved back to 2.2, including remoteip, can be found >> here; > > Not many people will think about looking under: > >> http://people.apache.org/~wrowe/httpd-2.2-ports/ > > when looking for such modules.. would it make s

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread Igor Galić
Hi Bill, > Some modules I've moved back to 2.2, including remoteip, can be found > here; Not many people will think about looking under: > http://people.apache.org/~wrowe/httpd-2.2-ports/ --- apxs should work > for you > with those sources. when looking for such modules.. would it make sense t

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread J.Lance Wilkinson
this module right now). But I don't see the header "X-Forwarded-For" cited anywhere in the mod_proxy documentation, and I would expect that if this is a typical use of mod_proxy, there'd be SOMETHING like that noted there. Thoughts on either the refitting for Apache 2.2

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread William A. Rowe Jr.
g this module right now). But I don't see > the header > "X-Forwarded-For" cited anywhere in the mod_proxy documentation, and I would > expect that > if this is a typical use of mod_proxy, there'd be SOMETHING like that noted > there. > > Thoughts on either th

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread J.Lance Wilkinson
Igor Galić wrote: mod_remoteip is a module from 2.3 http://httpd.apache.org/docs/trunk/mod/mod_remoteip.html Thus you can find it in: Apache httpd's subversion respository in /trunk/ https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/proxy/ Yep, that's where I finally found it

Re: [us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread Igor Galić
- "J.Lance Wilkinson" wrote: > I've got Apache 2.2.6 in production and we're *trialling* a new load > balancer > which is able to create an X-FORWARDED-FOR header. > > I wanted to keep things simple as possible, and it looked like > mod_remoteip was

[us...@httpd] Handling load balancer's X-FORWARDED-FOR header: mod_proxy vs mod_remoteip and Apache 2.2.6

2010-10-19 Thread J.Lance Wilkinson
I've got Apache 2.2.6 in production and we're *trialling* a new load balancer which is able to create an X-FORWARDED-FOR header. I wanted to keep things simple as possible, and it looked like mod_remoteip was the module I wanted to use for this purpose. Simply using the mo

Re: [us...@httpd] Recording X-Forwarded-For header in HTTP request

2010-06-03 Thread Tapas Mishra
Actually I am able to get the X-Forwarded-For fields on servers which are running Ubuntu and I have done same configuration on them. In CentOS I am not able to get them.With same configuration. On Thu, Jun 3, 2010 at 11:08 PM, Emmanuel Bailleul wrote: >> -Message d'origine- &g

RE: [us...@httpd] Recording X-Forwarded-For header in HTTP request

2010-06-03 Thread Emmanuel Bailleul
> -Message d'origine- > De : Tapas Mishra [mailto:mightydre...@gmail.com] > Envoyé : jeudi 3 juin 2010 16:32 > À : users@httpd.apache.org > Objet : Re: [us...@httpd] Recording X-Forwarded-For header in HTTP request > > On Thu, Jun 3, 2010 at 7:52 PM, Eric

Re: [us...@httpd] Recording X-Forwarded-For header in HTTP request

2010-06-03 Thread Tapas Mishra
virtualhost in apache which is listening on port 80 where as the software is running on port 8080 > If there was a line, but no value for x-forwarded-for, maybe it > wasn't a request header?  You can verify with wireshark. > -- Tapas

Re: [us...@httpd] Recording X-Forwarded-For header in HTTP request

2010-06-03 Thread Eric Covener
> to my surprise I did not found any thing in If there was no line in the log, then you addded it in an incorrect vhost. If there was a line, but no value for x-forwarded-for, maybe it wasn't a request header? You can verify with wireshark. -- Eric Covener cove...@g

[us...@httpd] Recording X-Forwarded-For header in HTTP request

2010-06-03 Thread Tapas Mishra
[code] LogFormat "%v %{X-Forwarded-For}i %D %l %u %t \"%r\" %>s %b" resp [/code] and in VirtualHost section added [code] CustomLog /var/log/httpd/site_in_question-resp_log resp [/code] restarted httpd and checked the logs to my surprise I did not found any thing in [code] C

Re: X-Forwarded-For

2008-12-15 Thread Scott Gifford
"Mohit Anchlia" writes: > Our traffic is going through proxy, how can I enable X-Forwarded-For > in apache to get the original IP. Does this also work for users using > ISP (private IP) and are behind the ISP router. Do you mean you have Apache acting as a proxy and you wa

X-Forwarded-For

2008-12-15 Thread Mohit Anchlia
Our traffic is going through proxy, how can I enable X-Forwarded-For in apache to get the original IP. Does this also work for users using ISP (private IP) and are behind the ISP router. - To unsubscribe, e-mail: users-unsubscr

[EMAIL PROTECTED] Unsetting X-Forwarded-For in mod_proxy

2008-06-26 Thread Mike Cardwell
Hi, I have an Apache 2.2 reverse proxy in front of a server which I can not modify. The server which I can not modify contains an application which behaves differently if a request for it contains an X-Forwarded-For header. I can not modify this application. The problem is, mod_proxy adds

[EMAIL PROTECTED] mod_proxy: is it possible to remove/unset X-Forwarded-For header

2008-01-21 Thread Callum Haig
I'm using mod_proxy to proxy requests to an application which does not respond properly when mod_proxy adds the X-Forwarded-For header. I'd like to remove the header from the proxied request, but my attempts to do so using mod_headers have failed. This might indicate that the additio

Re: [EMAIL PROTECTED] RE: [SPAM] - [EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration? - Email found in subject

2007-10-26 Thread Nick Kew
On Fri, 26 Oct 2007 09:55:33 +0200 "Michael Grund" <[EMAIL PROTECTED]> wrote: > What should configure in the Reverse Proxy (Apache) so that it writes > an X-Forwared-For Header? It does that by default, at least in current versions. You can see that and other nonstandard headers by running the p

Re: [EMAIL PROTECTED] RE: [SPAM] - [EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration? - Email found in subject

2007-10-26 Thread Michael Grund
I insert "LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v %{X-Forwarded-For}i" xfull" but i didnt get any Log :( I only see the Ip from the Reverse Proxy. What should configure in the Reverse Proxy (Apache) so th

RE: [EMAIL PROTECTED] RE: [SPAM] - [EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration? - Email found in subject

2007-10-25 Thread jmacaranas
Hmm... assuming that the proxy inserts x-forwarded-for From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 9:45 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RE: [SPAM] - [EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration? - Email found

[EMAIL PROTECTED] RE: [SPAM] - [EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration? - Email found in subject

2007-10-25 Thread jmacaranas
You can see it in the logs provided that you add X-forwarded-for in the log config... but from the page itself I think you need to extract it from header... From: Michael Grund [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 9:06 AM To: users@httpd.apache.org Subject: [SPAM

[EMAIL PROTECTED] Reserve Proxy / X-Forwarded-FOR Configuration?

2007-10-25 Thread Michael Grund
Hi, all i have the problem to configure an Apache with X-Forwarded-For so my other Apache Server can see the Ip Address from the Client and not from the Reverse Proxy. I dont know what i should configure in the Apache. The Reverse Proxy work but i see only the Ip of the Proxy :( Do i need the

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-03 Thread tom
That would be the best way, but don't know how to do that in httpd.conf... > > > > > > On 8/2/07, tom <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > thanks, works fine. Do you know if I can rename a header? I was trying > > > > to > do > > > it l

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-02 Thread Morgan Gangwere
On 8/2/07, tom <[EMAIL PROTECTED]> wrote: > Many thanks again !! > One last think, how do I match the whole string with (.*) I match nothing.. I > tried some things like (.*+) and (.+) but none of them seems to work. > > Thanks > Tomas > > > > On 8/2/07, to

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-02 Thread tom
Many thanks again !! One last think, how do I match the whole string with (.*) I match nothing.. I tried some things like (.*+) and (.+) but none of them seems to work. Thanks Tomas > > On 8/2/07, tom <[EMAIL PROTECTED]> wrote: > > Hi, > > > > thanks, wor

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-02 Thread Joshua Slive
On 8/2/07, tom <[EMAIL PROTECTED]> wrote: > Hi, > > thanks, works fine. Do you know if I can rename a header? I was trying to do > it like this > > SetEnvIf X-Powered-By "(.*)" HAVE_X-Powered-By=$1 > Header add X-Original-Powered-By $HAVE_X-Powered-By$ env=HAVE_X-Powered-By > Header unset X-Power

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-02 Thread tom
is that I don't know how to access the HAVE_X-Powered-By variable at the second line ($HAVE_X-Powered-By$). Thanks in advance, Tomas > On 8/1/07, tom <[EMAIL PROTECTED]> wrote: > > Hi, > > > > is there a way to remove the X-Forwarded-For header from the request be

Re: [EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-01 Thread Joshua Slive
On 8/1/07, tom <[EMAIL PROTECTED]> wrote: > Hi, > > is there a way to remove the X-Forwarded-For header from the request before > it enters some point in the request route through apache? I need this because > the weblogic module honors the header and this is not what is

[EMAIL PROTECTED] ignore/remove X-Forwarded-For

2007-08-01 Thread tom
Hi, is there a way to remove the X-Forwarded-For header from the request before it enters some point in the request route through apache? I need this because the weblogic module honors the header and this is not what is needed by us. Thanks for your responses Tomas

Re: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread Joshua Slive
On 2/2/07, Yu, Ming <[EMAIL PROTECTED]> wrote: Is there a way or a module for Apache to get the X-Forwarded-For header? If you just want to see it in the logs, you can access it directly as a request header. If you want it to be used in place of the real IP address for access control/et

RE: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread Yu, Ming
Is there a way or a module for Apache to get the X-Forwarded-For header? - Ming -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Friday, February 02, 2007 8:46 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] X-Forwarded

Re: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread Joshua Slive
On 2/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all, Does apache automatically log the client IP address if the client goes through a proxy that sends an X-Forwarded-For header? No. Doing so would allow trivial spoofing since the X-Forwarded-For header is completely und

[EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread nick
Hi all, Does apache automatically log the client IP address if the client goes through a proxy that sends an X-Forwarded-For header? If i set up a proxy for people, and do NOT want it to be anonymous, will my proxy ip show up in other servers http-access logs? If so, is there any indication of

Re: [EMAIL PROTECTED] Apache & X-Forwarded-For

2005-09-01 Thread Sander Smeenk
Quoting Sander Smeenk ([EMAIL PROTECTED]): > I'd like to hear from people if they have experience in tracking how > many users are 'hidden' behind proxies that visit their site. I think i am right to state that mod_usertrack is used for this. I'm now experimenting with it :) -- | From the FidoN

[EMAIL PROTECTED] Apache & X-Forwarded-For

2005-09-01 Thread Sander Smeenk
Hello, I'd like to hear from people if they have experience in tracking how many users are 'hidden' behind proxies that visit their site. How can I find out how many there are? From what I know all well-behaving proxies should add a X-Forwarded-For header with the real IP addres