LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Block Internet(http) access for particular user (https://www.linuxquestions.org/questions/linux-security-4/block-internet-http-access-for-particular-user-765766/)

deva_raju 10-31-2009 06:30 AM

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.

Mr. ameya sathe 10-31-2009 07:01 AM

One has to setup squid authentication

win32sux 10-31-2009 07:59 AM

Quote:

Originally Posted by Mr. ameya sathe (Post 3739029)
One has to setup squid authentication

No, you don't.

Quote:

Originally Posted by deva_raju (Post 3738999)
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.


All times are GMT -5. The time now is 06:41 AM.