<p dir="ltr">Thanks a lot Jouni, as you suggested, setting iptables rules was the way to go to create a captive portal.</p>
<p dir="ltr">Sebastien</p>
<div class="gmail_quote">Le 2014-07-31 10:06, "Jouni Malinen" <<a href="mailto:j@w1.fi">j@w1.fi</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Jul 28, 2014 at 10:09:10AM -0400, Sébastien Pierre wrote:<br>
> I would like to setup a redirection to a specific URL when a user joins an<br>
> open WiFi network. I've tried the "network_auth_type" configuration<br>
> parameter, but without any success.<br>
<br>
Please note that that parameter is just making the AP provide<br>
information about the URL in an ANQP request; it does not in any way<br>
force the station to use or even query that information.<br>
<br>
> but in both cases I can't access the WiFi network, nor do I see any<br>
> request logged on the apache2 access log.<br>
><br>
> I couldn't find more information about what exactly the different modes<br>
> (01, 02, etc) do and how the redirect URL is used.<br>
<br>
It sounds like you are trying to force the station to go through a<br>
captive portal. hostapd won't do that, i.e., you would need external<br>
programs to manage firewall rules and forwarding of the first HTTP<br>
operation to build a captive portal.<br>
<br>
--<br>
Jouni Malinen PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</blockquote></div>