1. NAME intelligentmirror - Squid store url rewriter plugin for caching rpm/deb packages. 2. SYNOPSIS To be used to with squid as a store url rewriter plugin. 3. DESCRIPTION IntelligentMirror can be used to create a mirror of static HTTP content on your local network. When you download something (say a software package) from Internet, it is stored/cached on a local machine on your network and subsequent downloads of that particular software package are supplied from the storage/cache of the local machine. This facilitate the efficient usage of bandwidth and also reduces the average download time. This is especially useful in large networks. e.g. Universities. 4. DEPENDENCIES 1. python 2. python-iniparse 3. squid 2.7 (Doesn't work with squid <= 2.6 or squid 3.0) 5. CONFIGURATION To configure intelligentmirror, you need to configure your proxy server (squid), and the global intelligentmirror configuration file. Below are the steps to configure intelligentmirror. 5.1 Squid Configuration To configure squid to use intelligentmirror as a store url rewriter plugin, you need to add the following lines to your sqiud configu- ration file (generally found at /etc/squid/squid.conf ) # --BEGIN-- squid config for intelligentmirror # storeurl_rewrite_program /usr/bin/python /etc/squid/intelligentmirror/intelligentmirror.py storeurl_rewrite_children 15 acl store_rewrite_list urlpath_regex -i .rpm$ acl store_rewrite_list urlpath_regex -i .deb$ storeurl_access allow store_rewrite_list storeurl_access deny all # --END-- squid config for intelligentmirror # 5.2 intelligentmirror Global Configuration Config file : /etc/intelligentmirror.conf enable_rpm_cache Enable the intelligent caching of rpm packages. Default : 1 enable_deb_cache Enable the intelligent caching of deb packages. Default : 1 cache_host The hostname or IP address of the system on which caching is being done. This is used for serving the packages from the cache. The cached packages will be available at http://cache_host/rpm/.rpm or http://cache_host/deb/.deb . Please don’t use http:// or slashes (/). Just specify the domain name or IP address. Default : proxy.example.com logfile File to log all the intelligentmirror activities. Default : /var/log/squid/intelligentmirror.log 6. FILES /etc/intelligentmirror.conf /etc/squid/intelligentmirror/ /var/log/squid/intelligentmirror.log 7. SEE ALSO squid (8) https://fedorahosted.org/intelligentmirror How to configure squid : http://fedora.co.in/content/how-configure-squid-proxy-server How to write custorm squid redirector in python : http://fedora.co.in/content/writing-custom-redirector-plugin-squid-python 8. AUTHORS Kulbir Saini 9. BUGS Mail bugs/suggestions to Kulbir Saini