You must create:
First
acl localhost src 192.168.0.0/255.255.255.0 # an acl with the
local ip's This line is optional
acl iprestricted src 192.168.0.1 # an acl
with the ip to be restricted
Second
acl userrestricted proxy_auth userabc # an acl with
the user to be restricted
# An acl extern with the pages that the user will be have access
acl wwwaccessuserabc url_regex "/etc/squid/wwwaccessuserabc" # This line
is optional
Third deny all others ip's and grant the access to ip an user
http_access deny iprestricted !userrestricted
http_access allow localhost iprestricted wwwaccessuserabc
# If you don't want restrict to specific pages, just remove wwwaccessuserabc
----- Original Message -----
From: "s s" <free2squid@yahoo.com>
To: <squid-users@squid-cache.org>
Sent: Thursday, June 24, 2004 9:40 AM
Subject: [squid-users] User login
> Hi all,
>
> I want to bind an ip address to a user , for example
> user abc should be able to login from only 192.168.0.1
> ip
>
> I am using right now PAM based authenticaion using
> /etc/passwd
>
> Squid Version is 2.4.STABLE1
>
> IS this possible , and any changes to accomplish this
> will do
>
> Thanks and Regards
>
>
>
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
>
Received on Thu Jun 24 2004 - 13:51:18 MDT
This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT