LinuxQuestions.org
Visit Jeremy's Blog.
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 06-10-2011, 07:26 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
Want to disable internet for particular IP's only.


Hi,
I am using cent OS 5 as a proxy server. Internet is working fine on all users computers.I want to disable internet only two users in the network.Is there any way in squid that all the users can entertain internet expect two users.

In squid the network setting is

acl our_networks src 192.168.1.0/24
http_access allow our_networks


The users IP address are

192.168.1.50 and 192.168.1.51
and my squid proxy IP is 192.168.1.10

I even remove the proxy settings in mozilla but the users again put and enjoy internet.

Kindly guide me.
thanks.
garden

Last edited by gardenair; 06-10-2011 at 07:41 AM.
 
Old 06-10-2011, 09:10 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,244

Rep: Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424
Quote:
Originally Posted by gardenair View Post
Hi,
I am using cent OS 5 as a proxy server. Internet is working fine on all users computers.I want to disable internet only two users in the network.Is there any way in squid that all the users can entertain internet expect two users.

In squid the network setting is
acl our_networks src 192.168.1.0/24
http_access allow our_networks


The users IP address are
192.168.1.50 and 192.168.1.51 and my squid proxy IP is 192.168.1.10
I even remove the proxy settings in mozilla but the users again put and enjoy internet.
Ok, we can "guide you" to the Squid documentation. Set up an ACL for those users, and DENY that ACL access. That's it. It's well documented. You even have it in another thread of yours
http://www.linuxquestions.org/questi...559/page2.html

Look at the "banned sites" ACL.
 
Old 06-11-2011, 05:43 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks a lot .The post really help me.

I my opinion this case have two solution

Code:
#acl banned_sites url_regex "/etc/squid/squid-banned.acl"
#http_access deny banned_sites
or


Code:
acl block_host1 src 192.168.1.50
http_access deny block_host1
acl block_host2 src 192.168.1.51
http_access deny block_host2
Both are valid if i am correct but the 1st one is much flexible.

what is your technical opinion about it ? hope as you mentioned in the post "Look at the "banned sites" ACL"
garden
 
Old 06-11-2011, 11:43 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,244

Rep: Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424
Quote:
Originally Posted by gardenair View Post
thanks a lot. The post really help me.
Great. Then perhaps you could try to look more things up yourself in the future.
Quote:
I my opinion this case have two solution

Code:
#acl banned_sites url_regex "/etc/squid/squid-banned.acl"
#http_access deny banned_sites
or

Code:
acl block_host1 src 192.168.1.50
http_access deny block_host1
acl block_host2 src 192.168.1.51
http_access deny block_host2
Both are valid if i am correct but the 1st one is much flexible. what is your technical opinion about it ? hope as you mentioned in the post "Look at the "banned sites" ACL"
garden
Pick whichever one you want to use. This is YOUR server, so YOU have to be the one that is happy with the solution.
 
Old 06-12-2011, 07:49 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
Thanks for the reply.The "linuxquestions" is like a teacher for me. I appreciate its all members.

Regards
garden
 
  


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
Disable Users in LDAP hareen729 Linux - Server 1 02-01-2011 02:49 PM
How can disable su for normal users? hansemmanuel Linux - Newbie 1 03-31-2010 12:17 AM
Is it safe to disable standard users alpha_lt Linux - General 4 07-24-2009 03:14 AM
disable all users from logging in acaj5 Linux - Newbie 3 06-08-2006 02:56 AM
Disable ctrl - c for users quack322 Programming 5 08-22-2004 11:14 AM

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

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