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

From: Ahsan Khan <[email protected]>
Date: Fri, 28 Jan 2000 12:37:02 +0500

Well Now i am confused ,

You have told me that you have a router running Linux 6.1, thats mean you
are using soft router,,??? if so then to redirect your ports to any other
host, you need port redirectors like datapipe.

    If you are using Cisco Router a route Map command and an access list if
good to handle it,

    If you are having any other Router then you can read FAQ for that .

Now please let me know what is the exact setup .??

With Regards
Ahsan Khan
Sr. System Admin
Internet Division (OneNet)
Sun Communication Pvt. Ltd.
http://www.one.net.pk

----- Original Message -----
From: "Bartlomiej Solarz-Niesluchowski"
<B.Solarz-Niesluchowski@wsisiz.edu.pl>
To: <squid-users@ircache.net>
Sent: Friday, January 28, 2000 11:54 AM
Subject: Re: Q. How to configure transparency proxy with Redhat Linux??

> 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

no the network calss u are using, i just worte that and if u use /0 its mean
whole calss.

> > /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:41:53 MST

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