From owner-freebsd-questions@FreeBSD.ORG Mon Nov 24 14:53:33 2008 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 0F5461065670 for ; Mon, 24 Nov 2008 14:53:33 +0000 (UTC) (envelope-from OttK@zzz.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id BB7618FC0C for ; Mon, 24 Nov 2008 14:53:32 +0000 (UTC) (envelope-from OttK@zzz.ee) Received: from zzz.ee (localhost.zzz.ee [127.0.0.1]) by zzz.ee (Postfix) with ESMTP id 2B873FD108 for ; Mon, 24 Nov 2008 16:53:31 +0200 (EET) Received: by zzz.ee (Postfix, from userid 3019) id 2A1DEFD104; Mon, 24 Nov 2008 16:53:31 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from [192.168.5.3] (adsl215.uninet.ee [194.204.62.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zzz.ee (Postfix) with ESMTPS id 22C70FD12C for ; Mon, 24 Nov 2008 16:53:29 +0200 (EET) Message-ID: <492ABFE8.8090407@zzz.ee> Date: Mon, 24 Nov 2008 16:53:28 +0200 From: =?ISO-8859-1?Q?Ott_K=F6stner?= Organization: TIGMA AS User-Agent: Thunderbird 2.0.0.17 (X11/20081117) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <73a179920811231130k53387b55p2838f80b30fdc6cd@mail.gmail.com> <492AB7F3.8070107@zzz.ee> In-Reply-To: <492AB7F3.8070107@zzz.ee> Content-Type: multipart/mixed; boundary="------------020808060709050104020207" X-Virus-Scanned: ClamAV using ClamSMTP @zzz.ee X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Transparent Proxy with IPFW + Squid 2.7 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, 24 Nov 2008 14:53:33 -0000 This is a multi-part message in MIME format. --------------020808060709050104020207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Ott Köstner wrote: > Cagri Ersen wrote: > >> I want to configure a transparent proxy with IPFW and Squid. >> I enabled IPFW on a FreeBSD 7.0 and also install squid 2.7 >> > I am running such a setup, but with pf. Works fine. Maybe it helps Oh, before compiling Squid, in Squid port directory: # make config ? ?[X] SQUID_IPFW Enable transparent proxying with IPFW ? ? ? ?[X] SQUID_PF Enable transparent proxying with PF > > pf rule I am using: > ------------------------------------------------------------------------ > demo="dc0" > > rdr on $demo proto tcp from any to any port 80 -> 127.0.0.1 port 3128 > > > Squid config file > ------------------------------------------------------------------------ > # Squid normally listens to port 3128 > > http_port 127.0.0.1:3128 transparent > > > Greetings, > O.K. -- Testi oma Interneti kiirust / Test Your Internet speed: http://speedtest.zzz.ee/ --------------020808060709050104020207--