Re: [SQU] Squid & Apache

From: Awais <[email protected]>
Date: Wed, 07 Feb 2001 10:20:59 -0900

One can also do this with any firewalling tool, you don't need to specifically
use FreeBSD. On linux:-

ipchains -A input -p tcp -s 0/0 -d this.machine/32 -j ALLOW
ipchains -A input -p tcp -s 0/0 -d 0/0 80 -j REDIRECT 3128

BTW the rules you specify cause the packets which are destined for apache to be
handled by squid first . There is no reason to do this.

This would allow direct connections to apache:-

ipfw add 30 allow tcp from your.machine.ip.address to any
ipfw add 35 allow tcp from any to this.machine 80
ipfw add 40 fwd 127.0.0.1,3128 tcp from any to any 80
ipfw add 50 fwd 127.0.0.1,3128 tcp from any to any 8080

Awais

Ahsan Khan wrote:

> then apply ..
>
> ipfw add 30 allow tcp from your.machine.ip.address to any
> ipfw add 40 fwd 127.0.0.1,3128 tcp from any to any 80
> ipfw add 50 fwd 127.0.0.1,3128 tcp from any to any 8080
>
> I am running squid in Transparent mode with apache. on my two FreeBSD
> Systems.
>
> NOTE: You have to configure your squid in Transparent Mode, If you are still
> on the road go to FAQ section on squid site.
>
> Ahsan Saleem Khan
> Sr. System Admin
> OneNet (Sun Communication Pvt)
> http://www.one.net.pk
> Cisco Certified Network Associate (2.0)
> http://www.brainbench.com/transcript.jsp?pid=525156
>
> ----- Original Message -----
> From: "Johnny Lee" <johnny@pcinterlink.com>
> To: "Ahsan Khan" <ahsank@one.net.pk>
> Sent: Wednesday, February 07, 2001 1:53 AM
> Subject: RE: [SQU] Squid & Apache
>
> > I am using freeBSD
> >
> > -----Original Message-----
> > From: Ahsan Khan [mailto:ahsank@one.net.pk]
> > Sent: Tuesday, February 06, 2001 12:34 PM
> > To: Johnny Lee; Squid ML
> > Subject: Re: [SQU] Squid & Apache
> >
> >
> > Use FreeBSD.
> >
> >
> > Ahsan Saleem Khan
> > Sr. System Admin
> > OneNet (Sun Communication Pvt)
> > http://www.one.net.pk
> > Cisco Certified Network Associate (2.0)
> > http://www.brainbench.com/transcript.jsp?pid=525156
> > ----- Original Message -----
> > From: "Johnny Lee" <johnny@pcinterlink.com>
> > To: "Squid ML" <squid-users@ircache.net>
> > Sent: Wednesday, February 07, 2001 12:34 AM
> > Subject: [SQU] Squid & Apache
> >
> >
> > > Anyone setup a box using both of these? I need squid to do transparent
> > proxy
> > > & authentication but I would like to keep apache on port 80 also. Is
> there
> > > some way to do it? Thanks
> > >
> > > Johnny
> > >
> > > --
> > > To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
> > >
> > >
> >
> > --
> > To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
> >
> >
> >
>
> --
> To unsubscribe, see http://www.squid-cache.org/mailing-lists.html

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Feb 06 2001 - 22:20:50 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:54 MST