[squid-users] Portal Splash Pages example on squid 3.3.13

Amos Jeffries squid3 at treenet.co.nz
Thu Feb 12 16:22:24 UTC 2015


On 13/02/2015 3:12 a.m., amitinfo2k wrote:
> Splash is just a static HTML page as folllows:
> ----------------------------------------------------------
> /etc/squid/splash.html
> ----------------------------------------------------------
> <html>
>     <head>
>         <title>splash screen example</title>
>     </head>
>     <body>
>      This is splash screen

You are missing the bit which directs the user to the login URL:

  <br>
  <a href="http://example.net/">Click to start browsing</a>

>     </body>
> </html>
> ----------------------------------------------------------
> I have a VM (Fedora19) where i have installed the squid and this VM has
> internet access.
> now on this VM itself I am opening a Browser with proxy setting a VM IP and
> port 3128.
> Also, I tried from host m/c browser configured proxy settings as VM IP and
> port 3128.
> I am able to browse the internet. But no splash screen coming in between.
> so, how does the session work here ? as per configuration -T 60 sec every
> one min session should be expired right ? and then i should be able to see
> the splash.

I meant what does "browse the internet" involve for your tests.

If you visit "http://example.net/" at any point the session is logged in
created and you can then browse. Even if you have not seen the splash page.

Make sure the session DB from old experiments is erased. You may be
using an old session.

All this also depends on where it is in relation to other http_access
rules in the config file.

Amos



More information about the squid-users mailing list