<div dir="ltr"><div>Uhm, you're right.</div><div><br>Anyway if can be useful for others in the future here's the script to fetch 2 files and mix 'em together preserving the set_real_ip_from formatting:</div><div>

{</div><div>    curl -s <a href="https://www.cloudflare.com/ips-v4">https://www.cloudflare.com/ips-v4</a></div><div>    printf '\n'</div><div>    curl -s <a href="https://www.cloudflare.com/ips-v6">https://www.cloudflare.com/ips-v6</a></div>

<div>} | sed -r 's/^(.+)$/set_real_ip_from \1;/g' > some-list.conf && nginx -s reload</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/30 Lorenzo Raffio <span dir="ltr"><<a href="mailto:multiformeingegno@gmail.com" target="_blank">multiformeingegno@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="georgia,serif">The idea is to have it built-in, without having to arrange a script that fetches an external file and appends each line to </font><font face="georgia, serif">set_real_ip_from and adds a ;<br>


It would be a hundreds bytes add and IMO would help many. It's just an idea anayway.</font></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/30 Lorenzo Raffio <span dir="ltr"><<a href="mailto:multiformeingegno@gmail.com" target="_blank">multiformeingegno@gmail.com</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="georgia,serif">What about adding the possibility to retrieve a list of</font><font face="georgia, serif"> set_real_ip_from from a text file online? I'm thinking about CloudFlare, that provides this 2 files (plain text): <a href="https://www.cloudflare.com/ips-v4" target="_blank">https://www.cloudflare.com/ips-v4</a> and <a href="https://www.cloudflare.com/ips-v6" target="_blank">https://www.cloudflare.com/ips-v6</a><br>



<br>It could be useful also for other big projects where nginx is used as proxy.</font></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>