Images on 1st Link, Non-Images on 2nd Link - Config OK?

From: CNL Squid Users List <squid-users@dont-contact.us>
Date: Thu, 5 Aug 1999 10:07:48 +0530

Henrik, and Other Fellow Squiddie Buddies:

        I administer two proxies.

                                2 Mbps link to Mother ISP
                                        Link 1
                [ Proxy V ] ---------------------------------->
               (202.41.99.4)
                    |
                    |
                    | 128 Kbps link
                    |
                    | 2 Mbps link to Mother ISP
                    | Link 2
                [ Proxy N ]----------------------------------->
                (202.141.1.20)
                    |
                    |
                    |
                [ Client C ]
                (Huge Customer)

        I need to get documents from Link 1
        And images from Link 2

        So I have configured Proxy V to be the parent of Proxy N
        and contact parent for images, and go direct for non images.

        This works. Is there a better way to do this?

        I append relevant portions of my /etc/squid.conf on Proxy N

        Please help me.

Dinesh

-- 
acl all 		src 0.0.0.0/0.0.0.0
acl media 		urlpath_regex -i "/etc/squid/media.regex"
acl image 		urlpath_regex -i "/etc/squid/image.regex"
acl net_src_noc  	src 202.141.1.0/255.255.255.0
acl net_src_vsat_noc 	src 202.41.99.0/255.255.255.0
acl net_src_iisc 	src 144.16.64.0/255.255.224.0
acl net_dst_noc  	dst 202.141.1.0/255.255.255.0
acl net_dst_iisc 	dst 144.16.64.0/255.255.224.0
acl dom_iisc 		dstdomain iisc.ernet.in
cache_peer 202.41.99.4 parent 3128 3130
# do not query vsat-proxy for servers in the noc/iisc
# cache_peer_access 202.41.99.4 allow dom_umd
cache_peer_access 202.41.99.4 deny net_dst_noc
cache_peer_access 202.41.99.4 deny net_dst_iisc
cache_peer_access 202.41.99.4 deny dom_iisc
cache_peer_access 202.41.99.4 deny !image
# cache_peer_access 202.41.99.4 deny !chat
# delay_pools 1
# delay_class 1 1
# delay_access 1 allow net_src_noc
# delay_access 1 allow net_src_iisc
# delay_access 1 deny  all
# delay_parameters 1 12000/12000
http_access deny media
http_access allow net_src_noc
http_access allow net_src_iisc
http_access deny all
--
Received on Wed Aug 04 1999 - 22:45:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:51 MST