<br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 3:10 PM, Ahmed Kamal <span dir="ltr"><<a href="mailto:ahmed.kamal@canonical.com">ahmed.kamal@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">On 03/22/2011 10:40 AM, Kaushal Shriyan wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Is there a way to forcefully redirect the client to Local Ubuntu<br>
Mirror ? The reason being we do not want to choke Internet bandwidth<br>
while visiting Global Ubuntu Mirror.<br>
</blockquote></div></div>
Hi, You might enjoy this highly elegant way of Ubuntu updates caching and advertising over avahi to local clients<br>
<a href="http://popey.com/blog/2010/12/31/caching-ubuntu-package-downloads/" target="_blank">http://popey.com/blog/2010/12/31/caching-ubuntu-package-downloads/</a><br><font color="#888888">
<br>
-- <br>
ubuntu-mirrors mailing list<br>
<a href="mailto:ubuntu-mirrors@lists.ubuntu.com" target="_blank">ubuntu-mirrors@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-mirrors</a><br>
</font></blockquote></div><br>Hi,<br><br>I have added the below entries in /etc/jesred.rules <br><br>regex ^http://((.*)<a href="http://archive.ubuntu.com/ubuntu/(dists|pool)/.*)$">archive.ubuntu.com/ubuntu/(dists|pool)/.*)$</a>    <a href="http://172.26.0.164">http://172.26.0.164</a><br>

regex ^http://(<a href="http://security.ubuntu.com/ubuntu/(dists|pool)/.*)$">security.ubuntu.com/ubuntu/(dists|pool)/.*)$</a>    <a href="http://172.26.0.164">http://172.26.0.164</a><br>and restarted squid<br><br>I have local ubuntu mirror 172.26.0.164 using deb-mirror method but still it points to Global mirror<br>

Please suggest<br><br>Thanks<br><br>Kaushal<br>