[squid-users] IP Subnet Redirect

Amos Jeffries squid3 at treenet.co.nz
Sat Apr 8 15:04:58 UTC 2017


On 9/04/2017 1:32 a.m., christian brendan wrote:
> Hello
> 
> i have install squid and its working fine.
> I have created expired IP pool: 192.168.2.0/24  and i want all client on
> that subnet to be directed to my my website, eg: mycompany/expired.htm
> Please how do i make this possible?
> 

Place these lines above any "http_access allow" rules that you have:

  acl expired src 192.168.2.0/24
  acl expiredAllowed dstdomain mycompany.local
  deny_info 302:http://mycompany.local/expired.htm expired
  http_access deny !expiredAllowed expired

Amos



More information about the squid-users mailing list