Default URL redirection

Sébastien Pierre sebastien.pierre
Thu Jul 31 07:56:56 PDT 2014


Thanks a lot Jouni, as you suggested, setting iptables rules was the way to
go to create a captive portal.

Sebastien
Le 2014-07-31 10:06, "Jouni Malinen" <j at w1.fi> a ?crit :

> On Mon, Jul 28, 2014 at 10:09:10AM -0400, S?bastien Pierre wrote:
> > I would like to setup a redirection to a specific URL when a user joins
> an
> > open WiFi network. I've tried the "network_auth_type" configuration
> > parameter, but without any success.
>
> Please note that that parameter is just making the AP provide
> information about the URL in an ANQP request; it does not in any way
> force the station to use or even query that information.
>
> > but in both cases I can't access the WiFi network, nor do I see any
> > request  logged on the apache2 access log.
> >
> > I couldn't find more information about what exactly the different modes
> > (01, 02, etc) do and how the redirect URL is used.
>
> It sounds like you are trying to force the station to go through a
> captive portal. hostapd won't do that, i.e., you would need external
> programs to manage firewall rules and forwarding of the first HTTP
> operation to build a captive portal.
>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140731/bc8d4946/attachment-0001.htm>



More information about the Hostap mailing list