Re: Q. How to configure transparency proxy with Redhat Linux??

From: Bartlomiej Solarz-Niesluchowski <B.Solarz-Niesluchowski@dont-contact.us>
Date: Fri, 28 Jan 2000 07:54:30 +0100

At 05:28 00-01-28 , fooler wrote:
>Ahsan Khan wrote:
>
> > Arry Baba No.,,
> >
> > Listen ,, What u have to do is configure the squid.conf for transparent
> > proxy and just put that in rc.local
> >
> > /sbin/ipchains -A input -p TCP -d 127.0.0.1/24 www -j ACCEPT
> > /sbin/ipchains -A input -p TCP -d 209.58.78.10/24 8080 -j ACCEPT
> > /sbin/ipchains -A input -p TCP -d 209.58.78.10/24 www -j ACCEPT
> > /sbin/ipchains -A input -p TCP -d 0.0.0.0/0 www -j REDIRECT 3128
> > /sbin/ipchains -A input -p TCP -d 0.0.0.0/0 8080 -j REDIRECT 3128
> > echo "1" > /proc/sys/net/ipv4/ip_forward
> >
>
>let me simply your configuration for redhat 6.1
>
>in /etc/rc.d/rc.local file:
>
> /sbin/ipchains -A input -p tcp -d 127.0.0.1 80 -j ACCEPT
> /sbin/ipchains -A input -p tcp -d <ip_address_of_your_server> 80 -j
>ACCEPT
> /sbin/ipchains -A input -p tcp -d 0.0.0.0/0 80 -j REDIRECT 3128
>
>in /etc/sysconfig/network file:
>
> FORWARD_IPV4=true
If I correctly understand this is situation that router==SQUID machine?

I have the following situation - I have router (RedHat 6.1) and the SQUID
machine (RedHat 6.1) - I know how redirect a port 0.0.0.0/80 to any port on
router, but I have no idea how redirect my redirected request from router
to squid machine. In example the router and squid machine is THE same!

Best Regards

****************************************************************
* Bartlomiej Solarz-Niesluchowski *
* Administrator WSISiZ *
* Motto - nie psuj Win'9x one i bez tego sie psuja.... *
* Jak sobie poscielisz tak sie wyspisz *
****************************************************************
Received on Fri Jan 28 2000 - 00:06:38 MST

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