LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2008, 02:08 AM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 225

Rep: Reputation: 16
restricting internet access with squid...


after installing squid, I want to restrict internet access to a computer, but after creating the acl rule on my squid.conf file the computer is still able to access the internet, yes the computer is using the squid proxy for internet access...here's how a portion of my squid.conf file looks

acl my_networks src 10.200.50.0/24
acl restricted src 10.200.50.52

http_access allow my_networks
http_access allow localhost
http_access deny restricted


any help appreciated

Last edited by Tinkster; 03-27-2008 at 10:41 PM. Reason: shameless plug removed
 
Old 01-02-2008, 03:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
squid acl's are read from the top. move the deny higher up.
 
Old 01-02-2008, 11:34 AM   #3
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 225

Original Poster
Rep: Reputation: 16
Thanks acid....now does anybody know how to change the default "Access Denied" page that user gets once denied access?

Last edited by Tinkster; 03-27-2008 at 10:42 PM. Reason: shameless plug removed
 
Old 01-02-2008, 04:19 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yeah, check the deny_info option in squid.conf
 
  


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
Restricting access to Internet cooljai Linux - Networking 1 05-16-2007 06:35 AM
How to allow only Squid to access the internet? varange Linux - Networking 6 12-09-2005 02:24 AM
restricting internet access bobbens Linux - Networking 2 02-08-2005 08:29 AM
User Group for Restricting Internet Access kyleinc Linux - General 6 04-17-2004 06:49 AM
Restricting access to site by IP with squid hagenuk Linux - Software 0 12-06-2001 12:22 AM


All times are GMT -5. The time now is 02:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration