Professional Documents
Culture Documents
/home/k1589881/public_html/blog/templates/shape5_vertex/vertex/cms_core_functions.php
on line 12
Strict Standards: Non-static method JSite::getMenu() should not be called statically, assuming
$this from incompatible context in
/home/k1589881/public_html/blog/templates/shape5_vertex/vertex/responsive/responsive_
mobile_top_bar.php on line 99
Home
OpenWrt
Hotspot
o Easyhotspot V.1
o Easyhotspot V.2
o Easyhotspot-OpenWrt
Pengantar
Konfigurasi Awal
Konfigurasi Mysql-Server
Konfigurasi Easyhotspot
Konfigurasi Freeradius
Konfigurasi Coova-Chilli
Konfigurasi Tambahan
Start Up Coova-Chilli
Force Disconnect
Easyhotspot GMT+7
troubleshooting
E-book
o Easyhotspot ENG
o Easyhotspot IDN
Articles
o Web Server
Lighttpd
Domain/Hostnames
Domain Name System
Whois
Web Hosting /Sever Hositng
Address Record
PHP
o Electro
Komponen
o Computer
Recovery File
Homeberanda
OpenWrtArea
HotspotManagement
o Easyhotspot V.1
o Easyhotspot V.2
o Easyhotspot-OpenWrt
Pengantar
Konfigurasi Awal
Konfigurasi Mysql-Server
Konfigurasi Easyhotspot
Konfigurasi Freeradius
Konfigurasi Coova-Chilli
Konfigurasi Tambahan
Start Up Coova-Chilli
Force Disconnect
Easyhotspot GMT+7
troubleshooting
E-bookdownload
o Easyhotspot ENG
o Easyhotspot IDN
Articlesarchives
o Web ServerArticles
Lighttpd
Domain/Hostnames
Domain Name System
Whois
Web Hosting /Sever Hositng
Address Record
PHP
o ElectroArticles
Komponen
o ComputerArticles
Recovery File
Easyhotspot V.2
Details
Hits: 1583
Berbeda dengan artikel sebelumnya Easyhotspot Versi 1 , disini saya coba menjelaskan instalasi
mode manual mulai dari nol
Pada tahap awal, yg perlu kita persiapkan adalah sebua PC/Lapie/ Virtual Box untuk
pemasangan OS Linux, saya sendiri pada waktu itu mempergunakan Ubuntu Server 10.04 LTS.
Apa perbeda'annya dengan yg sebelumnya? klu yang full distro, kita tidak bisa menambahkan
paket-paket lain, krn sdh tidak tersedia dari distro yg bersangkutan dikarekan sudah beberapa
kali release versi yg lebih baru untuk debian family(Ubuntu
Langsung ke TKP:
1. Install Ubuntu server, jika belum paham saya kasih versi PDF karya om OPIK Design DISINI
sudo apt-get -y install iptraf iftop whois sysstat snmp snmpd rrdtool
dbconfig-common libphp-adodb php5-cli php5-gd php5-gmp php-pear php5-snmp
php5-adodb make rpm alien subversion nmap libnet-netmask-perl curl freeradius
freeradius-mysql php5-mcrypt perl openssl libnet-ssleay-perl libauthen-pam-
perl libpam-runtime libio-pty-perl unzip git-core
3. Apabila Ingin lebih mudah untuk copas dll, silahkan install webmin, semantara googling aja
ya :D
5.Akses Mysql
...................
sql {
#
# Set the database to one of:
#
# mysql, mssql, oracle, postgresql
#
database = "mysql"
#
# Which FreeRADIUS driver to use.
#
driver = "rlm_sql_${database}"
# Connection info:
server = "localhost"
#port = 3306
login = "easyhotspot"
password = "easyhotspot"
7. Edit /opt/easyhotspot/htdocs/system/application/config/database.php
........................
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "easyhotspot";
$db['default']['password'] = "easyhotspot";
$db['default']['database'] = "hotspot";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
# $db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
..........................
8. Edit /etc/freeradius/sql.conf
...................................................
sql {
#
# Set the database to one of:
#
# mysql, mssql, oracle, postgresql
#
database = "mysql"
#
# Which FreeRADIUS driver to use.
#
driver = "rlm_sql_${database}"
# Connection info:
server = "localhost"
#port = 3306
login = "easyhotspot"
password = "easyhotspot"
9. Edit /etc/freeradius/radiusd.conf
bagian modules
...........................................
$INCLUDE sql.conf
.........................................
$INCLUDE sql/mysql/counter.conf
.........................................
bagian authorise yang berisi sql hilangkan tanda pagar didepannya dan selanjutnya tambahkan
dibawahnya menjadi sprti ini
..........................
sql
max_all_mb
noresetcounter
........................
bagian accounting, session dan post-auth yang terdappat didalamnya sql , hilangkan semua tanda
pagaryg terdapat didepannya .
sqlcounter max_all_mb {
counter-name = Max-All-MB
check-name = Max-All-MB
reply-name = ChilliSpot-Max-Total-Octets
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT SUM(AcctInputOctets)/(1024*1024) +
SUM(AcctOutputOctets)/(1024*1024) FROM radacct WHERE UserName='%{%k}'"
}
12. Check apakah radius sudah bekerja dengan benar, dengan mode debug. Masukkan command
dibawah ini. Jika sudah tidak ada error akhiri dengan menekan tombol Ctrl+C
/etc/init.d/freeradius stop
/usr/sbin/freeradius -X
untuk menjalankan radius dalam mode normal, berikan perintah berikut
/usr/sbin/freeradius
# may not have been populated the first time; run again
[ -e "/var/run/chilli.iptables" ] && sh /var/run/chilli.iptables 2>/dev/null
# force-add the final rule necessary to fix routing tables
iptables -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE
###
# Local Network Configurations
#
# OpenDNS Servers
HS_DNS1=208.67.222.222
HS_DNS2=208.67.220.220
###
# HotSpot settings for simple Captive Portal
#
HS_NASID=nas01
HS_RADIUS=localhost
HS_RADIUS2=localhost
HS_UAMALLOW=www.coova.org
HS_RADSECRET=easyhotspot # Set to be your RADIUS shared secret
HS_UAMSECRET=easyhotspot # Set to be your UAM secret
HS_UAMALIASNAME=chilli
###
# Features not activated per-default (default to off)
#
# HS_RADCONF=off # Get some configurations from RADIUS or a URL ('on'
and 'url' respectively)
#
# HS_ANYIP=on # Allow any IP address on subscriber LAN
#
# HS_MACAUTH=on # To turn on MAC Authentication
#
# HS_MACAUTHDENY=on # Put client in 'drop' state on MAC Auth Access-
Reject
#
# HS_MACAUTHMODE=local # To allow MAC Authentication based on
macallowed, not RADIUS
#
# HS_MACALLOW="..." # List of MAC addresses to authenticate (comma
seperated)
#
# HS_USELOCALUSERS=on # To use the /etc/chilli/localusers file
#
# HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth
#
# HS_WPAGUESTS=on # To inform the RADIUS server to allow WPA Guests
#
# HS_DNSPARANOIA=on # To drop DNS packets containing something other
# # than A, CNAME, SOA, or MX records
#
# HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth
# # Will also configure the embedded login forms for OpenID
#
# HS_USE_MAP=on # Short hand for allowing the required google
# # sites to use Google maps (adds many google sites!)
#
###
# Other feature settings and their defaults
#
# HS_DEFSESSIONTIMEOUT=0 # Default session-timeout if not defined by RADIUS
(0 for unlimited)
#
# HS_DEFIDLETIMEOUT=0 # Default idle-timeout if not defined by RADIUS
(0 for unlimited)
#
# HS_DEFBANDWIDTHMAXDOWN=0 # Default WISPr-Bandwidth-Max-Down if not
defined by RADIUS (0 for unlimited)
#
# HS_DEFBANDWIDTHMAXUP=0 # Default WISPr-Bandwidth-Max-Up if not
defined by RADIUS (0 for unlimited)
###
# Centralized configuration options examples
#
# HS_RADCONF=url # requires curl
# HS_RADCONF_URL=https://coova.org/app/ap/config
###
# Firewall issues
#
# Uncomment the following to add ports to the allowed local ports list
# The up.sh script will allow these local ports to be used, while the default
# is to block all unwanted traffic to the tun/tap.
#
# HS_TCP_PORTS="80 443"
###
# Standard configurations
#
HS_MODE=hotspot
HS_TYPE=chillispot
# HS_RADAUTH=1812
# HS_RADACCT=1813
# HS_ADMUSR=chillispot
# HS_ADMPWD=chillispot
###
# Post-Auth proxy settings
#
# HS_POSTAUTH_PROXY=<host or ip>
# HS_POSTAUTH_PROXYPORT=<port>
###
# WISPr RADIUS Attribute support
#
# Embedded miniportal
# HS_REG_MODE="tos" # or self, other
# HS_RAD_PROTO="pap" # or mschapv2, chap
# HS_USE_MAP=on
19. Ganti tampilan login page user dengan edit file yang berakhiran .tmpl di /etc/chilli/www, jika
ingin contoh punya saya, silahkan download DISINI ,
Selesai .............