<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jason,<br>
<br>
<blockquote
 cite="mid:AANLkTimU3pOUwEN-OsyokUCjjoyHegq5Fa9T-UzEsK2p@mail.gmail.com"
 type="cite">Am I correct in saying that when a connected authenticated
client makes a request to a web page a dns lookup occurs, and the
gateway through ip tables could "catch" the request and redirect to the
packets to the internal web server of the gateway?<br>
</blockquote>
Yes it should, it the rule to redirect when internet is not answering
is there...<br>
<br>
<blockquote
 cite="mid:AANLkTimU3pOUwEN-OsyokUCjjoyHegq5Fa9T-UzEsK2p@mail.gmail.com"
 type="cite"><br>
But in the case of a client that has a cached DNS entry, the web
browser tries to go to the ip directly, could this also be "caught".<br>
</blockquote>
In that case, it is as if the dns lookup returned true and the request
is done, so I guess it should be caught by the gateway.<br>
<br>
<blockquote
 cite="mid:AANLkTimU3pOUwEN-OsyokUCjjoyHegq5Fa9T-UzEsK2p@mail.gmail.com"
 type="cite"><br>
In the case of the DNS "catch" would you have to actually return a DNS
response to the browser or could you just redirect?<br>
</blockquote>
I don't know how feasible it would be to have the router act as a
catch-all DNS server, so that if any DNS lookup returns unknown, then
it returns its own address, so that the request can get one step
further and then be caught by the gateway.<br>
<br>
sorry I can't help you very much on this.<br>
<br>
Geneviève<br>
<br>
<br>
<blockquote
 cite="mid:AANLkTimU3pOUwEN-OsyokUCjjoyHegq5Fa9T-UzEsK2p@mail.gmail.com"
 type="cite"><br>
Look forward to your response.<br>
  <br>
Regards<br>
Jason<br>
  <br>
  <div class="gmail_quote">On Wed, Aug 4, 2010 at 11:58 PM, Genevieve
Bastien <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:gbastien@versatic.net">gbastien@versatic.net</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Hi Jason,
    <div class="im"><br>
    <br>
    <blockquote type="cite">
      <ol>
      </ol>
Situation 1<br>
The auth server is down page is displayed as expected<br>
    </blockquote>
    </div>
The page that is shown there is the green page saying "Uh ohhh 
internet not available", right?  This page resides on the gateway and
is the file /etc/wifidog-msg.html
    <div class="im"><br>
    <br>
    <blockquote type="cite"><br>
Situation 2<br>
The client connects to the hotspot and then tries to go to the browser
default page,for example <a moz-do-not-send="true"
 href="http://www.google.con.au" target="_blank">www.google.con.au</a>. 
The client
gets a Server not found error in their browser.  I would like to have
the Auth server is down page displayed.  I believe what I am seeing is
due to the DNS lookup failure.  Is there away around this?  Since the
user is not authenticated yet, i would of thought all requests would be
redirected without doing a DNS lookup.  Have I miss-understood this?<br>
      <br>
Situation 3<br>
The client is browsing the internet and the internet connection goes
down.  I would to show the internet down page when they request their
next page.<br>
      <br>
    </blockquote>
    </div>
Indeed, there is no internet is down page.  Actually, I think the
gateway is not involved at all before the dns is resolved, so that it
isn't caught by the rule that shows the internet unavailable page.<br>
    <br>
But that would certainly be a nice feature to add.  I guess it would
involve some iptables set by the gateway when internet is down.  If the
gateway doesn't catch the request for dns lookup, at least the firewall
will and will display the page...  <br>
    <br>
Or modify the gateway so that the dns lookup request is caught and the
error page is shown.  Because the code to display the message in
situation 2 and 3 is there, it is just never called...<br>
    <br>
Hope this helps,<br>
Geneviève<br>
    </div>
    <br>
_______________________________________________<br>
WiFiDog mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a><br>
    <a moz-do-not-send="true"
 href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog"
 target="_blank">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
WiFiDog mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a>
<a class="moz-txt-link-freetext" href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a></pre>
</blockquote>
</body>
</html>