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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>

+-----------------------------------+
|        Peter Ulrich Kruppa        |
|          -  Wuppertal -           |
|              Germany              |
+-----------------------------------+

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to