From owner-freebsd-questions@FreeBSD.ORG Mon Aug 27 10:41:22 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A582F16A418 for ; Mon, 27 Aug 2007 10:41:22 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: from smtp5.wlink.com.np (smtp5.wlink.com.np [202.79.32.52]) by mx1.freebsd.org (Postfix) with SMTP id 59D3613C46C for ; Mon, 27 Aug 2007 10:41:19 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: (qmail 59944 invoked from network); 27 Aug 2007 10:13:10 -0000 Received: from unknown (HELO smtp2.wlink.com.np) (202.79.32.49) by 0 with SMTP; 27 Aug 2007 10:13:10 -0000 Received: (qmail 48258 invoked by uid 98); 27 Aug 2007 10:13:09 -0000 Received: from 202.79.36.7 by smtp2.wlink.com.np (envelope-from , uid 1010) with qmail-scanner-1.25 (clamdscan: 0.90.3/3492. Clear:RC:1(202.79.36.7):. Processed in 0.054264 secs); 27 Aug 2007 10:13:09 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp2.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.36.7):. Processed in 0.054264 secs) Received: from [202.79.36.7] (HELO [202.79.36.7]) by smtp2.wlink.com.np (qmail-smtpd) with SMTP; 27 Aug 2007 10:13:03 -0000 (Mon, 27 Aug 2007 15:58:03 +0545) Message-ID: <46D2A39F.2050601@wlink.com.np> Date: Mon, 27 Aug 2007 15:57:47 +0545 From: Tek Bahadur Limbu User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Prakash Poudyal References: <1428d0e80708260849t350981eerd0883d240956f999@mail.gmail.com> In-Reply-To: <1428d0e80708260849t350981eerd0883d240956f999@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp2.wlink.com.np Spam: No ; 0.3 / 7.0 X-Spam-Status-WL: No, hits=0.3 required=7.0 Cc: freebsd-questions@freebsd.org Subject: Re: How to make good Squid(Proxy ) Server in FreeBSD 5.4 ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2007 10:41:22 -0000 Hi Prakash, Prakash Poudyal wrote: > Hello Everybody, > > Can anybody give me idea related to configure the squid (proxy server). I > need to know hhow much I need to fix the cache memeory . My machine consist > of 2 GB Ram and dual processor . And operating system is FreeBSD 5.4. And I > do have client more than 500 and most of them are research orriented. And > also I am trying to configure another proxy server as for the parent proxy. > So please tell me how to make parent proxy as well. So please give me some > idea or tips so that I could run the server properly and my clients would > have a good smile in there face. > Configuring a Squid proxy server is a long and enduring process. Also it depends upon what you want to achieve. A high hit ratio rate, fast median service times, etc. There is no shortcut in setting up a proxy server. As time goes on, you need different settings to tune it. What worked today might not work tomorrow. With FreeBSD, you have an 2 options to install Squid. Either from ports or source. If you are install Squid from source, the following options might help: '--enable-removal-policies=lru heap' '--enable-storeio=coss,ufs diskd null aufs' '--enable-delay-pools' '--enable-snmp' '--enable-cache-digests' '--with-large-files' '--enable-large-cache-files' '--enable-kill-parent-hack' Also, I suggest you to go with the latest version of Squid which is squid-2.6.14 currently. Version-2.6 is extremely CPU friendly. Regarding the cache_mem parameter, just use 32 MB for a default option. A system with 2 GB of memory and Dual processor should be able to handle 500 or more customers. Regarding a parent-child hierarchy using Squid, just configure and install the parent Squid as you would do normally. In your child Squid proxy, just add the following lines in your squid.conf: cache_peer ParentProxyIP parent 3128 3130 That should do it for a basic parent/child relationship. Your Squid Port and ICP port might be different. Hope it helps. Thanking you... > Thank you, > > > > Prakash > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > -- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal http://www.wlink.com.np