Adding an HTTP request header with Squid

boblin asked:

I want to permit my users to login to Google apps only for my domain. I found a solution by adding the HTTP header X-GoogApps-Allowed-Domains as described in this Google help page.

I use Squid, but can’t figure out how to configure Squid to do this. How can I add this request header using Squid?

My answer:


Using squid, you will:

  1. Set up dyanmic SSL certificate generation. Install the root certificate in the web clients’ browsers.
  2. Set up SSL Bump to intercept proxied SSL/TLS traffic.
  3. Use ACLs to insert your desired header(s).

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.