Re: [squid-users] transparent proxying

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Tue, 9 Oct 2007 13:48:00 +0530

What is the squid vershion u r running. if it is squid 2.6

pls add below line.

http_port 3128 transparent

acl mynet src 192.168.101.0/24
http_access allow mynet

if it is SQUID 2.5 , you may nedd something like these.

 http_port 3128
 cache_mem 64 MB
 cache_dir ufs /var/spool/squid 100 16 256
 cache_access_log /var/log/squid/access.log
 cache_log /var/log/squid/cache.log
 cache_store_log /var/log/squid/store.log

# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed

acl mynet src 192.168.101.0/24
http_access allow mynet

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

in BOTH cases, you nedd this below line as well.

iptables -t nat -A PREROUTING -p tcp -i eth2 --dport 80 -j REDIRECT
--to-port 3128

eth2 is the interface attached to LAN. pls change it accordinly.

pls read below.

http://www.squid-cache.org/mail-archive/squid-users/200708/0232.html

On 10/9/07, Hemant Raj Chhetri <hemant@druknet.bt> wrote:
> Hi Masters,
> I am trying to implement squid as
> transparent proxy. I have installed squid on freebsd 6.1.
> The router which I am using is cisco 1841 series router. I
> am using wccpv2. Could you please help me out with how
> could I make it a transparent proxy.
>
> Thanking you,
>
> Hemant.
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> This footer space is available to carry your advertisements unobtrusively. Please contact 02-3226999 or email webmaster@druknet.bt for advertisement programs available.
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>

-- 
Thank you
Indunil Jayasooriya
Received on Tue Oct 09 2007 - 02:18:08 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT