<html>
<head>
<meta content="text/html; charset=TIS-620" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 20/12/2555 13:48, Budiono Untung
wrote:<br>
</div>
<blockquote
cite="mid:CAPhEtZnWRhKVp0zzxxs_U8XP3xtF8uv7X+hat=p8+YGAyV9t8Q@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Fri, Dec 14, 2012 at 5:16 PM,
EasyHorpak.com <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:info@easyhorpak.com" target="_blank">info@easyhorpak.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>
<div class="h5">
<div>On 14/12/2555 16:15, Budiono Untung wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5"> Hi All,<br>
<br>
I would like to make wifi hotspot , with user-agent as
authentication to freeradius . The scenario is like
this:<br>
If the user-agent is 'a' then it will rejected <br>
and if user-agent is 'b' then it will be allowed to
login page that connected to freeradius as
authenticator.<br>
<br>
Is above scenario will be possible ?<br>
<br>
TIA,<br>
Dion<br>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>-
List info/subscribe/unsubscribe? See <a moz-do-not-send="true" href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a></pre>
</blockquote>
What is your NAS? How your client authen?<br>
You can use checkval modules to filter user-agent.<br>
</div>
<br>
</blockquote>
<div>Hi ,<br>
My NAS would be Ruckus ZF series , Client is mobile phone.
When client using brand x to surfing internet in our hotspot
then he/she will be allow to login page, otherwise will be
reject with landing page, "you can't allow to access our
hotspot" . Allow client will be redirect to login page, he
/she need to insert passcode to access the internet.<br>
<br>
How do we use checkval for filtering user-agent, please
advice. <br>
<br>
Regards<br>
Dion<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">-<br>
List info/subscribe/unsubscribe? See <a
moz-do-not-send="true"
href="http://www.freeradius.org/list/users.html"
target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote>
</div>
<br>
</blockquote>
I don't know about Ruckus ZF series but the options you need it
runs before user login to freeradius.<br>
freeradius can do nothing without user type username and password
and press login.<br>
if your first page is php, you can use function php user-agent by
$_SERVER["HTTP_USER_AGENT"];<br>
you must has user-agent database to check and compare then redirect
which client you are allowed to login page.<br>
<br>
user-agent data from php function look like :<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=TIS-620">
<span style="color: rgb(0, 0, 0); font-family: sans-serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: left; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(204, 204, 204); display: inline !important;
float: none;">Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11
(KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11<br>
<br>
<br>
</span>then you need like :<br>
<br>
<br>
if(stripos($_SERVER["HTTP_USER_AGENT"], "iPad") !== FALSE){<br>
<br>
#if client is iPad redirect to login page<br>
echo '<meta http-equiv="refresh" content="0;
URL=login_page.php">';<br>
<br>
}else{<br>
<br>
#if client is NOT iPad redirect show message <br>
echo "you can't allow to access our hotspot";<br>
<br>
}<br>
<br>
<br>
Hope this helps<br>
<br>
Regards <br>
Chuan Chudabut<br>
<br>
<br>
</body>
</html>