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

From: fooler <fooler@dont-contact.us>
Date: Fri, 28 Jan 2000 12:28:12 +0800

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

fooler.
Received on Thu Jan 27 2000 - 21:22:27 MST

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