Unable to use debugger, when In-Portal behind load balancer

7 views
Skip to first unread message

Alexander Obuhovich

unread,
May 16, 2012, 8:25:13 AM5/16/12
to In-Portal Bugs
I was unable to use DBG_IP (ip-based debugger access) feature of In-Portal when it was installed on webserver behind load balancer, like EC2 uses.

This was happening, because $_SERVER['REMOTE_ADDR'] was telling load balancer IP address, but $_SERVER['X_HTTP_FORWARDED_FOR'] was telling actual website visitor address.

Dmitry A.

unread,
May 17, 2012, 12:18:17 AM5/17/12
to in-port...@googlegroups.com
Strange Load Balancer behavior (non-standard) since on my experience all / most Hardware Load Balancers pass through User IP to the server.

In any case, it would be nice of you to create a Task and Patch if possible to check for  $_SERVER['X_HTTP_FORWARDED_FOR'] if is empty $_SERVER['REMOTE_ADDR'] ?


DA

Alexander Obuhovich

unread,
May 17, 2012, 3:41:19 AM5/17/12
to in-port...@googlegroups.com
Also it would be good for kCurlHelper class to pass this X_HTTP_FORWARDED_FOR to any website he connects too.
This way target website would know who originally made a request.




DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/mhOLNKu8cF4J.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry A.

unread,
May 17, 2012, 7:19:43 PM5/17/12
to in-port...@googlegroups.com
Hi Alex,


Please create task for this!

In regards to "kCurlHelper class to pass this X_HTTP_FORWARDED_FOR to any website he connects too" - I believe it should be optional so User can enable if required by other party.


DA

Alexander Obuhovich

unread,
Jun 11, 2012, 9:16:03 AM6/11/12
to in-port...@googlegroups.com
Here is the task: http://tracker.in-portal.org/view.php?id=1317





DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/ENw8w-CAud4J.

To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Oct 10, 2012, 9:25:16 AM10/10/12
to in-port...@googlegroups.com
Here are the patches.

Ready for testing.
improved_client_ip_detection_core.patch
improved_client_ip_detection_modules.patch
Reply all
Reply to author
Forward
0 new messages