LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-31-2009, 06:30 AM   #1
deva_raju
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Exclamation Block Internet(http) access for particular user


Hi Experts,

I am using squid proxy server in CentOS. I need to block internet(http) access to particular IP in our LAN. How can I do this?

Thanks,
Deva.
 
Old 10-31-2009, 07:01 AM   #2
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Blog Entries: 8

Rep: Reputation: Disabled
One has to setup squid authentication
 
Old 10-31-2009, 07:59 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Mr. ameya sathe View Post
One has to setup squid authentication
No, you don't.

Quote:
Originally Posted by deva_raju View Post
I am using squid proxy server in CentOS. I need to block internet(http) access to particular IP in our LAN. How can I do this?
If you mean restrict access FROM a particular IP (example):
Code:
acl banned_client src 192.168.1.76
http_access deny banned_client
If you mean restrict access TO a particular IP (example):
Code:
acl banned_server dst 192.168.1.45
http_access deny banned_server
Make sure you place this before any other ACL which could interfere.
 
  


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
how to block internet access? E_l_d_o Linux - Networking 2 05-03-2007 12:39 PM
i need help... how to block internet access... E_l_d_o Linux - General 3 05-03-2007 12:00 PM
sshd block user access Tux-Slack Linux - Networking 4 01-20-2007 08:32 AM
by using iptables block mac address to restric user to access internet Farrukh Fida Linux - Networking 3 10-09-2006 07:59 AM
How can I block net access for 1 user? jimk Linux - Security 10 11-26-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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