<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, &quot;Jouni Malinen&quot; &lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt; 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>
&gt; I would like to setup a redirection to a specific URL when a user joins an<br>
&gt; open WiFi network. I&#39;ve tried the &quot;network_auth_type&quot; configuration<br>
&gt; 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>
&gt; but in both cases I can&#39;t access the WiFi network, nor do I see any<br>
&gt; request  logged on the apache2 access log.<br>
&gt;<br>
&gt; I couldn&#39;t find more information about what exactly the different modes<br>
&gt; (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&#39;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>