|Anonymous | Login | Signup for a new account||2018-10-23 21:12 BST|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001500||Xdebug||Remote Debugging||public||2017-12-06 18:56||2017-12-07 12:13|
|Target Version||Fixed in Version|
|Summary||0001500: remote_connect_back fails to connect when HTTP_X_FORWARDED_FOR contains comma-delimited ip addresses|
|Description||remote_connect_back fails to connect when HTTP_X_FORWARDED_FOR contains comma-delimited ip addresses. This usually happens when the application is behind multiple proxies. In my case, the application is behind an HAProxy and an NGINX.|
I would expect that it would pull the first ip address out of the list, as usually this is the one that represents the client's ip address (see https://en.wikipedia.org/wiki/X-Forwarded-For#Format [^])
|Steps To Reproduce||1. Setup a php application with two levels of proxies, i.e. HAProxy -> NGINX -> apache php application|
2. configure xdebug for remote debugging with connect back: remote_enable=1 remote_connect_back=1
3. visit php application with ?XDEBUG_SESSION_START=foo
see in the logs that it failed.
|Additional Information||Relevant log output:|
Log opened at 2017-12-06 18:43:51
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Remote address found, connecting to 10.24.3.223, 10.24.55.84:9000.
W: Creating socket for '10.24.3.223, 10.24.55.84:9000', getaddrinfo: Not a directory.
E: Could not connect to client. :-(
Log closed at 2017-12-06 18:43:51
|Tags||No tags attached.|
|This is a duplicate of https://bugs.xdebug.org/bug_view_page.php?bug_id=00000964, [^] which got fixed and release as part of 2.6.0alpha1: https://xdebug.org/updates.php#x_2_6_0alpha1 [^]|
|Thanks, searched but didn't see it!|
|2017-12-06 18:56||chadxz||New Issue|
|2017-12-07 10:51||derick||Note Added: 0004503|
|2017-12-07 10:51||derick||Relationship added||duplicate of 0000964|
|2017-12-07 10:51||derick||Status||new => resolved|
|2017-12-07 10:51||derick||Resolution||open => duplicate|
|2017-12-07 10:51||derick||Assigned To||=> derick|
|2017-12-07 12:13||chadxz||Note Added: 0004504|
|Copyright © 2000 - 2018 MantisBT Team|