From owner-freebsd-questions@FreeBSD.ORG Thu Jun 29 03:07:26 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 0D01816A407 for ; Thu, 29 Jun 2006 03:07:26 +0000 (UTC) (envelope-from skylar@cs.earlham.edu) Received: from quark.cs.earlham.edu (cs.earlham.edu [159.28.230.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CB8743DD3 for ; Thu, 29 Jun 2006 03:07:24 +0000 (GMT) (envelope-from skylar@cs.earlham.edu) Received: from [172.17.175.232] (exchange.cliffordpr.com [63.83.39.195] (may be forged)) (authenticated bits=0) by quark.cs.earlham.edu (8.13.6/8.13.3) with ESMTP id k5T37Dmn091593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jun 2006 23:07:15 -0400 (EDT) (envelope-from skylar@cs.earlham.edu) X-Authentication-Warning: quark.cs.earlham.edu: Host exchange.cliffordpr.com [63.83.39.195] (may be forged) claimed to be [172.17.175.232] Message-ID: <44A343D8.7040307@cs.earlham.edu> Date: Wed, 28 Jun 2006 20:07:04 -0700 From: Skylar Thompson Organization: Earlham College Computer Science Department User-Agent: Thunderbird 1.5.0.2 (X11/20060516) MIME-Version: 1.0 To: oliverrojo@anticogroup.com References: <44A24315.8000502@anticogroup.com> In-Reply-To: <44A24315.8000502@anticogroup.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8008ECB3E898FB5B2907E76A" X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (quark.cs.earlham.edu [159.28.230.3]); Wed, 28 Jun 2006 23:07:16 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.2/1551/Tue Jun 20 09:37:21 2006 on quark.cs.earlham.edu X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.56 on 159.28.230.3 X-Spam-Status: No, score=-3.2 required=8.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on quark.cs.earlham.edu Cc: FreeBSD Mailing List Subject: Re: transparent proxy howto X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: skylar@cs.earlham.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 03:07:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8008ECB3E898FB5B2907E76A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 --=20 -- Skylar Thompson (skylar@cs.earlham.edu) -- http://www.cs.earlham.edu/~skylar/ --------------enig8008ECB3E898FB5B2907E76A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEo0Pasc4yyULgN4YRAvGgAKCiccrP1hnP3XHdHCG6k1ygv6Km+QCaA8w+ JQY2LIF4uE5ZwI2qG9/T84M= =1LwF -----END PGP SIGNATURE----- --------------enig8008ECB3E898FB5B2907E76A--