Squid proxy authentication in transparent mode

htt‮‬ps://www.lautturi.com
Squid proxy authentication in transparent mode

Transparent mode is a feature of Squid that allows the proxy to intercept and handle traffic without the need for explicit configuration on the client side. This can be useful for enforcing web usage policies or providing secure access to the internet for a network of users.

To enable Squid proxy authentication in transparent mode, you will need to follow these steps:

  1. Edit the Squid configuration file ("/etc/squid/squid.conf") and add the following lines to enable transparent mode:

http_port 3128 intercept

  1. Define an access control list (ACL) to specify which users or groups are allowed to access the proxy. For example:

acl authenticated_users proxy_auth REQUIRED

  1. Use the "http_access" directive to allow or deny access to the proxy based on the ACL you defined. For example:

http_access allow authenticated_users

  1. Configure your network to redirect traffic to the Squid proxy. This can be done using iptables, a NAT gateway, or a transparent proxy device.

  2. Restart Squid to apply the changes.

It's worth noting that transparent mode requires special configuration on the network level and may not be suitable for all environments. You will also need to configure a method for authenticating users, such as basic authentication or NTLM authentication, in order to enforce access control.

Created Time:2017-10-30 14:27:20  Author:lautturi