LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help me to configure Squid (https://www.linuxquestions.org/questions/linux-server-73/help-me-to-configure-squid-664383/)

sudheshpn 08-21-2008 01:01 PM

Help me to configure Squid
 
Hi all

This is my first post in LQ and i am also a newbie in linux.i have installed squid proxy 2.6 in my RHEL 5 server.Currently 70 winxp machine is accessing internet through squid proxy.i have blocked certain sites like youtube,orkut,metacafe etc and also the downloads during the business hours ie from 9.00-18.00.i wannt users to access all these blocked sites after the business hours without any restriction.As users do the testing on Production websites of our client we wannt less caching or squid cache should be cleared every one hour.i also wannt particular ip address to access all the websites without any restriction.Please can anyone help me regarding this.its very urgent i need to show this to my client.Thankyou.

anomie 08-21-2008 01:16 PM

http://www.squid-cache.org/Doc/

sudheshpn 08-22-2008 01:45 PM

hai all

Below mentioned is my configuration file

73 -http_port 3128 transparent
2406-acl localhost src 192.168.142.0/255.255.255.0
2407-acl business_hours time M T W H F 9:00-17:00
2408-acl BadSites dstdomain "/usr/local/etc/restricted-sites.squid"
2409-acl blockfiles urlpath_regex "/etc/squid/blocks.files.acl"
2409- acl blockregexurl url_regex -i porn,anonymous,music,video,download,upload
2500 http_access deny Badsites
2501 http_access allow locahost business_hours
2502 http_access deny blockfiles

pLEASE let me know whethere my configuration file s correct if not can anyoone give me the sample cfg file so tht it will be easy for me to configure..Thank u.

sudheshpn 08-27-2008 09:29 AM

Hi all

My squid transperent proxy is having a ip of 192.168.142.80 and all my client are using this ip as gateway before that we were having 192.168.142.1(direct conn) as gateway and all my intranet websites was loading very fast.now its has become very slow.
Now when i do a tracert to my intranet website first its going to my squid server then its going to my old default gateway and bcoz of that i think its loading very slow.

Instead of going through the squid i wannt the below mentioned intranet ip to go through the gateway 192.168.142.1 (old gateway).i think we can do it by using iptables routing.

My internal ip
192.168.4.7
192.168.4.172
192.168.105.53

I am very bad in iptables so can u please help me.....and even users facing problem in downloading emails from there outlook client.its very slow...Waiting for your reply.Thank u.


All times are GMT -5. The time now is 09:49 PM.