Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2006 20:07:04 -0700
From:      Skylar Thompson <skylar@cs.earlham.edu>
To:        oliverrojo@anticogroup.com
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: transparent proxy howto
Message-ID:  <44A343D8.7040307@cs.earlham.edu>
In-Reply-To: <44A24315.8000502@anticogroup.com>
References:  <44A24315.8000502@anticogroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44A343D8.7040307>