Re: [squid-users] User name only used from a specific IP number

From: kdv <[email protected]>
Date: Thu, 14 Jul 2005 12:58:59 +0300

Carinus Carelse wrote:

>I would like to know if it is possible to allow a username to only
>authenticate from a specific IP number or a range of number. So in
>other
>words i want UserA to only have internet access using his id from his
>pc.
>if he goes to another PC or another IP number then it must not allow him
>
>to authenticate.
>
>Is this possible and if so where can I get a look at a config example.
>
>Thanks in advance for the help.
>
>Carinus
>
>
in squid.conf
# TAG: acl
# acl aclname src ip-address/netmask ... (clients IP address)
# acl aclname src addr1-addr2/netmask ... (range of addresses)
# acl aclname proxy_auth [-i] username ...
# acl aclname proxy_auth_regex [-i] pattern ...
# TAG: http_access
# Allowing or Denying access based on defined access lists

define acls
acl userA proxy_auth usera
acl userB proxy_auth userb
acl compA src 192.168.0.101/32
acl compB src 192.168.0.102/32

then define smth like this
http_access allow compA userA
http_access allow compB userB
http_access deny all
Received on Thu Jul 14 2005 - 03:59:03 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT