Chilli Captive portal (yet)
July 29, 2008

Let's make it quick, this is just a simple howto to build your own hotspot captive portal :

i assume we already know howto configure and install freeradius, or check :

http://spikecursed.blogsome.com/2007/08/28/radius-sql-dialin-server

http://freeradius.org

for more info about freeradius.

lets continue with compiling chillispot :

tar -xvzf  chillispot-x.x.x.tar.gz

cd  chillispot-x.x.x , then

./configure --prefix=/usr/local/chilli

make

make all

make install

then create chilli config file ;

vi /usr/local/chilli/chilli.conf

insert this sample config :

#fg
#debug
pidfile /var/run/chilli.pid

# PARAMETER IP
net 172.16.1.0/24
statip 172.16.1.0/24
dns1 172.16.1.253
dns2 172.16.1.252

# PARAMETER RADIUS
#radiuslisten 127.0.0.1
radiusserver1 127.0.0.1
radiusserver2 127.0.0.1
radiusauthport 1812
radiusacctport 1813
radiussecret Qwifi
radiuslocationid isocc=id,cc=62,ac=22,network=spikenet
radiuslocationname SP8,BDG-ID

# PARAMETER DHCP
dhcpif eth1
dhcpmac 00:00:5E:00:24:10
lease 600

# PARAMETER PORTAL
uamserver http://172.16.1.1/cgi-bin/hotspotlogin.cgi
uamsecret spikecursedatgmaildotcom
uamlisten 172.16.1.1
uamport 3990
uamallowed 172.16.1.1
uamanydns

# MAC authentication

#macauth
#macallowed 00-0A-5E-AC-BE-51,00-30-1B-3C-32-E9
#macpasswd spikecursed
#macsuffix suffix
 

*** make sure uamsecret at chilli.conf is the same with uamsecret at hotspotlogin.cgi :

$uamsecret = "spikecursedatgmaildotcom";

to disable https at the uampage we need to edit hotspotlogin.cgi ( comment https check function ) :

# If she did not use https tell her that it was wrong.
#if (!($ENV{HTTPS} =~ /^on$/)) {
#    print "Content-type: text/html\n\n
#<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
#<html>
#<head>
#  <title>ChilliSpot Login Failed</title>
#  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
#  <meta http-equiv=\"Pragma\" content=\"no-cache\">
#</head>
#<body bgColor = '#c0d8f4'>
#  <h1 style=\"text-align: center;\">ChilliSpot Login Failed</h1>
#  <center>
#    Login must use encrypted connection.
#  </center>
#</body>
#<!--
#<?xml version=\"1.0\" encoding=\"UTF-8\"?>
#<WISPAccessGatewayParam
#  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
#  xsi:noNamespaceSchemaLocation=\"http://www.acmewisp.com/WISPAccessGatewayParam.xsd\">
#<AuthenticationReply>
#<MessageType>120</MessageType>
#<ResponseCode>102</ResponseCode>
#<ReplyMessage>Login must use encrypted connection</ReplyMessage>
#</AuthenticationReply>
#</WISPAccessGatewayParam>
#-->
#</html>
#";
#    exit(0);
#}

then let chillispot roll :

chilli -c /usr/local/chilli/chilli.conf

tail /var/log/messages and check for chilli daemon run info.

this is simple script to restart chilli  :

#!/bin/sh
echo -e "\033[1mStarting Captive portal\033[0m"
set $(cat /usr/local/chilli/chilli.pid)
kill -9 $1
/usr/local/chilli/sbin/chilli -c /usr/local/chilli/chilli.conf

thereis a better init script which is provided in chilli tar ball package, check it out.

thats it g2g.

*** note : always compare radius log and /var/log/messages to debug.



Spread Firefox Affiliate Button
Bookmark and Share
Page copy protected against web site content infringement by Copyscape



The Kill - 30secondstomars lyrics
July 28, 2008

The Kill - 30secondstomars

What if I wanted to break
Laugh it all off in your face
What would you do? (Oh, oh)
What if I fell to the floor
Couldn't take all this anymore
What would you do, do, do?

Come break me down
Bury me, bury me
I am finished with you

What if I wanted to fight
Beg for the rest of my life
What would you do?
You say you wanted more
What are you waiting for?
I'm not running from you (from you)

Come break me down
Bury me, bury me
I am finished with you
Look in my eyes
You're killing me, killing me
All I wanted was you

I tried to be someone else
But nothing seemed to change
I know now, this is who I really am inside.
Finally found myself
Fighting for a chance.
I know now, this is who I really am.

Ah, ah
Oh, oh
Ah, ah

Come break me down
Bury me, bury me
I am finished with you, you, you.
Look in my eyes
You're killing me, killing me
All I wanted was you

Come break me down (bury me, bury me)
Break me down (bury me, bury me)
Break me down (bury me, bury me)

(You say you wanted more)
What if I wanted to break...?
(What are you waiting for?)
Bury me, bury me
(I'm not running from you)
What if I
What if I
What if I
What if I
Bury me, bury me

Posted in Nop | No Comments »


Spread Firefox Affiliate Button
Bookmark and Share
Page copy protected against web site content infringement by Copyscape



Not gonna wait ?

They are in the midst of breaking up,even if his eyes are closed,
He knows the breakup is still happening and its all real.
He hears her warnings, her telling him they can't be,
But they both know he will always try to be back with her.

Their future has come crashing down.
She's deep enough to lay her armour down
Is her saying they've come to a point where
She doesn't think they can go on,
But she still trusts him with her life.
She knows whatever happens between them,
She'll always be able to go to him.

He will have one shot to get back together with the girl,
And by showing her something that the night took,
He will reminisce with her about past times together,
And what that dreadful night took away from them both.
What he doesnt know is that he is trying again too soon,
And asks her to forget what he is saying,
Because she is not ready for it again.

Don't wait any longer! The time will come,
When things should work out and then pass quickly,
So don't wait and let the opportunity pass you by.
The days will pass when they're apart,
So don't wait, just give it another shot.

Posted in Nop | No Comments »


Spread Firefox Affiliate Button
Bookmark and Share
Page copy protected against web site content infringement by Copyscape