Re: [squid-users] PHP Captive portal and squid.

From: Andrew Beverley <andy_at_andybev.com>
Date: Mon, 27 Sep 2010 22:24:15 +0100

On Mon, 2010-09-27 at 14:17 -0700, Landy Landy wrote:
> > What's the reason that you can't get the customer IP
> > address?
> >
> > If you can find a way to get the IP address, then you could
> > use the
> > following (which uses iptables and PHP):
> >
> > http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal
> >
> > Andy

> I actually looked at that page before and got ideas from it. It lacks
> some other things I would like to add the captive portal: I would like
> to get the page the user intended to go to and after doing the
> authentication on another server have the user continue to the
> intended page or redirect to a "disconnected due to payment" page.
>

The details on how to do the redirect to the original page are contained
in the "discussion" part of that wiki.

A redirect to a "disconnected" page shouldn't be too difficult; you
would just need to use PHP to generate the appropriate content rather
than enabling and redirecting the user.

Andy
Received on Mon Sep 27 2010 - 21:24:36 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 28 2010 - 12:00:05 MDT