Hotspot dengan chillispot - INDONESIA

oleh Budiwijaya (budiw_1 (at) yahoo (dot) com)

Versi dokumen 0.0.4
sebaiknya dilihat pada resolusi 1024x768
File terbaru bisa didapat di http://howto.budiwijaya.or.id/hotspot-dengan-chillispot.html
Abstraksi

Dua langkah mudah membuat hotspot gateway dengan chillispot dan debian etch.

Daftar Isi:

  1. Install Debian
  2. Install Hotspot

Langkah 1,

Install the-greatest-linux-of-all, debian. :) ~20minutes


Langkah 2,

Tambahkan repository

	#vi /etc/apt/sources.list
	deb http://debian.its.ac.id/debian/ etch main contrib non-free
	#apt-get update
Install ssh server dan set supaya root tidak bisa login
	#apt-get install openssh-server
	#vi /etc/ssh/sshd_config
	 --> PermitRootLogin no
Buang servis yang tidak diperlukan.
	#update-rc.d -f exim4 remove
	#update-rc.d -f portmap remove
	#update-rc.d -f openbsd-inetd remove
	#update-rc.d -f nfs-common remove
Install paket yang diperlukan
#apt-get install apache apache-ssl libapache-mod-ssl freeradius chillispot
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  apache-common apache2-utils libapr1 libaprutil1 libexpat1 libltdl3
  libperl5.8 libpq4 libsqlite3-0 openssl ssl-cert
Suggested packages:
  apache-doc apache-perl freeradius-ldap freeradius-mysql freeradius-krb5
  ca-certificates libapache-mod-ssl-doc
Recommended packages:
  httpd httpd-cgi
The following NEW packages will be installed:
  apache apache-common apache-ssl apache2-utils chillispot freeradius
  libapache-mod-ssl libapr1 libaprutil1 libexpat1 libltdl3 libperl5.8 libpq4
  libsqlite3-0 openssl ssl-cert
0 upgraded, 16 newly installed, 0 to remove and 74 not upgraded.
Need to get 5642kB of archives.
After unpacking 14.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://debian.its.ac.id etch/main libexpat1 1.95.8-3.4 [62.9kB]
Get:2 http://debian.its.ac.id etch/main libapr1 1.2.7-8.2 [109kB]
Get:3 http://debian.its.ac.id etch/main libpq4 8.1.8-1 [268kB]
Get:4 http://debian.its.ac.id etch/main libsqlite3-0 3.3.8-1.1 [194kB]
Get:5 http://debian.its.ac.id etch/main libaprutil1 1.2.7+dfsg-2 [68.5kB]
Get:6 http://debian.its.ac.id etch/main apache2-utils 2.2.3-4 [341kB]
Get:7 http://debian.its.ac.id etch/main apache-common 1.3.34-4.1 [848kB]
Get:8 http://debian.its.ac.id etch/main apache 1.3.34-4.1 [392kB]
Get:9 http://debian.its.ac.id etch/main openssl 0.9.8c-4 [1004kB]
Get:10 http://debian.its.ac.id etch/main ssl-cert 1.0.14 [11.1kB]
Get:11 http://debian.its.ac.id etch/main apache-ssl 1.3.34-4.1 [496kB]
Get:12 http://debian.its.ac.id etch/main chillispot 1.0-4 [91.1kB]
Get:13 http://debian.its.ac.id etch/main libltdl3 1.5.22-4 [169kB]
Get:14 http://debian.its.ac.id etch/main libperl5.8 5.8.8-7 [527kB]
Get:15 http://debian.its.ac.id etch/main freeradius 1.1.3-3 [732kB]
Get:16 http://debian.its.ac.id etch/main libapache-mod-ssl 2.8.25-2 [329kB]
Fetched 5642kB in 1m27s (64.7kB/s)
Preconfiguring packages ...


Jawablah pertanyaan-pertanyaan yang ada.
- Radius server1 - 127.0.0.1
- Radius secret - rootboxhotspot5678
- Ethernet DHCP - eth1
- UAM Server - https://192.168.182.1/cgi-bin/hotspotlogin.cgi
- UAM Hompage - dikosongi
- Shared password chilli+webserver - rootboxhotspot1234

setelah itu pertanyaan seputar SSL
- Country - ID
- State - Jawa Timur
- Locality - Surabaya
- Organization name - ROOTBOX NOC Surabaya
- Organization Unit Name - Engineer Surabaya
- Hostname/CN - *.rootbox.or.id
- Email address - [email protected]


Edit file /usr/lib/cgi-bin/hotspotlogin.cgi tambahkan baris dibawah, setelah baris ini: # $uamsecret = "ht2eb8ej6s4et3rg1ulp";

$uamsecret = "rootboxhotspot1234";
Edit file /etc/chilli.conf
#vi /etc/chilli.conf
beri komentar (dengan tanda # {pagar} ) untuk baris
uamhomepage
sehingga menjadi
# uamhomepage
hal ini dikarenakan kita berencana tidak menggunakan tampilan homepage/welcome. cukup kalo ada yang mau browsing, langsung disuguhi prompt user+password


Edit file /etc/freeradius/clients.conf
ganti baris:

secret         = testing123
dengan yang ini:
secret         = rootboxhotspot5678
Tambahkan user untuk tester
#vi /etc/freeradius/users
"rootbox"        Auth-Type := Local, User-Password == "rootbox"
Restart servis freeradius
#/etc/init.d/freeradius restart


Copy template firewall+nat dari chillispot

#cp /usr/share/doc/chillispot/firewall.iptables /etc/chilli.iptables
#chmod ug+x /etc/chilli.iptables
Sesuaikan EXTIF dan INTIF bila interface anda tidak sama dengan konfigurasi default chilli.iptables Buat link agar dijalankan saat boot.
#ln -s /etc/chilli.iptables /etc/init.d/chillispot.iptables
#update-rc.d chillispot.iptables defaults


Edit file /etc/network/options, kalo tidak ada dibuat saja, kemudian isi dengan

ip_forward=yes


Setelah semua beres, kita aktifkan chillispotnya

#vi /etc/default/chillispot
ganti ENABLED=0 menjadi ENABLED=1 Sekarang coba dijalankan
#/etc/init.d/chillispot start
#/etc/init.d/chillispot.iptables


Saatnya dicoba!
gudlak.


Referensi:

[x] Google
[x] Chillispot with debian sarge stable - HOWTO.txt oleh budiw_1 @ yahoo dot com

Terimakasih tuk:

[x] Pak Noor - Telah memberikan kesempatan untuk mencoba hal baru.

Edisi sebelumnya:

[x] belum-ada.html


$Id: hotspot-dengan-chillispot.html, v0.0.4 04/17/2007 10:00:00 budiw Exp $
eXTReMe Tracker
Website Counter
Website Counters