squid installation problem

General discussion about PLUC and Linux in Pakistan.
venky145
Havaldaar
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
Location: qatar
Contact:

squid installation problem

Postby venky145 » Thu May 05, 2005 2:51 pm

hai all

i got a squid config file. can any 1 tell me how to install the squid transperant proxy. pls give me reply step by step. briefly....


http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 256 MB

cache_dir diskd /var/spool/squid/cache0 4000 16 256
#cache_dir diskd /var/spool/squid/cache1 4000 16 256
#cache_dir diskd /var/spool/squid/cache2 4000 16 256
#cache_dir diskd /var/spool/squid/cache3 4000 16 256

dns_nameservers 216.236.98.2 192.168.1.2

diskd_program /usr/lib/squid/diskd
unlinkd_program /usr/lib/squid/unlinkd

acl all src 0.0.0.0/0.0.0.0
acl vc src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access allow manager vc
http_access allow manager Safe_ports
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow vc
http_access deny all

icp_access allow all

httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

#delay_pools 2
#delay_class 1 3
#delay_parameters 1 -1/-1 -1/-1 4000/4000
#delay_access 2 allow vc
#ie_refresh off
acl t src 0.0.0.0/0.0.0.0
delay_pools 2
delay_class 1 3
delay_parameters 1 -1/-1 -1/-1 4000/4000
delay_access 1 allow t

Qadri-409
Battalion Havaldaar Major
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
Location: Peshawar
Contact:

Re: squid installation problem

Postby Qadri-409 » Thu May 05, 2005 7:00 pm

M Shahzad Qadri

rehanjafry
Cadet
Posts: 8
Joined: Tue Dec 28, 2004 8:17 pm
Location: karachi
Contact:

Postby rehanjafry » Fri May 20, 2005 6:31 pm

All is fine ... U just need to redirect port 80 traffic to Squid port through IPTABLES .

Here is the command , Type it on Root as superuser



iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080 .


This command will redirect ur all http traffic to squid port . This will make ur proxy a Transparent proxy .

Qadri-409
Battalion Havaldaar Major
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
Location: Peshawar
Contact:

Postby Qadri-409 » Fri May 27, 2005 12:27 am

M Shahzad Qadri


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest