<p><a href="https://github.com/dismantl"><img src="https://avatars.githubusercontent.com/u/2007008?" align="left" width="96" height="96" hspace="10" style="max-width:100%;"></a> <strong>Issue by <a href="https://github.com/dismantl">dismantl</a></strong><br><em>Wednesday Jun 12, 2013 at 22:49 GMT</em><br><em>Originally opened as <a href="https://github.com/opentechinstitute/luci-commotion-splash/pull/1" class="issue-link" title="DNS spoofing to captive portal on non-internet connected networks">opentechinstitute/luci-commotion-splash#1</a></em></p>

<hr><p>To test:</p>

<ol class="task-list">
<li>Install this version of commotion-splash on a router (using this Makefile: <a href="https://github.com/opentechinstitute/commotion-splash/blob/dns-spoof/openwrt/Makefile">https://github.com/opentechinstitute/commotion-splash/blob/dns-spoof/openwrt/Makefile</a>)</li>
<li>bring up a node as an internet gateway (and with this version of commotion-splash, obvio), and connect to it. Open a browser and go to any page; it should captive portal you.</li>
<li>run "dig commotionwireless.net" from your computer, and it should give you our server's IP address: 209.66.96.69.</li>
<li>Now unplug the ethernet connection to the router's PoE jack, so it is no longer connected to the upstream gateway.</li>
<li>Open another browser, and go to redemmas.org. You should still get captive-portaled.</li>
<li>To double-check, run "dig indyreader.org" from your computer, and it should give you 1.2.3.4 as the IP address. Shazam!</li>
</ol><hr><p><em><strong><a href="https://github.com/dismantl">dismantl</a></strong> included the following code: <a href="https://github.com/opentechinstitute/luci-commotion-splash/pull/1/commits">https://github.com/opentechinstitute/luci-commotion-splash/pull/1/commits</a></em></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/luci-commotion/issues/291">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODczMjgwMCwiZGF0YSI6eyJpZCI6MzQ5ODA5NTZ9fQ==--3a12049824543cdfde463d80cc463fa22c0fa44a.gif" width="1" /></p>