Help with IP Detection when using SSL
Simon Lennon, OnCommerce Ltd.
simon.lennon at oncommerce.co.uk
Wed Dec 4 12:52:04 CET 2013
Hi I have a very strange issue and the hosting company is telling me its
not possible I am hoping you guys can help.
I have a nginx / varnish which acts as a load balancer and cache sitting
in front of my webservers. My web servers are standard apache web servers.
I am having problems with detecting the genuine IP address of users
connecting to the system. The $_SERVER["REMOTE_ADDR"] shows the IP
address of the load balancer/cache and not of the user visiting the site.
We have written a hack so that with HTTP traffic we send through an
X-Forwarded-For header with the correct IP address, but I have been told
this is not possible with SSL.
Unfortunately due to strict security requirements we are not able to
offload SSL onto the load balancer/cache it has to go to apache.
Has anyone got any ideas on how we could detect the IP address, when
using SSL?
(I have also posted this on stackoverflow, feel free to reply to either,
http://stackoverflow.com/questions/20349943/varnish-nginx-ssl-ip-detection-issue)
many thanks,
Simon
--
*Simon Lennon*
Technical Director
OnCommerce Ltd.
+44 (0) 1202 970 940
OnBay | Mr Snaps
oncommerce
*www.oncommerce.co.uk <http://www.oncommerce.co.uk/> *
Follow Us on Twitter <https://twitter.com/OnCommerceLtd>Find Us On
Facebook <http://www.facebook.com/OnCommerceLtd>Find Us On Google+
<https://plus.google.com/110931495978569752116>
onbuy
*www.onbuy.co.uk <http://www.onbuy.co.uk/> *
Follow Us on Twitter <https://twitter.com/OnBuy_UK>Find Us On Facebook
<https://www.facebook.com/OnBuy.co.uk>Find Us On Google+
<https://plus.google.com/105033918753905864428>
onrecycle
*www.onrecycle.co.uk <http://www.onrecycle.co.uk/> *
Follow Us on Twitter <https://twitter.com/onrecycleuk>Find Us On
Facebook <https://www.facebook.com/OnRecycle>Find Us On Google+
<https://plus.google.com/112145148704994295234>
OnBuy and OnRecycle are trading names of OnCommerce Ltd which is a
registered company in England & Wales, Company Number: 08358927. Our
trading address is: C/O Centerprise International, Hampshire
International Business Park, Lime Tree Way, Basingstoke, Hampshire, RG24
8GQ. OnCommerce is a registered trademark no. 2540468.
OnCommerce Ltd is a Centeprise International Group Company.
This electronic message contains information from OnCommerce Ltd, which
may be legally privileged and confidential. The information is intended
to be for the use of the individual(s) or entity named above. If you are
not the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information is prohibited.
If you have received this electronic message in error, please notify us
by telephone (to the number above) or e-mail immediately. Any views,
opinions or advice expressed in this electronic message are not
necessarily the views, opinions or advice of OnCommerce Ltd. It is the
responsibility of the recipient to ensure that any attachments are virus
free and OnCommerce Ltd. bear no responsibility for any loss or damage
arising in any way from the use thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_senor_pinchy.png
Type: image/png
Size: 4332 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature2_12.jpg
Type: image/jpeg
Size: 1244 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_oncommerce_logo.png
Type: image/png
Size: 5758 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_footer_twitter.png
Type: image/png
Size: 3575 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_footer_facebook.png
Type: image/png
Size: 2802 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_footer_google.png
Type: image/png
Size: 2856 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_onbuy.png
Type: image/png
Size: 5216 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_onrecycle_logo.png
Type: image/png
Size: 6416 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature2_13.jpg
Type: image/jpeg
Size: 1298 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onbay_email_centerprise_logo.png
Type: image/png
Size: 9852 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spacer.gif
Type: image/gif
Size: 13126 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131204/d1f8e65a/attachment-0001.gif>
More information about the varnish-misc
mailing list