Selasa, 08 Mei 2012

Membuat Hostpot Dengan Easy Hostpot

Pengenalan

EasyHotspot is an alternative solution for hotspot billing system. EasyHotspot merupakan solusi alternatif bagi sistem billing hotspot. Its contains other particular open source software that is bundled into one a single package. Its berisi perangkat lunak sumber terbuka lainnya khususnya yang digabungkan menjadi satu satu paket. We don't try to make a replacement to similar existing open source projects. Kami tidak mencoba untuk membuat pengganti untuk serupa proyek sumber terbuka yang ada. Our aim is to deliver a system that simple, easy to install, use and modify. Tujuan kami adalah untuk memberikan sebuah sistem yang sederhana, mudah untuk menginstal, menggunakan dan memodifikasi. EasyHotspot comes with ready to use configuration. EasyHotspot datang dengan siap untuk digunakan konfigurasi. You need less configuration to build a running hotspot. Anda perlu konfigurasi kurang untuk membangun hotspot berjalan. It will save you time and energy. Ini akan menghemat waktu dan energi.
EasyHotspot is developed on the top of Ubuntu distribution. EasyHotspot dikembangkan di bagian atas distribusi Ubuntu. The hotspot manager frontend used to manage your hotspot is built from Codeigniter framework. Frontend manajer hotspot digunakan untuk mengelola hotspot Anda dibangun dari kerangka Codeigniter. Codeigniter is an blazing fast PHP framework which easy to understand and its very handy to make a web based application. Codeigniter adalah sebuah framework PHP super cepat yang mudah dipahami dan sangat berguna untuk membuat aplikasi berbasis web. We hope everyone can easily understand and make an improvement to the code. Kami berharap semua orang dapat dengan mudah memahami dan membuat perbaikan untuk kode. FreeRADIUS will help us to perform AAA process. Freeradius akan membantu kita untuk melakukan proses AAA. The Captive Portal that is used for authenticating users is Chillispot, and the database / MySQL, it used for storing the users and logs information. The Captive Portal yang digunakan untuk otentikasi pengguna adalah Chillispot, dan database / MySQL, digunakan untuk menyimpan pengguna dan informasi log.
Who's gonna need it ? Siapa yang akan membutuhkannya? Anyone who wants to build a hotspot or someone who willing to learn how hotspot works. Siapa pun yang ingin membangun hotspot atau seseorang yang mau belajar bagaimana bekerja hotspot. . . For example : Cafe, Hotel, School, Public place, and anywhere that requires wireless internet connection. Sebagai contoh: Cafe, Hotel, Sekolah, tempat umum, dan mana saja yang memerlukan koneksi internet nirkabel.
How to get involved ? Bagaimana untuk terlibat? Ok, this is our favorite part ... Ok, ini adalah bagian favorit kami ... its easy to get involved and help this project. yang mudah untuk terlibat dan membantu proyek ini. You can report the bugs, make an improvement/variation, request new features, critics, fill up our wish list, spread the word. Anda dapat melaporkan bug, membuat perbaikan / variasi, meminta fitur baru, kritikus, mengisi daftar keinginan kita, menyebarkan berita. Everything positive are welcome :) Semuanya positif dipersilakan :)

Instalation Instalasi

Minimum Hardware requirements: Minimum Hardware persyaratan:
  • Pentium 3 or equal Pentium 3 atau sama
  • 512 MB RAM 512 MB RAM
  • 5 GB Free Space HDD 5 GB gratis Ruang HDD
  • 2 network interface (LAN CARD) 2 antarmuka jaringan (LAN CARD)
  • Wireless Access Point (you don't need wireless router feature but a Wireless AP) Wireless Access Point (Anda tidak membutuhkan fitur router nirkabel tetapi AP Wireless)
  • Switch/Hub (optional, only for wired user) Switch / Hub (opsional, hanya untuk pengguna kabel)
Installation Instalasi
EasyHotspot comes with live Ubuntu distro iso, burn the .iso on to blank cd-rom and then boot your PC from cd-rom. EasyHotspot dilengkapi dengan iso distro Ubuntu hidup, membakar iso. Ke cd-rom kosong dan kemudian boot PC anda dari cd-rom.
Once Ubuntu has startup you can install from the shortcut on the desktop. Setelah Ubuntu memiliki startup Anda dapat menginstal dari shortcut pada desktop. And follow the instructions to install Ubuntu and EasyHotspot on the screen. Dan ikuti petunjuk untuk menginstal Ubuntu dan EasyHotspot di layar.
For help installing ubuntu you can find it here https://help.ubuntu.com/community/GraphicalInstall Untuk menginstal ubuntu bantuan Anda dapat menemukannya di sini https://help.ubuntu.com/community/GraphicalInstall
When Ubuntu has rebooted, locate http://localhost/easyhotspot from your browser and EasyHotspot is ready to roll. Ketika Ubuntu telah reboot, cari http://localhost/easyhotspot dari browser Anda dan EasyHotspot siap untuk roll.

Configuration Konfigurasi

After the installation process has successfully completed, there are several steps left to ensure that EasyHotspot is running smoothly. Setelah proses instalasi telah berhasil diselesaikan, ada beberapa langkah yang tersisa untuk memastikan bahwa EasyHotspot berjalan lancar.
  1. Configuring network interfaces Konfigurasi antarmuka jaringan
    First of all make sure that you have two network interfaces named eth0 and eth1, you can find out by typing “ifconfig” in the terminal or find the setting in system → preferences → network connection. Pertama-tama pastikan bahwa Anda memiliki banyak antarmuka jaringan dua dinamai eth0 dan eth1, Anda bisa mengetahuinya dengan mengetik "ifconfig" di terminal atau menemukan pengaturan dalam sistem → → preferensi koneksi jaringan. If you have eth2, eth3 and so on please consult the troubleshoot section. Jika Anda memiliki eth2, eth3 dan sebagainya silakan berkonsultasi pada bagian memecahkan masalah.

    Internet interface Internet antarmuka
    Set your eth0 as your internet connection source. Set eth0 Anda sebagai sumber koneksi internet Anda. It can be dynamic or static. Hal ini dapat dinamis atau statis. If you have a dynamic connection, just simply plug in the ethernet cable to eth0 interface, or if you have a static connection you can configure it by clicking the network icon on system tray and hit manual configuration. Jika Anda memiliki koneksi dinamis, hanya cukup menyambungkan kabel ethernet untuk antarmuka eth0, atau jika Anda memiliki koneksi statis Anda dapat mengkonfigurasinya dengan mengklik ikon jaringan pada system tray dan tekan konfigurasi manual.

    Distribution interface Distribusi antarmuka
    eth1 will act as the distribution interface. eth1 akan bertindak sebagai antarmuka distribusi. You don't have to configure this interface at all. Anda tidak perlu mengkonfigurasi interface ini sama sekali. Just connect to AP or Switch hub and then let your client connect . Hanya terhubung ke AP atau Switch hub dan kemudian membiarkan klien Anda terhubung. Make sure that you have disabled DHCP , Encryption, and Router feature in your AP or router (if exist). Pastikan bahwa Anda telah menonaktifkan DHCP, Enkripsi, dan fitur Router di AP atau router (jika ada).
  2. Editing Hotspot information Mengedit informasi Hotspot
    Easyhotspot enables you to edit the hotspot information on the hotspot management admin page. Easyhotspot memungkinkan Anda untuk mengedit informasi hotspot pada halaman admin manajemen hotspot. To edit the hotspot info, edit the /opt/local/web/easyhotspot/system/application/config/easyhotspot.php file. Untuk mengedit info hotspot, edit / opt / local / web / easyhotspot / system / application / config / file easyhotspot.php. Edit the entries such as hotspot location and currency according to your real condition. Edit entri seperti lokasi hotspot dan mata uang sesuai dengan kondisi Anda yang sesungguhnya.
  3. Setting Language Mengatur Bahasa
    For now EasyHotspot only supports English, Indonesia & Spanish language. Untuk saat EasyHotspot hanya mendukung bahasa Inggris, Indonesia & bahasa Spanyol. The language setting is set in, system/application/config/config.php as the $config['language'] setting. Pengaturan bahasa diatur dalam, pengaturan sistem / aplikasi / config / config.php sebagai config $ ['bahasa']. If you want create a new translation then copy the existing language directory preferably English and translate easyhotspot_lang.php to your language put it in a new directory eg: Jika Anda ingin membuat terjemahan baru lalu copy direktori yang ada sebaiknya bahasa Inggris dan menerjemahkan easyhotspot_lang.php ke bahasa Anda memasukkannya ke dalam direktori baru misalnya:

    system/application/language/ latin /easyhotspot_lang.php sistem / aplikasi / bahasa / latin / easyhotspot_lang.php
    and set the system/application/config/config.php as the $config['language'] = ' latin '; dan mengatur system / application / config / config.php sebagai config $ ['bahasa'] = 'latin';
  4. (please send your translations to email rafeequl@gmail.com ). (Silahkan mengirimkan terjemahan Anda ke email rafeequl@gmail.com ).
  5. Setting Homepage Mengatur Situs Web
    By default, EasyHotspot is only accessible from the server itself (localhost), if you want to remote your billing system you could tell EasyHotspot to change the homepage from locahost to your accessible IP Address. Secara default, EasyHotspot hanya dapat diakses dari server itu sendiri (localhost), jika Anda ingin sistem remote penagihan Anda bisa memberitahu EasyHotspot untuk mengubah homepage dari locahost ke Alamat IP Anda diakses. Edit /opt/local/web/htdocs/easyhotspot/system/application/config/config.php , find $config['base_url'] line. Edit / opt / local / web / htdocs / easyhotspot / system / application / config / config.php, cari $ config ['base_url'] baris.
    Example: Contoh:
    $config['base_url'] = " http://192.168.182.1/ "; $ Config ['base_url'] = " http://192.168.182.1/ ";
    192.168.182.1 is your EasyHotspot IP address 192.168.182.1 adalah alamat IP EasyHotspot Anda

Using Easyhotspot Menggunakan Easyhotspot

EasyHotspot comes with a preconfigured hotspot system and a web interface to manage everything that's related to user administration and billing activity. EasyHotspot dilengkapi dengan sistem hotspot dikonfigurasikan sebelumnya dan antarmuka web untuk mengelola semua yang berkaitan dengan administrasi pengguna dan aktivitas penagihan. Locate EasyHotspot homepage from your browser (firefox) at http://localhost/easyhotspot Cari situs EasyHotspot dari browser Anda (firefox) di http://localhost/easyhotspot
EasyHotspot has 2 types of administration account EasyHotspot memiliki 2 jenis account administrasi
  • Admin : this user handles billing plan, price and system configuration. Admin: user ini menangani konfigurasi rencana penagihan, harga dan sistem.
  • Cashier : this user handles user account, voucher generation, invoice, view stats. Tunai: pengguna ini menangani akun, generasi voucher, faktur, statistik tampilan.

Admin Admin

To login using admin account use the default is : Untuk login menggunakan account admin menggunakan default adalah:
username: admin username: admin
password: admin123 password: admin123
The home page for admin is where you can see the hotspot info and system info to see that everything's running smoothly. Halaman rumah untuk admin adalah di mana Anda dapat melihat info info dan sistem hotspot untuk melihat segala sesuatu yang berjalan lancar.
  1. Chillispot Configuration Konfigurasi Chillispot
    In this page you can edit the basic configuration for your hotspot: Pada halaman ini Anda dapat mengedit konfigurasi dasar untuk hotspot Anda:
    • Radius Server 1 (Address of primary RADIUS server, default 127.0.0.1) Radius Server 1 (Alamat server RADIUS utama, default 127.0.0.1)
    • Radius Server 2 (Address of secondary RADIUS server, default 127.0.0.1) Radius Server 2 (Alamat server RADIUS sekunder, default 127.0.0.1)
    • Radius Secret (Secret phrase between RADIUS server and Chillispot) Radius Rahasia (frase Rahasia antara server RADIUS dan Chillispot)
    • DHCP Interface (Which interface you want to use as Hotspot Interface) DHCP Interface (Antarmuka mana yang ingin Anda gunakan sebagai Interface Hotspot)
    • UAM Server (Address of captive portal stored) UAM Server (Alamat dari captive portal disimpan)
    • UAM Secret (Secret phrase between login page and q Chillispot) UAM Secret (Rahasia frase antara halaman login dan q Chillispot)
    • Client's Homepage (Where do you want to redirect your client for the first time) Klien Situs Web (Di mana Anda ingin mengarahkan klien Anda untuk pertama kalinya)
    • Allowed URL (URL that clients could browse without login, DO NOT PUT SPACES. exp : www.google.com,www.twitter.com") Diizinkan URL (URL yang klien bisa browsing tanpa login, JANGAN PUT RUANG exp:. Www.google.com, www.twitter.com ")
    • DHCP Range (DHCP IP's for clients - must be in XXX.XXX.XXX.XXX/XX format) DHCP Range (IP DHCP untuk klien - harus dalam xxx.xxx.xxx.xxx / XX format)
  2. Postpaid setting Pascabayar pengaturan On Postpaid setting page you set the desired rate for postpaid account, how much to charge for either each megabyte (1 MB) or each minute. Pada halaman Pascabayar pengaturan yang mengatur nilai yang diinginkan untuk account pasca bayar, berapa banyak biaya untuk setiap megabyte baik (1 MB) atau setiap menit. Idle time out automatically logs out a user if they are idle for the amount of time (in minutes) entered. Waktu idle secara otomatis log out pengguna jika mereka menganggur selama jumlah waktu (dalam menit) dimasukkan. Download and upload rate determines the maximum bandwidth allowed for a postpaid account. Download dan upload tingkat menentukan bandwidth maksimum yang diperbolehkan untuk account pasca bayar. If you edit the settings on this page, all of the existing postpaid account that has been created will automatically change according to the settings on this page. Jika Anda mengedit pengaturan pada halaman ini, semua account pasca bayar yang sudah ada yang telah dibuat secara otomatis akan berubah sesuai dengan pengaturan di halaman ini.
  3. Billing plan Penagihan rencana The billing plan page is used to make billing plan to use as a template for creating vouchers on the cashier page. Halaman rencana penagihan digunakan untuk membuat rencana penagihan untuk digunakan sebagai template untuk membuat voucher pada halaman kasir. To create a new billing plan enter the fields below the list of the existing billing plan. Untuk membuat rencana penagihan baru memasuki bidang di bawah daftar rencana penagihan yang ada. You can also delete an existing billing plan by clicking on the X on the row of the billing plan that you want to delete, and you can also edit the billing plan by clicking on the pencil icon. Anda juga dapat menghapus rencana penagihan yang ada dengan mengklik X pada baris dari rencana penagihan yang ingin Anda hapus, Anda juga dapat mengedit rencana penagihan dengan mengklik ikon pensil.
  4. Cashier Management Tunai Manajemen
    Basically the Admin and Cashier management are the same, the difference is on the role of the user. Pada dasarnya Admin dan manajemen Tunai adalah sama, perbedaannya adalah pada peran pengguna.
    On the Manage cashier / admin page you will be presented with the list of cashiers / admins. Pada halaman Kelola kasir / admin Anda akan disajikan dengan daftar kasir / admin.

  5. Admin Management Admin Manajemen
    Basically the Admin and Cashier management are the same, the difference is on the role of the user. Pada dasarnya Admin dan manajemen Tunai adalah sama, perbedaannya adalah pada peran pengguna.
    On the Manage cashier / admin page you will be presented with the list of cashiers / admins. Pada halaman Kelola kasir / admin Anda akan disajikan dengan daftar kasir / admin.

Cashier Kasir

You can login as cashier after you have created a cashier account from the admin page. Anda dapat login sebagai kasir setelah Anda telah membuat akun kasir dari halaman admin.
  1. Postpaid Account Management Pascabayar Account Management
    Postpaid account is a postpaid billing system. Rekening Pascabayar adalah sistem penagihan pasca bayar. The first step to use this feature, is the cashiers have to create postpaid user, print the voucher and then give it to clients. Langkah pertama untuk menggunakan fitur ini, adalah kasir harus membuat pengguna pasca bayar, mencetak voucher dan kemudian memberikannya kepada klien. If the clients decide to stop, the cashier will close and print invoice by clicking the detail of clients usage. Jika klien memutuskan untuk berhenti, kasir akan menutup dan mencetak faktur dengan mengklik detail penggunaan klien. If the account has been closed then it can't be used again. Jika account telah ditutup maka tidak dapat digunakan lagi.
    A postpaid account can be bill by two different ways: Time & Volume. Sebuah account pasca bayar dapat tagihan dengan dua cara berbeda: Waktu & Volume. Be sure to ask the customer which type of bill account they prefer. Pastikan untuk meminta pelanggan yang jenis rekening tagihan mereka inginkan.


  2. Voucher Management Voucher Manajemen
    Voucher is a prepaid billing system. Voucher adalah sistem penagihan prabayar. The cashier could generate as many vouchers from a Billing Plan that the admin have created. Kasir bisa menghasilkan seperti voucher banyak dari Rencana Penagihan bahwa admin buat. These voucher could then be given / printed out to clients to access the internet. Voucher ini maka dapat diberikan / dicetak untuk klien untuk mengakses internet. Usually this method used by a Cafe, a Mall or any other place where people are usually mobile. Biasanya metode ini digunakan oleh Cafe di Mall atau tempat lain di mana orang biasanya mobile. The cashier would have the option to print vouchers Kasir akan memiliki pilihan untuk mencetak voucher
  3. Invoice Management Faktur Manajemen
    You can view detail of all the invoices and print the desired invoice for postpaid account from this page. Anda dapat melihat detail dari semua tagihan dan mencetak faktur yang diinginkan untuk account pasca bayar dari halaman ini.



  4. Statistics Statistik
    A simple statistical view of all of the vouchers, billing plans and accounts created. Pandangan statistik sederhana dari semua, rencana penagihan voucher dan akun yang dibuat.
  5. Online users (force disconnect) Online users (gaya disconnect)
    Force disconnect users can be used to disconnect an online client from the cashier page. Angkatan putuskan pengguna dapat digunakan untuk memutuskan klien online dari halaman kasir.

  6. Change password Ubah password
    Change the cashiers password. Mengubah kata sandi kasir.

Clients Klien

  1. How to connect the Hotspot Bagaimana menghubungkan Hotspot yang
    The client or customer can typically join your wireless (Hotspot) or wired network as usual by choosing your AP name or connect to switch, in this step EasyHotspot will automatically give your clients an IP Address. Klien atau pelanggan biasanya dapat bergabung nirkabel (Hotspot) atau jaringan kabel seperti biasa dengan memilih nama Anda AP atau terhubung ke beralih, dalam EasyHotspot langkah secara otomatis akan memberikan klien Anda Alamat IP.
  2. How to browse to web Cara browse ke web
    Login using postpaid account Login menggunakan account pasca bayar
    To login you need to open the browser and surf the internet, before you can see the page, you will be prompted to a login page (be sure to accept all certificates). Untuk login Anda perlu membuka browser dan surfing internet, sebelum Anda dapat melihat halaman, Anda akan diminta untuk halaman login (pastikan untuk menerima semua sertifikat). Input the account information from you postpaid account on the login page. Masukkan informasi rekening dari rekening Anda pasca bayar pada halaman login. Then you will be redirected to your page. Kemudian Anda akan diarahkan ke halaman Anda.

    Login using printed voucher Login menggunakan voucher dicetak
    To login you need to open the browser and surf the internet, before you can see the page, you will be prompted to a login page (be sure to accept all certificates). Untuk login Anda perlu membuka browser dan surfing internet, sebelum Anda dapat melihat halaman, Anda akan diminta untuk halaman login (pastikan untuk menerima semua sertifikat). Enter user name and password that is printed on your voucher. Masukkan nama pengguna dan password yang tercetak di voucher Anda. Enjoy your surfing =). Nikmati = Anda surfing).

  3. How to Logout Cara Keluar
    Simply type 'splash' on the address bar and you will logged out. Cukup ketik 'splash' pada address bar dan Anda akan log out.

Troubleshooting Pemecahan Masalah

Change network interface name Mengubah nama antarmuka jaringan

We highly recommend you to make sure that you have 2 interface named eth0 and eth1. Kami sangat menyarankan Anda untuk memastikan bahwa Anda memiliki 2 antarmuka bernama eth0 dan eth1. eth0 will be act as an internet line and eth1 as a distribution interface. eth0 akan bertindak sebagai jalur internet dan eth1 sebagai antarmuka distribusi. If your interfaces name are not eth0 and eth1 you should change it. Jika interface nama Anda tidak eth0 dan eth1 Anda harus mengubahnya. This is how to do it : Ini adalah cara untuk melakukannya:
edit the /etc/udev/rules.d/70-persistent-net.rules file edit file / etc/udev/rules.d/70-persistent-net.rules
example : contoh:
from dari
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:d3:5e:8f:f3", NAME="eth3" # PCI device 0x14e4:0x4311 (bcm43xx) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:19:7e:a5:45:84", NAME="eth4" SUBSYSTEM == "net", DRIVERS == "*?", Attrs {alamat} == "00:16: d3: 5e: 8f: f3", NAME = "eth3" # PCI perangkat 0x14e4: 0x4311 (bcm43xx) SUBSYSTEM == "net", DRIVERS == "*?", attrs {alamat} == "00:19:07 e: a5: 45:84", NAME = "eth4"
to untuk
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:d3:5e:8f:f3", NAME="eth0" # PCI device 0x14e4:0x4311 (bcm43xx) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:19:7e:a5:45:84", NAME="eth1" SUBSYSTEM == "net", DRIVERS == "*?", Attrs {alamat} == "00:16: d3: 5e: 8f: f3", NAME = "eth0" # PCI perangkat 0x14e4: 0x4311 (bcm43xx) SUBSYSTEM == "net", DRIVERS == "*?", attrs {alamat} == "00:19:07 e: a5: 45:84", NAME = "eth1"

Change MySQL default password Ubah password default MySQL

It would be better to change the default root and easyhotspot user password. Akan lebih baik untuk mengubah root dan password default easyhotspot pengguna. You can search the details of how doing that at mysql documentation. Anda dapat mencari rincian tentang bagaimana melakukan itu di dokumentasi mysql. After that don't forget to edit the /opt/local/web/easyhotspot/htdocs/application/config/database.php Setelah itu jangan lupa untuk mengedit / opt / local / web / easyhotspot / htdocs / application / config / database.php

Client is not redirected to login page Klien tidak diarahkan ke halaman login

Try to restart chilli by issuing this command : Cobalah untuk me-restart cabai dengan mengeluarkan perintah ini:
$sudo /etc/init.d/chillispot restart $ Sudo / etc / init.d / Chillispot Restart
And then try to release/renew clients IP Address Dan kemudian mencoba untuk melepaskan / renew IP Address klien

Sumber :
              http://easyhotspot.inov.asia/ 

Tidak ada komentar:

Posting Komentar