Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: gauravbajaj on January 06, 2005, 11:13:28 AM

Title: restrict users through squid
Post by: gauravbajaj on January 06, 2005, 11:13:28 AM
Hi linux grp
Can anyone tell that how to give restrictions to various users using squid.
i.e i want that, if some user want to open anysite, he have to give some password.
CAN ANYONE HELP ME PLZZZ
Title: restrict users through squid
Post by: Ricky on January 06, 2005, 02:54:58 PM
Gaurav.. well this question has been replied so many times already.. can you please search few last posts in the forum !
Title: restrict users through squid
Post by: gauravbajaj on January 07, 2005, 06:35:21 AM
hi ricky
i haven't found ans of this question,abt squid service
please can u tell me again,
please
thxxx...
gaurav
Title: help me
Post by: gauravbajaj on January 07, 2005, 08:23:20 AM
hi ricky
I have not found ans of my pb, can u please ans this ques?
help me plzz
gaurav
Title: restrict users through squid
Post by: Ricky on January 07, 2005, 08:28:09 AM
http://www.linuxsolved.com/forums/ftopic155.html
and there are many other !! well see an example..
Code: [Select]
acl userallow src 192.168.1.15
acl good_site dstdomain .yahoo.com .msn.com .linuxsolved.com

http_access deny good_site

http_access allow usertoblock good_site  

Well above code will allow user 192.168.1.15 to view only good_site and else will not see .

Similarly you can disallow any user or list of user.

Also use http://www.linuxsolved.com/forums/search.php and you will get ton of answer as you are looking for !
Title: squid
Post by: gauravbajaj on January 07, 2005, 08:51:16 AM
hi ricky
thx for reply,
but this is not answer of my query, i already know abt this.

your previous answer restricts only certion sites & restict that client ip -address
but i want to restrict local -users by using squid, can u tell how can i?

The question is suppose i have a local user name in my linux m/c as gaurav, i don't want to allow gaurav to access certain site lets say yaoo.com.

& suppose i also want if  gaurav wants to access yahoo.com, he must give some password, i.e not the password of local account some other password.

SO CAN U HELP ME?

THXXX IN ADVANCE

gaurav
Title: restrict users through squid
Post by: Ricky on January 07, 2005, 10:03:08 AM
hmm .. you are saying that you don't want blocking on the basis of the ips ?
Title: squid
Post by: gauravbajaj on January 07, 2005, 10:59:11 AM
ya ricky , i don't want restriction through ip, i want local users to be restricted through squid by some atuhentication
gaurav
Title: restrict users through squid
Post by: gauravbajaj on January 10, 2005, 04:07:39 AM
hi
do u know how to do this?
if yes then please tell me
gaurav
Title: restrict users through squid
Post by: Ricky on January 10, 2005, 10:09:06 AM
hmm.. then have to implement some authentication. Well to answer this i have to dig my computer. Will tell you about that soon !
Title: restrict users through squid
Post by: gauravbajaj on January 11, 2005, 10:43:51 AM
hi ricky
i  solved my problem myself
gaurav
Title: restrict users through squid
Post by: Ricky on January 11, 2005, 12:04:46 PM
so hw you solve.. would you like to share ?
Title: restrict users through squid
Post by: gauravbajaj on January 12, 2005, 04:56:38 AM
ya ricky
for this u have to enable  ncsa authintication
go to this site for further inf.
www.siliconvalleyccie.com
bye
gaurav