From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 09:10:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D424916A654 for ; Mon, 3 Jul 2006 09:10:55 +0000 (UTC) (envelope-from oliverrojo@anticogroup.com) Received: from anticogroup.com (host.anticogroup.com [209.59.164.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D6C643D45 for ; Mon, 3 Jul 2006 09:10:55 +0000 (GMT) (envelope-from oliverrojo@anticogroup.com) Received: (qmail 26391 invoked by uid 5510); 3 Jul 2006 09:12:23 -0000 Received: from 203.131.125.34 by viper.anticogroup.com (envelope-from , uid 501) with qmail-scanner-1.25 (clamdscan: 0.86.2/1579. spamassassin: 3.0.4. Clear:RC:1(203.131.125.34):. Processed in 0.122458 secs); 03 Jul 2006 09:12:23 -0000 Received: from unknown (HELO ?192.168.3.207?) (203.131.125.34) by anticogroup.com with SMTP; 3 Jul 2006 09:12:22 -0000 Message-ID: <44A8DF19.7070003@anticogroup.com> Date: Mon, 03 Jul 2006 17:10:49 +0800 From: "Oliver A. Rojo" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: skylar@cs.earlham.edu References: <44A24315.8000502@anticogroup.com> <44A343D8.7040307@cs.earlham.edu> In-Reply-To: <44A343D8.7040307@cs.earlham.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: transparent proxy howto 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, 03 Jul 2006 09:10:55 -0000 Skylar Thompson wrote: > Oliver A. Rojo wrote: > >> hi! >> >> Im using freebsd-5.2.1-RELEASE-p14 and I just want to ask if how can I >> setup transparent proxying with squid using ipnat? >> > > You're going to want something like this in your ipnat configuration: > > rdr int0 0/0 port 80 -> 192.168.0.1 port 3128 > > Where int0 is your internal interface name, and 192.168.0.1 is your > internal interface IP address. You'll also want this in your squid.conf: > > http_port 8080 > httpd_accel_host virtual > httpd_accel_port 80 > httpd_accel_with_proxy on > > Full documentation here: > > http://www.squid-cache.org/Doc/FAQ/FAQ-17.html > httpd_accel_uses_host_header on > > > > is there anything to be done with the kernel? I've done this one but it didn't worked...