User Tools

Site Tools



Password Based Authentication

After Install and default setting, you might want to enable password based proxy change following lines.
Following line will enable .htaccess based password auth.

auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/passwd

Add following line if not exists.

acl all src all

Above line should be above following lines.

acl manager proto cache_object
acl localhost src
acl to_localhost dst

Define authentication method for user.

acl ketan proxy_auth ketan
Allow user to access proxy.
<code bash>
http_access allow ketan

Define Outgoing IP based on Username

In order to define IP based on authenticated user.
Add following line. (considering you all of the above already exists)

tcp_outgoing_address ketan
squid.txt · Last modified: 2020/08/10 02:35 (external edit)