Berikut ini lanjutan dari EasyHotspot OpenWrt Bagian 2-Konfigurasi Easyhotspot-Mysql
Urutan langkahnya sebagai berikut :
1. Konfigurasi Hostnames
LUCI>Network>Hostnames
klik "Add"
Hostnames = www.awanggacomp.net <<<< sesuaikan dengan HostName Router Anda
IP Address = 70.70.70.1
klik "Save & Apply"
2. Konfigurasi Freeradius
- Edit bagian dibawah ini, di file /etc/freeradius2/sql.conf , menggunakan "WinScp"
------------------------------------------------------------------------------------
# Connection info:
server = "localhost"
#port = 3306
login = "easyhotspot"
password = "easyhotspot"
# Database table configuration for everything except Oracle
radius_db = "hotspot"
------------------------------------------------------------------------------------
- Edit bagian dibawah ini, di file /etc/freeradius2/client.conf , menggunakan "WinScp"
------------------------------------------------------------------------------------
client www.awanggacomp.net {
ipaddr = 70.70.70.1
secret = easyhotspot
------------------------------------------------------------------------------------
- Edit bagian dibawah ini, di file /etc/freeradius2/radiusd.conf , menggunakan "WinScp"
------------------------------------------------------------------------------------
listen {
type = auth
interface = br-lan
}
listen {
ipaddr = *
# ipv6addr = ::
port = 0
type = acct
interface = br-lan
# clients = per_socket_clients
}
modules {
# $INCLUDE eap.conf
$INCLUDE sql.conf
$INCLUDE sql/mysql/counter.conf
}
instantiate {
max_all_mb
noresetcounter
}
------------------------------------------------------------------------------------
- masuk "putty"
root@OpenWrt:/srv/www/easyhotspot/install# mkdir -p /etc/freeradius2/sql/mysql
------------------------------------------------------------------------------------
Download 2 file berikut
dialup.conf
counter.conf
Link Download 2 file diatas DISINI
Masukkan 2 file tsb ke folder /etc/freeradius2/sql/mysql melalui "WinScp"
- Edit bagian dibawah ini, di file /etc/freeradius2/site/default , menggunakan "WinScp"
------------------------------------------------------------------------------------
authorize {
# eap {
# ok = return
# }
# files
sql
max_all_mb
noresetcounter
# pap
}
authenticate {
# Auth-Type PAP {
# pap
# }
# Auth-Type CHAP {
# chap
# }
# Auth-Type MS-CHAP {
# mschap
# }
# eap
}
accounting {
# radutmp
# unix
sql
# exec
}
session {
# radutmp
sql
}
post-auth {
sql
}
------------------------------------------------------------------------------------
- Edit bagian dibawah ini, di file /usr/share/freeradius2/dictionary , menggunakan "WinScp"
------------------------------------------------------------------------------------
$INCLUDE dictionary.chillispot
------------------------------------------------------------------------------------
Download file berikut
dictionary.chillispot Download Now
Masukkan file tsb ke folder /usr/share/freeradius2/ melalui "WinScp"
- masuk "putty"
------------------------------------------------------------------------------------
root@OpenWrt:/srv/www/easyhotspot/install# radiusd -X
------------------------------------------------------------------------------------
Pastikan sudah tidak ada pesan eror,
------------------------------------------------------------------------------------
- Masuk "putty"
------------------------------------------------------------------------------------
root@OpenWrt:/srv/www/easyhotspot/install# /etc/init.d/radiusd start
root@OpenWrt:/srv/www/easyhotspot/install# netstat -apn
------------------------------------------------------------------------------------
jika sdh ada baris berikut, maka sdh bs ke tahap selanjutnya
------------------------------------------------------------------------------------
udp 0 0 70.70.70.1:1812 0.0.0.0:*
udp 0 0 70.70.70.1:1813 0.0.0.0:*
-------------------------------------------------------------------------------------
Lebih jelasnya lihat pada video dibawah ini
* Cara download Click Link diatas akan diarahkan ke notifikasi Click "Take Me" selanjutnya tinggal ngikuti petunjuk yang diberikan