From owner-freebsd-questions@FreeBSD.ORG Mon Aug 27 17:48:03 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 3A7A516A419 for ; Mon, 27 Aug 2007 17:48:03 +0000 (UTC) (envelope-from bsdprakash@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id B2AD713C4B6 for ; Mon, 27 Aug 2007 17:48:02 +0000 (UTC) (envelope-from bsdprakash@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so74338ugf for ; Mon, 27 Aug 2007 10:48:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=bRGtxJHpzgyEKne1WIuhBagRSNZNlwUC5DJOQv2ihVGnBv/SOHKMjCi+fkH/c4zYuCAdVmptCPGNCG86KKmE1lY2rqloMvwM3mTCBjueYJCYQG328mVkKwH6KKtdI3Wx3FdEOSHYYQ++mTonm9UwdgQWuiW8PJuemuaduMJr2SQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qT0SqeQxvpfxS599DxRxitwW2ImF0VjL0D+83tsDxXFJDZf4bwHghh7SkMpKvDP/vkEXMQ55FTzAr32eGU8lBE1oq4Lve6RXvFfvP+Xht72zLX8LjWTVVUL4IQKDoIujAS6dt/r7v/vsKx84pBkb8dfmCPkNh7tju7E3bbKi5qU= Received: by 10.142.49.4 with SMTP id w4mr531213wfw.1188236879498; Mon, 27 Aug 2007 10:47:59 -0700 (PDT) Received: by 10.143.158.2 with HTTP; Mon, 27 Aug 2007 10:47:59 -0700 (PDT) Message-ID: <1428d0e80708271047g4a5c9891r9fd82b4dd027454c@mail.gmail.com> Date: Mon, 27 Aug 2007 23:32:59 +0545 From: "Prakash Poudyal" To: "Tek Bahadur Limbu" In-Reply-To: <46D2A39F.2050601@wlink.com.np> MIME-Version: 1.0 References: <1428d0e80708260849t350981eerd0883d240956f999@mail.gmail.com> <46D2A39F.2050601@wlink.com.np> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 17:48:03 -0000 Thank you Tek, I will try best to do it, else I will mail you again. Thank you very much. Sincerely yours, Prakash On 8/27/07, Tek Bahadur Limbu wrote: > > 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 >