| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-07-2012, 01:47 AM
|
#1
|
|
Member
Registered: Sep 2011
Posts: 140
Rep: 
|
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.....
|
|
|
|
08-07-2012, 03:16 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
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
|
|
|
|
08-07-2012, 05:28 AM
|
#3
|
|
Member
Registered: Sep 2011
Posts: 140
Original Poster
Rep: 
|
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...
|
|
|
|
08-07-2012, 06:19 AM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
Quote:
Originally Posted by rajini23
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
|
|
|
|
08-08-2012, 12:56 AM
|
#5
|
|
Member
Registered: Sep 2011
Posts: 140
Original Poster
Rep: 
|
Hi,
I am not seeing any error in my log files in squid, but images is not loading up...
|
|
|
|
08-08-2012, 02:07 AM
|
#6
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
Quote:
Originally Posted by rajini23
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
|
|
|
|
08-09-2012, 01:25 AM
|
#7
|
|
Member
Registered: Sep 2011
Posts: 140
Original Poster
Rep: 
|
Thanks a lot for your solution i checked in log file and provided access and its working fine..... 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:00 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|