[squid-users] splash page + ubuntu 14.04 + squid 3.3.8

Amos Jeffries squid3 at treenet.co.nz
Thu Apr 14 08:45:58 UTC 2016


On 14/04/2016 5:03 p.m., rozi wrote:
> Hi
> 
> trying to set a splash page that popup once a day for the clients here is my
> conf:
> 
> external_acl_type splash_page concurrency=100 ttl=10 %SRC
> /usr/lib/squid3/ext_session_acl -a -T 60 -b /home/e987654654/sessions.db
> acl existing_users external splash_page
> http_access deny !existing_users
> deny_info 511:splash.html Mynetwork
> deny_info 511:splash.html existing_users
> http_access allow Mynetwork
> 
> 
> cant get it to work , in this conf example after 60 sec i get conecction
> refuse for 10 sec and the splash page dont popup during the 10 sec 
> 
> Anyone can help me ?

You have two problems here:

1a) The -a parameter enables active mode sessions. Which means the
'existing_users' ACL (or another ACL matching an 'accept button' URL)
has to pass "LOGIN" to the helper for sessions to exist.

1b) The ACL 'MyNetwork' is not used to deny anything, so the deny_info
has nothing to do.


2) you do not seem to have any logic to identify when a particular
request will be user-visible.
 This is kind of important since modern browsers and OS perform a huge
amount of automated requests in the background. Or even things with XHR
scripts during user browsing.
None of which the user will ever see in 'page' format, but which can
screw up the system or web service behaviour of the recipient software.
That 511 is the right way to do this, but is a fairly new feature in
HTTP so a lot of software still dont handle it well.

HTH
Amos



More information about the squid-users mailing list