LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01:08 AM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

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 09:41 PM. Reason: shameless plug removed
 
Old 01-02-2008, 02:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

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 09:42 PM. Reason: shameless plug removed
 
Old 01-02-2008, 03:19 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 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