Beranda | Obengkumana.Net
facebook twitter gplus
Breaking News
Loading...
Sabtu, 05 Januari 2013

Konfigurasi Coova-Chilli

04.50
Pada tahap ini, kita sampai kepenghujung acara Konfigurasi hotspot login di sebuah router yang berbasiskan openwrt. Ditahap ini, kita akan melakukan konfigurasi login page client

Ok langsung saja, tanpa basa-basi.kita mulai tahapannya.
1. Edit bagian dibawah ini, di dalam file /etc/chilli/wwwsh

haserl=/usr/bin/haserl

2. Edit bagian dibawah ini, di dalam file /etc/chilli/defaults , sesuaikan dengan konfigurasi hostnames router

HS_RADIUS=www.openwrt-hotspot.net
HS_RADIUS2=www.openwrt-hotspot.net
HS_UAMALLOW=www.coova.org
HS_RADSECRET=easyhotspot
HS_UAMSECRET=easyhotspot

3. Buat file local.conf didalam folder /etc/chilli , biarkan kosong jangan diisi apapun, lalu save.

4. Buat file main.conf didalam folder /etc/chilli , masukkan text dibawah ini,
- ganti text br-wifi Sesuaikan denga interface yang dipergunakan,
- sesuaikan macallowed "xx-xx-xx-xx-xx-xx" dengan mac address lan/wifi pc/lapie/netbook yang mengendalikan router, lalu save
# THIS FILE IS AUTOMATICALLY GENERATED
cmdsocket /var/run/chilli.br-wifi.sock
unixipc chilli.br-wifi.ipc
pidfile /var/run/chilli.br-wifi.pid
net 10.1.0.0/255.255.255.0
uamlisten 10.1.0.1
uamport 3990
dhcpif br-wifi
uamallowed "www.coova.org,10.1.0.1,192.168.1.115,192.168.1.1,dr46on.xtgem.com"
macallowed "xx-xx-xx-xx-xx-xx"
uamanydns
domain "wifi"
dns1 "192.168.10.1"
#dns2 "208.67.220.220"
uamhomepage http://10.1.0.1:3990/www/coova.html
#uamhomepage https://10.1.0.1/cgi-bin/hotspot.php
wwwdir /etc/chilli/www
wwwbin /etc/chilli/wwwsh
uamuiport 4990
locationname "Obengkumana-Net"
radiuslocationname "Obengkumana_Net"
radiuslocationid "isocc=,cc=,ac=,network=Obengkumana_Net,"


5. Buat file hs.conf didalam folder /etc/chilli, sesuaikan dengan konfigurasi hostnames router bagian radius server1 dan 2
radiusserver1 "obengkumana.net"
radiusserver2 "obengkumana.net"
radiussecret "easyhotspot"
radiusauthport 1812
radiusacctport 1813
uamserver "http://10.1.0.1:4990/www/login.chi"
radiusnasid "nas01"
papalwaysok
uamaliasname "chilli"
adminupdatefile "/etc/chilli/local.conf"
uamsecret "easyhotspot"


6. Buat file chilli didalam folder /etc/init.d , isikan baris berikut :
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
RUN_D=/var/run
PID_F=$RUN_D/chilli.pid
DAEMON_ARGS="--coaport 3779 --conf /etc/chilli.conf"
start() {
include /lib/network
scan_interfaces
/sbin/insmod tun >/dev/null 2>&1
[ -d $RUN_D ] || mkdir -p $RUN_D
config_get ipaddr lan ipaddr
/usr/sbin/chilli --dns1="$ipaddr"
}

stop() {
echo stop
killall chilli
[ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
}

7. Masuk putty, berikan perintah dibawah ini:

root@obengkumana:~# chmod a+x /etc/init.d/chilli
root@obengkumana:~# /etc/init.d/chilli start
root@obengkumana:~# chilli -fd

Jika log yaang keluar seperti dibawah ini, maka coova-chilli sdh bekerja dengan baik, akhiri mode debug, dengan menekan tombol "Ctrl+C"
net.c: 1308: 0 (Debug) wlan0 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) br-wifi address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) wlan0-1 address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) br-lan address family: 17 (AF_PACKET)
net.c: 1308: 0 (Debug) lo address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) br-wifi address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) br-lan address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) 3g-wan2 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) tun0 address family: 2 (AF_INET)
net.c: 1308: 0 (Debug) tun1 address family: 2 (AF_INET)
dhcp.c: 480: 0 (Debug) hash table size 512 (512)
dhcp.c: 332: 0 (Debug) GARP: Replying to broadcast
dhcp.c: 1172: 0 (Debug) dhcpif (br-wifi) IPv6 address ::
radius.c: 1285: 0 (Debug) RADIUS client 0.0.0.0:0
redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 3990 - Waiting for retry.
redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 4990 - Waiting for retry.
redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 4990 - Waiting for retry.
^Cchilli.c: 7251: 0 (Debug) Failed to create redir listen
Selanjutnya, untuk mebuktikan bahwa coova-chilli benar-benar sudah bekerja, harus ada bari sepeti dibawah ini setelah kita berikan perintah "netstat -apn" pada layar putty
tcp 0 0 127.0.0.1:3306 0.0.0.0:*
tcp 0 0 10.1.0.1:3990 0.0.0.0:*
tcp 0 0 0.0.0.0:22 0.0.0.0:*
tcp 0 0 10.1.0.1:4990 0.0.0.0:*
udp 0 0 192.168.1.1:1812 0.0.0.0:*
udp 0 0 192.168.1.1:1813 0.0.0.0:*

8. Download blog.obengkumana.com.zip , letakkan file tersebut di folder /tmp , ingat jangan di ekstrak !. Masuk ke putty, berikan perintah berikut:

root@obengkumana:~# cd / && unzip -o /tmp/blog.obengkumana.com.zip

Silahkan edit tampilan, login page, sesuai selera anda. Semua yang diedit terletak di folder /etc/chilli/www.
Sampai dengan tahap ini, seharusnya user sudah bisa menjumpai halaman login dan bisa masuk dengan user/pass yang kita buat di easyhotspot

Selesai

2 komentar:

  1. hi, i tried following your guide on a dlink615 with openwrt installed but cant seem to get to show the login page. any advise you can give me?

    BalasHapus
  2. Maaf gan, mo tanya sdkit... mungkin gak kalau saya install Coova-Chilli di tl-wr841nd openwrt tanpa oprek hardware? Maksudnya tanpa upgrade memory... Mohon di reply...Terima kasih

    BalasHapus

 
Toggle Footer