2012-05-21 - Re: [GRASE-Hotspot] Changing 10.1.0.1 to hostname
Header Data
From: Tim White <ti***8@gmail.com>
Message Hash: 88ded0606a73d7bb583c8f41f97629a89edd18598044816b1e99f58617a211db
Message ID: <4FBA1F56.6060002@gmail.com>
Reply To: <B3CED890-FAED-4E19-8F50-2D1F64E39294@vilasmolic.co.uk>
UTC Datetime: 2012-05-21 03:56:22 UTC
Raw Date: Mon, 21 May 2012 20:56:22 +1000
Raw message
On 21/05/12 19:46, Jurica Smoli\u0107 wrote:
> Hi tim is it possible to have the host name rather then the ip in the
> url when users connect to hotspot?
>
> Also is it possible to remove grase out of the url. So it reads
> http://hotspot/radmi or uam etc?
Hi Jurica.
It is possible, however the reason we use ip address instead of hostname
is reliability. For example, some users have hard coded DNS settings,
which will work once they are logged in, but might not work before hand.
So basically, in testing, it was decided to use ip address (which is
very common for captive portals) for reliability.
Some options.
1. We can use an external domain name (like login.grasehotspot.org)
which points to 10.1.0.1. However, anyone who wants to change the range
then has to make it use ip address again.
2. We use the local DNS with a hostname (and in fact we already do) and
don't worry about the few users who for some reason don't resolve the
local DNS. (Ignore the fact we can "force" local DNS via iptables, some
users DNS just isn't going to work).
This option is already kinda there, grasehotspot.lan resolves to the
hotspots local address, logout resolves to 1.0.0.0 which is a special
logout ip address to force logout, and logoff also resolves to 1.0.0.0.
However, as previously said, this doesn't always work well.
Feel free to open a ticket (trac.grasehotspot.org) and I'll look into
making it an option to use hostname.
As for removing the grase part out of the URL, yes, but no. So that we
can package it up without it interfering with other packages on the
server (i.e you might want to run a website off the same computer for
the local intranet), we only "hijack" urls below /grase/. (See the Alias
in the Apache conf file). While you could have 2 aliases, one for
/radmin and one for /uam, there are a few files and directories in
/grase/ that are shared between them, and some of them could easily
conflict with a website on that host.
This isn't something that can be easily made configurable as it would
require changing files that are installed by a package, which can then
cause problems.
Other than making the URL shorter, what's your reason for wanting to
remove grase from the url? Given that users don't have to type the url,
and if you are on the hotspot side, getting the link to admin is easy.
Tim
Thread
-
Return to May 2012
- Return to “Adrian Tanta - Absol Communication Srl <at***t@absol.it>”
- Return to “Jurica Smolić <ju***c@vilasmolic.co.uk>”
-
Return to “Tim White <ti***8@gmail.com>”
- 2012-05-18 (Fri, 18 May 2012 17:43:50 +0200) - [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Adrian Tanta - Absol Communication Srl <at***t@absol.it>
- 2012-05-18 (Sat, 19 May 2012 07:33:02 +1000) - Re: [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Tim White <ti***8@gmail.com>
- 2012-05-21 (Mon, 21 May 2012 10:29:59 +0200) - Re: [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Adrian Tanta - Absol Communication Srl <at***t@absol.it>
- 2012-05-22 (Wed, 23 May 2012 14:59:14 +1000) - Re: [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Tim White <ti***8@gmail.com>
- 2012-05-21 (Mon, 21 May 2012 10:46:49 +0100) - [GRASE-Hotspot] Changing 10.1.0.1 to hostname - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-21 (Mon, 21 May 2012 20:56:22 +1000) - Re: [GRASE-Hotspot] Changing 10.1.0.1 to hostname - Tim White <ti***8@gmail.com>
- 2012-05-21 (Mon, 21 May 2012 13:42:39 +0100) - Re: [GRASE-Hotspot] Changing 10.1.0.1 to hostname - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-22 (Tue, 22 May 2012 21:44:05 +0100) - [GRASE-Hotspot] Is it possible to add new time sessions in grase - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-22 (Wed, 23 May 2012 07:25:12 +1000) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Tim White <ti***8@gmail.com>
- 2012-05-22 (Tue, 22 May 2012 23:47:36 +0100) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-22 (Wed, 23 May 2012 14:22:49 +1000) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Tim White <ti***8@gmail.com>
- 2012-05-23 (Wed, 23 May 2012 08:02:41 +0100) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-22 (Wed, 23 May 2012 14:22:49 +1000) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Tim White <ti***8@gmail.com>
- 2012-05-22 (Tue, 22 May 2012 23:47:36 +0100) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-22 (Wed, 23 May 2012 07:25:12 +1000) - Re: [GRASE-Hotspot] Is it possible to add new time sessions in grase - Tim White <ti***8@gmail.com>
- 2012-05-22 (Tue, 22 May 2012 21:44:05 +0100) - [GRASE-Hotspot] Is it possible to add new time sessions in grase - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-21 (Mon, 21 May 2012 13:42:39 +0100) - Re: [GRASE-Hotspot] Changing 10.1.0.1 to hostname - Jurica Smolić <ju***c@vilasmolic.co.uk>
- 2012-05-21 (Mon, 21 May 2012 20:56:22 +1000) - Re: [GRASE-Hotspot] Changing 10.1.0.1 to hostname - Tim White <ti***8@gmail.com>
- 2012-05-21 (Mon, 21 May 2012 10:29:59 +0200) - Re: [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Adrian Tanta - Absol Communication Srl <at***t@absol.it>
- 2012-05-18 (Sat, 19 May 2012 07:33:02 +1000) - Re: [GRASE-Hotspot] eth0 + eth1 + wlan0 = dns errors - Tim White <ti***8@gmail.com>