From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 14:38:20 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 1D57C16A510 for ; Mon, 3 Jul 2006 14:38:20 +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 566B043DA9 for ; Mon, 3 Jul 2006 14:10:50 +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 k63EAgRC040471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Jul 2006 10:10:45 -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: <44A9255C.8040300@cs.earlham.edu> Date: Mon, 03 Jul 2006 07:10:36 -0700 From: Skylar Thompson Organization: Earlham College Computer Science Department User-Agent: Thunderbird 1.5.0.2 (X11/20060516) MIME-Version: 1.0 To: "Oliver A. Rojo" References: <44A24315.8000502@anticogroup.com> <44A343D8.7040307@cs.earlham.edu> <44A8DF19.7070003@anticogroup.com> In-Reply-To: <44A8DF19.7070003@anticogroup.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig76BB626F09FEF84DF0B88111" X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (quark.cs.earlham.edu [159.28.230.3]); Mon, 03 Jul 2006 10:10:45 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.2/1579/Sat Jul 1 06:20:41 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.9 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: Mon, 03 Jul 2006 14:38:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig76BB626F09FEF84DF0B88111 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oliver A. Rojo wrote: > Skylar Thompson wrote: >> Oliver A. Rojo wrote: >> =20 >>> 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? >>> =20 >> >> 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.con= f: >> >> 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 > is there anything to be done with the kernel? I've done this one but > it didn't worked... Make sure that ipnat is loaded by putting ipnat_enable=3D"YES" in /etc/rc.conf, and you should be good to go. --=20 -- Skylar Thompson (skylar@cs.earlham.edu) -- http://www.cs.earlham.edu/~skylar/ --------------enig76BB626F09FEF84DF0B88111 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 iD8DBQFEqSVcsc4yyULgN4YRAqRkAKCkyT0Dz4L+0R9e8TMInpb0YtEBaQCePHm2 ygSgRX064xaStQZwPj0Mleg= =IMaE -----END PGP SIGNATURE----- --------------enig76BB626F09FEF84DF0B88111--