<div dir="ltr"><div>Thanks itpp but the issue is still same and still the ip is from the main server in inspect element as well as in local-caching nginx access logs, i am getting the client ip as main-server's ip instead of original client ip and i am sure that i am doing something wrong. Well i have another question now, as our test with CIDR notation worked well with nginx geo module and nginx decided to route specific ips to specific server (caching server).<br>
<br></div>So, the specific subnet coming from our ISP to the main server will be routed to the local caching server and our ISP will have to tell us each time to add specific ip prefix in the nginx config to route them towards their caching server. So the problem is, whenever few hundreds ip prefixes are added to their network, they'll have to provide us those prefixes in order to enable caching for newly added ips.<br>
<div><br>We just had a chat with our local ISP and he said that you should use some services like BGP to automatically detect if any new ip prefixes are added to our network and we'll not have to tell you each time we add some ip prefixes to our network.<br>
<br></div><div>Could you guide me how could i make this work in our environment. The basic architecture of our network is :-<br><br></div><div>Two static servers (serving mp4,jpg). One server located in US and one server located in Local ISP. <br>
</div><div><br></div><div>I hope you can put me on some track as you did in the past and provide me some kick start to work with BGP.<br><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jun 16, 2014 at 10:41 PM, itpp2012 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
shahzaib1232 Wrote:<br>
-------------------------------------------------------<br>
<div class=""><br>
> Maybe i need to add some variable to get original server ip ?<br>
<br>
</div><a href="https://www.google.nl/#q=nginx+geo+remote+ip+address" target="_blank">https://www.google.nl/#q=nginx+geo+remote+ip+address</a><br>
<br>
<a href="http://www.cyberciti.biz/faq/nginx-redirect-backend-traffic-based-upon-client-ip-address/" target="_blank">http://www.cyberciti.biz/faq/nginx-redirect-backend-traffic-based-upon-client-ip-address/</a><br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,249997,250895#msg-250895" target="_blank">http://forum.nginx.org/read.php?2,249997,250895#msg-250895</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>