LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2012, 04:09 AM   #1
xmonsterx
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
squid with many restrictions


Dear all,

I have a squid 3.1 running on a CentOS 6. I already have restricted sites and IP. I would like to have more requirements .

1. I would like to host some opensources on the same machine with squid. But i cannot even access internally or externally to apache. Access is denied by squid
2i. I would like to deny all users to surf the Internet during office hours but allow them to do so after that.
ii. During office hours, i would also like to allow some IPs to access to surf the Internet, also restrict certain IP to some sites
3. I would also like to allow external network to use the squid with a username and a password.

Is it possible to do this?

Thanks
 
Old 10-27-2012, 09:27 AM   #2
hamlindsza
Member
 
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled
Hey,

Quote:
Originally Posted by xmonsterx View Post
1. I would like to host some opensources on the same machine with squid. But i cannot even access internally or externally to apache. Access is denied by squid
You can add an proxy exception for localhost in your browser, so while your accessing the sites hosted by apache it wont go via squid.

Quote:
Originally Posted by xmonsterx View Post
2i. I would like to deny all users to surf the Internet during office hours but allow them to do so after that.
ii. During office hours, i would also like to allow some IPs to access to surf the Internet, also restrict certain IP to some sites
You can setup squid ACLs to suite your requirements.

Quote:
Originally Posted by xmonsterx View Post
3. I would also like to allow external network to use the squid with a username and a password.
Squid supports authentication. You can authenticate from an LDAP/AD Server, etc. There are squid authentication helpers for this.

To achieve your requirements, you might have to spend sometime reading the squid documentation wiki.squid-cache.org
 
  


Reply



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
Internet access restrictions with squid fareedreg Linux - Newbie 2 12-30-2010 09:03 AM
Squid restrictions and discriminating iptables rulesets ochienged Linux - Security 6 07-31-2008 02:25 AM
Users restrictions bebleu Linux - Security 2 07-05-2007 03:23 PM
Timed based access restrictions with squid & danguardian keithdj Fedora 3 04-19-2006 10:27 AM
Restrictions X3781 Linux - General 1 01-07-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 AM.

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