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-07-2012, 01:47 AM   #1
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Rep: Reputation: Disabled
Unhappy Squid configuration issue....


Hi,

I have configured the squid in my Linux server we use RHEL5 LINUX, my problem is wants to allow only certain sites and block every thing...

how do i do it using acl please help me on this.....
 
Old 08-07-2012, 03:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,073

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
Hi,

You can create a file containing the allowed sites like this:
Code:
.google.com
.linuxquestions.org
.squid-cache.org
and then use the following in squid.conf:
Code:
acl allowed_sites dstomain "/path/to/allowed-sites.file"
http_access allow allowed_sites
http_access deny all
Regards
 
Old 08-07-2012, 05:28 AM   #3
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Original Poster
Rep: Reputation: Disabled
Hi,

I am able to access the particular sites but when i block all the sites
and allowing Facebook for accessing , i am not able to view graphical mode graphics is not loading up.. not able to see proper pictures ,,, java is not loading....

if i give full access it is working not for specific sites...
 
Old 08-07-2012, 06:19 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,073

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
Quote:
Originally Posted by rajini23 View Post
Hi,

I am able to access the particular sites but when i block all the sites
and allowing Facebook for accessing , i am not able to view graphical mode graphics is not loading up.. not able to see proper pictures ,,, java is not loading....

if i give full access it is working not for specific sites...
I guess that facebook is pulling the stuff that is not loading from some 3rd party URLs. You should look at the squid access.log to find the URLs it denies access and allow them too in your file

Regards
 
Old 08-08-2012, 12:56 AM   #5
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Original Poster
Rep: Reputation: Disabled
Hi,

I am not seeing any error in my log files in squid, but images is not loading up...
 
Old 08-08-2012, 02:07 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,073

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
Quote:
Originally Posted by rajini23 View Post
Hi,

I am not seeing any error in my log files in squid, but images is not loading up...
You are not going to see any errors. You should see some lines containing a "TCP_DENIED" followed by the URL containing the images or the other stuff that is not loading.
BTW I've looked at facebook pictures, and looks like they are pulled from fbcdn.net, so add that in your file and reload squid to test again

Regards
 
Old 08-09-2012, 01:25 AM   #7
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Original Poster
Rep: Reputation: Disabled
Unhappy

Thanks a lot for your solution i checked in log file and provided access and its working fine.....
 
  


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
Squid configuration issue Number34 Linux - Server 0 02-01-2012 11:16 AM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 10:55 PM
Squid configuration saran_redhat Linux - Server 1 07-10-2009 12:11 AM
Squid Configuration Issue. Cheza Linux - Server 0 10-05-2007 02:07 PM
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 03:58 PM

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

All times are GMT -5. The time now is 05:48 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
Open Source Consulting | Domain Registration