LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-21-2008, 02:01 PM   #1
sudheshpn
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
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.
 
Old 08-21-2008, 02:16 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
http://www.squid-cache.org/Doc/
 
Old 08-22-2008, 02:45 PM   #3
sudheshpn
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 08-27-2008, 10:29 AM   #4
sudheshpn
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Squid karthik2fun Linux - Server 2 07-09-2008 07:57 AM
How i configure squid ravi_kumars Linux - Networking 1 01-31-2007 02:21 PM
configure squid vathna Linux - Networking 1 01-19-2006 05:11 AM
how to configure squid lzakir Debian 1 07-06-2005 02:22 PM
To configure squid neophyte_linux Linux - Newbie 1 04-05-2005 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration