Date: Tue, 25 Mar 2003 06:30:08 +0100 (CET) From: 520023893678-0001@t-online.de (P. U. Kruppa) To: Maarten de Vries <mdv@unsavoury.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Transparent proxy Message-ID: <20030325062538.I26647@small.pukruppa.de> In-Reply-To: <000a01c2f12b$cea91370$1001a8c0@jennie> References: <000a01c2f12b$cea91370$1001a8c0@jennie>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Mar 2003, Maarten de Vries wrote: > Hi, > > On my NAT-box, I'm trying to redirect all http traffic from the desktops > behind to the squid cache, which is on the same machine. > > The ipfw rule I use that should accomplish this is: > > $ ipfw add 2350 fwd 192.168.1.1 3128 from any to any 80 Try this rule instead $ ipfw add 2350 fwd 127.0.0.1 tcp from any to any 80 recv rl1 recv rl1 means everything received from nic rl1 - you will have to put in the device name of your nic instead. Regards, Uli. > > And in squid.conf I have: > > http_port 192.168.1.1:3128 > httpd_accel_host virtual > httpd_accel_port 80 > httpd_accel_with_proxy on > httpd_accel_uses_host_header on > > Somehow I must be overlooking something, because although http traffic works > well on the clients, it isn't being picked up. The firewall- and cachelog > remain empty... > > Ipfw and Squid work well in all other respects. Any pointers would be much > appreciated! > > -- > http://unsavoury.net/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > +-----------------------------------+ | Peter Ulrich Kruppa | | - Wuppertal - | | Germany | +-----------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030325062538.I26647>