[Mikrotik] Walled Garden

Josh Luthman josh at imaginenetworksllc.com
Wed Aug 5 18:15:41 CDT 2009


Randy you are my hero!

Wrote a nice little copy/paste tutorial for my own reference, in case anyone
else needs it:

http://stfunoo.be/?p=222

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Wed, Aug 5, 2009 at 6:12 PM, Randy Cosby <dcosby at infowest.com> wrote:

> It's been forever since I put this together, but it worked.  My memory is
> foggy though.
>
> I set the hotspot server to use the "hsprof1" profile.
>
> In the hsprof1 server profile:
>
> Set the Trial uptime limit and uptime reset to 2 hours.  Set the trial user
> profile to default.  Allow login by HTTP PAP and Trial.  Don't use radius.
> On the "default" user profile, set up the proper address pool, no idle
> timeout, 00:02:00 keepalive timeout, open status page to "always"
>
> On the HTML, the default stuff works. Modify as you need to remove /
> comment out the unnecessary login form fields.  Here's the code snippet I
> use for :
>
> <!-- Insert actual Form to allow access below -->
> <div align="center">
>
> <table width="100%" style="margin-top: 10%;">
>        <tr>
>        <td align="center" valign="middle">
>                <!-- <div class="notice" style="color: #c1c1c1; font-size:
> 9px"> --> Please log on to use the hotspot service<br />$(if trial == 'yes')
> To log in, <a style="color:
> #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)">click
> here</a>.$(endif)</div><br />
>
>                <!-- <table width="240" height="240" style="border: 1px
> solid #cccccc; padding: 0px;" cellpadding="0" cellspacing="0">
>                        <tr>
>                                <td align="center" valign="bottom"
> height="175" colspan="2">
>                                        <form name="login"
> action="$(link-login-only)" method="post"
>                                            $(if chap-id) onSubmit="return
> doLogin()" $(endif)>
>                                                <input type="hidden"
> name="dst" value="$(link-orig)" />
>                                                <input type="hidden"
> name="popup" value="true" />
>
>                                                        <table width="100"
> style="background-color: #ffffff">
>                                                                <tr><td
> align="right">login</td>
>
>    <td><input style="width: 80px" name="username" type="text"
> value="$(username)"/></td>
>                                                                </tr>
>                                                                <tr><td
> align="right">password</td>
>
>    <td><input style="width: 80px" name="password" type="password"/></td>
>                                                                </tr>
>
>  <tr><td>&nbsp;</td>
>
>    <td><input type="submit" value="OK" /></td>
>                                                                </tr>
>                                                        </table>
>                                        </form>
>                                </td>
>                        </tr>
>                        <tr><td align="center"><a href="
> http://www.mikrotik.com" target="_blank" style="border: none;"><img
> src="/img/logobottom.png" alt="mikrotik" /></a></td></tr>
>                </table>
>  -->
>        <!-- <br /><div style="color: #c1c1c1; font-size: 9px">Powered by
> InfoWest, copyright 2007</div>  -->
>        $(if error)<br /><div style="color: #FF8080; font-size:
> 9px">$(error)</div>$(endif)
>        </td>
>        </tr>
> </table>
> </div>
>
>
>
> Josh Luthman wrote:
>
>> That should be a pretty easy solution.  Is it required there be a user
>> name
>> and password?
>>
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>> "When you have eliminated the impossible, that which remains, however
>> improbable, must be the truth."
>> --- Sir Arthur Conan Doyle
>>
>>
>> On Wed, Aug 5, 2009 at 5:41 PM, ccrum <ccrum at dot11net.com> wrote:
>>
>>
>>
>>> You could download and modify the hotspot page to have a simple "I agree"
>>> button that just logs everyone in with the same username. Put a session
>>> timeout on the user for 24 hours or whatever and make sure you have
>>> unlimited logins. If you need help with the page, let me know.
>>>
>>> Cameron
>>>
>>>
>>> Steve Barnes wrote:
>>>
>>>
>>>
>>>> Yeah, Butch Please!!! :) I need the exact same setup at a hotel.  And a
>>>> downtown Hotspot.
>>>>
>>>> Steve Barnes
>>>> Manager
>>>> PCS-WIN
>>>> RC-WiFi Wireless Internet Service
>>>>
>>>> Character cannot be developed in ease and quiet. Only through experience
>>>> of
>>>> trial and suffering can the soul be strengthened, vision cleared,
>>>> ambition
>>>> inspired, and success achieved.
>>>> - Helen Keller
>>>>
>>>> -----Original Message-----
>>>> From: mikrotik-bounces at mail.butchevans.com
>>>> [mailto:mikrotik-bounces at mail.butchevans.com] On Behalf Of Josh Luthman
>>>> Sent: Wednesday, August 05, 2009 2:22 PM
>>>> To: Mikrotik discussions
>>>> Subject: Re: [Mikrotik] Walled Garden
>>>>
>>>> I need Butch to do this simple thing for me too.  All you need is MT.
>>>> Perhaps he will post something on his blog or the html page needed on
>>>> this list.  Maybe, hopefully :). If not give him a ring.
>>>>
>>>> On 8/5/09, Terry Trumbo <ttrumbo at nolinrecc.com> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> Yep just agree to the terms and off they go.
>>>>>
>>>>> Terry
>>>>>
>>>>> -----Original Message-----
>>>>> From: mikrotik-bounces at mail.butchevans.com
>>>>> [mailto:mikrotik-bounces at mail.butchevans.com] On Behalf Of Josh
>>>>> Luthman
>>>>> Sent: Wednesday, August 05, 2009 1:43 PM
>>>>> To: Mikrotik discussions
>>>>> Subject: Re: [Mikrotik] Walled Garden
>>>>>
>>>>> What do you want it to do?  Just catch people, force them to agree to
>>>>> terms and conditions then let them online?
>>>>>
>>>>> On 8/5/09, Terry Trumbo <ttrumbo at nolinrecc.com> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I am just getting started using Mikrotik and I really am impressed
>>>>>> with what it can do. I do have a question about the walled garden. I
>>>>>> have a hotel that needs to have the terms of use page come up when
>>>>>> first connected, when they accept the terms it takes them to the
>>>>>> hotels webpage then thye can surf all they want. Can this be done in
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> Mikrotik?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> All I have seen so far is having to authenticate to go out. Am I
>>>>>> missing something here? Thanks.
>>>>>>
>>>>>> Terry
>>>>>> _______________________________________________
>>>>>> Mikrotik mailing list
>>>>>> Mikrotik at mail.butchevans.com
>>>>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>>>>
>>>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>>>> RouterOS
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Josh Luthman
>>>>> Office: 937-552-2340
>>>>> Direct: 937-552-2343
>>>>> 1100 Wayne St
>>>>> Suite 1337
>>>>> Troy, OH 45373
>>>>>
>>>>> "When you have eliminated the impossible, that which remains, however
>>>>> improbable, must be the truth."
>>>>> --- Sir Arthur Conan Doyle
>>>>> _______________________________________________
>>>>> Mikrotik mailing list
>>>>> Mikrotik at mail.butchevans.com
>>>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>>>
>>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>>> RouterOS
>>>>> _______________________________________________
>>>>> Mikrotik mailing list
>>>>> Mikrotik at mail.butchevans.com
>>>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>>>
>>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>>>
>>>>>
>>>>>
>>>>>
>>>> RouterOS
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Mikrotik mailing list
>>> Mikrotik at mail.butchevans.com
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>> RouterOS
>>>
>>>
>>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://www.butchevans.com/pipermail/mikrotik/attachments/20090805/5328f40a/attachment.html
>> >
>> _______________________________________________
>> Mikrotik mailing list
>> Mikrotik at mail.butchevans.com
>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>
>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>> RouterOS
>>
>>
>
> --
> Randy Cosby
> Vice President
> InfoWest, Inc
>
> work: 435-773-6071
> email: rcosby at infowest.com
>
> http://www.linkedin.com/in/randycosby
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.butchevans.com/pipermail/mikrotik/attachments/20090805/7dd19b93/attachment.html
> >
>
> _______________________________________________
> Mikrotik mailing list
> Mikrotik at mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.butchevans.com/pipermail/mikrotik/attachments/20090805/0fccce7f/attachment.html>


More information about the Mikrotik mailing list