Re: [squid-users] squid splashpage

From: Andrew Beverley <andy_at_andybev.com>
Date: Sat, 25 Sep 2010 16:22:14 +0100

On Wed, 2010-09-22 at 12:29 +0200, Han Boetes wrote:
> Hi,
>
> I installed squid and used this page to set up a splash page:
>
> http://wiki.squid-cache.org/ConfigExamples/Portal/Splash
>
> This works like expected, except that the customer wants it to work
> slightly different.
>
> 1) He wants the splash page to be displayed every hour, independent from
> the fact that they keep browsing or not. How can I set that up?

I've not got much experience of the Squid splash page features, so I'm
not sure how you can achieve that, but as an alternative you could set
up your own captive portal using iptables, and add a cron job to clear
out the relevant iptables rules every hour.

This web page has some details, but you'll have to adapt it:

http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal

> 2) Also I noticed from the logs that for example windows update which is
> running on almost every computer in the universe right now is using
> http and since it's connecting as soon as a connection is established
> it will trigger the splash page and thus causes the client not to see
> the splashpage. How can make sure only browsers are triggering the
> splash page?

Again, not sure about Squid, but if you use iptables you could just add
a rule to allow the windows update IP range.

Andy
Received on Sat Sep 25 2010 - 15:22:54 MDT

This archive was generated by hypermail 2.2.0 : Sat Sep 25 2010 - 12:00:03 MDT