Re: [squid-users] Combine NCSA_Auth and IP

From: Hegedus, Ervin <airween@dont-contact.us>
Date: Wed, 18 Dec 2002 10:26:59 +0100

Hello,

> I use ncsa_auth (login user+password) for the access to proxy.
which version of squid?

> I wish that the users make access with account and password only by
> their computers.
> Example: Mr Claudio Battini use login "claudioba", password "trinit?"
> but only from computer that have ip 192.168.29.60...
>
> How i can combine ncsa_auth program with ip address???
if you use Squid-2.5, try external_acl helper.
in this case, you can declare a file, with user-IP pairs.
(see FAQ)

or, if you have an older Squid version, (but this works with 2.5 also)
try something like this:

acl user_ip1 src 192.168.29.60
acl user1 proxy_auth claudioba
acl user_ip2 src 192.168.29.61
acl user2 proxy_auth your_other_user
.
.
.

http_access allow user1 user_ip1
http_access allow user2 user_ip2
.
.
http_access deny all // don't miss it...

air
Received on Wed Dec 18 2002 - 02:27:01 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:08 MST