Lokasi Ardelindo Aples Depok


View Ardelindo Aples in a larger map

Rabu, 29 April 2009

Instalasi dan Konfigurasi Hotcakes Captive Portal

Disusun oleh:
Team Ardelindo Aples
info@ardelindo.com
www.ardelindo.com

Konsep Wireless RT/RW Net



Perangkat Wireless RT/RW Net
Peningkatan keamanan


Tanpa Hotspot Captive Portal



Instalasi apache2 dan php5
apt-get install apache2-mpm-prefork php5 php5-mysql mysql-server-5.0 mysql-client-5.0 php5-gd ssl-cert

Instalasi Cake
su -
cp /home/budi/cake_1.1.18.5850.tar.gz /var/www/
cd /var/www
sudo tar -xzvf cake_1.1.18.5850.tar.gz
sudo ln -s cake_1.1.18.5850 cake

vim /etc/apache2/ports.conf
vim /etc/apache2/sites-enabled/000-default
NameVirtualHost *:80
NameVirtualHost *:443
..... bla .. bla .. etc .. etc

#tambahkan baris ini
SSLEngine On
SSLCertificatefile /etc/apache2/ssl/apache.pem
..... bla .. bla .. etc .. etc
root@ubuntu:~# /etc/init.d/apache2 restart
vim /etc/apache2/apache2.conf

AllowOverride All


Konfigurasi Chillispot
vim /etc/chilli.conf
vim /etc/php5/apache2/php.ini
output_buffering = 4096
sudo a2enmod rewrite
sudo /etc/init.d/apache2 reload
uamserver https://192.168.182.1/cgi-bin/hotspotlogin.cgi
uamhomepage http://192.168.182.1/cake/hotcakes/welcome/login_page.html
uamsecret testing123
uamallowed Specify the DNS servers defined on your machine (ISP)
radiusserver1 127.0.0.1
radiusserver2 127.0.0.1
radiussecret testing123
dhcpif eth0 (Ethernet yang ke arah Access Point)

Setting DNS lokal
vim /etc/bind/named.conf.options
options {
forwarders { 202.46.2.1; 202.134.0.155;122.200.54.18;};
}
/etc/init.d/bind9 restart



Instalasi hotcakes captive portal
cd /var/www/cake/
tar xzvf hotcakes-beta-5.tar.gz
chown -R www-data.www-data /var/www/cake/hotcakes/tmp
chmod 777 /var/www/cake/hotcakes/webroot/generated

Instalasi MySQL Server
mysql -u root
create database radius;
GRANT ALL PRIVILEGES ON radius.* to 'radius'@'127.0.0.1' IDENTIFIED BY 'radius';
GRANT ALL PRIVILEGES ON radius.* to 'radius'@'localhost' IDENTIFIED BY 'radius'; exit;
mysql -u root radius < /var/www/cake/hotcakes/db/radius.sql


Instalasi dan konfigurasi FreeRadius

sudo apt-get install build-essential libmysqlclient15-dev libperl-dev
tar -xzvf freeradius-1.1.6.tar.gz
cd freeradius-1.1.6
./configure
make
sudo make install
/usr/local/sbin/radiusd -X

Copy dictionary freeradius
cp /var/www/cake/hotcakes/db/radius/dictionary /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/proxy.conf /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/radiusd.conf /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/rlm_perl.pm /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/sql.conf /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/sqlcounter.conf /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/users /usr/local/etc/raddb
cp /var/www/cake/hotcakes/db/radius/dictionary.chillispot /usr/local/share/freeradius
chown www-data.www-data /usr/local/etc/raddb/proxy.conf
chmod 777 /usr/local/etc/raddb/dictionary

Testing freeradius
root@ubuntu:~# radtest alee alee 127.0.0.1 0 testing123
Sending Access-Request of id 201 to 127.0.0.1 port 1812
User-Name = "alee"
User-Password = "alee"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=201, length=68
Idle-Timeout = 60
Acct-Interim-Interval = 98989
WISPr-Bandwidth-Max-Up = 8
ChilliSpot-Max-Total-Octets = 41196411
WISPr-Bandwidth-Max-Down = 78


Konfigurasi Apache2 SSL
apt-get install openssl
a2enmod ssl
mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/apache.pem

Created by: budi santoso (linux.multimedia(at)gmail(dot)com
============
COMMERCIAL BREAK
============
WORKSHOP LINUX ENTERPRISE
http://www.ardelindo.com/aples/default.php?module=news&id=9

TRAINING LINUX GRATIS OSS
http://www.ardelindo.com/aples/default.php?module=news&id=13

REQUEST DIKLAT LINUX DAN PROFESIONAL PACKAGE
http://www.ardelindo.com
info(at)ardelindo(dot)com

Tidak ada komentar:

Posting Komentar