Quick fix for simultaneous on Easyhotspot

Januari 4, 2009 at 4:40 am (Linux,....pecas ndahe)

sebelumnya suwun buat mas Rafee atas distro dan trik2 yang telah diberikan

biasanya satu user bisa dibuat login rame2 oleh beberapa user sekaligus, wah bisa bangkrut dong lama…he..he, untung mas Rafee ngasih trik ini (tak comot dari blognya)

for quick fix please replace your “/var/www/system/application/models/billingplanmodel.php” file with http://pastebin.com/f3ceb50d7
and replace your “/var/www/system/application/models/postpaidmodel.php with http://pastebin.com/f6b5e1485

cuman setelah diterapkan, kok masih bablas aja ya….satu user masih bisa di buat login oleh beberapa orang, karena penasaran, utak-atik sampai di satru istri gara2 dicuekin katanya ( he..he), akhirnya ketemu juga, tinggal buka pagar aja difile /etc/freeradius/sql.conf, pada baris…

#######################################################################
# Simultaneous Use Checking Queries
#######################################################################
# simul_count_query - query for the number of current connections
# - If this is not defined, no simultaneouls use checking
# - will be performed by this module instance
# simul_verify_query - query to return details of current connections for verification
# - Leave blank or commented out to disable verification step
# - Note that the returned field order should not be changed.
#######################################################################

# Uncomment simul_count_query to enable simultaneous use checking
hilangkan pagar disini----> simul_count_query = "SELECT COUNT(*) FROM ${acct_table1} WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"
simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName, NASIPAddress, NASPortId, FramedIPAddress, CallingStationId, FramedProtocol FROM ${acct_table1} WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"

habis itu restart pc, dan coba…..
semoga berhasil

& Komentar

  1. rifen berkata,

    mass setelah saya ikutin tutor yang diatas kok malah ada error kayak temen2 yang di blognya mas rafee. kira2 apanya yang salah ya mass…..

    • poerwo2211 berkata,

      kalo lihat dari pesan errornya mungkin cuman masalah file permission aja
      coba kasih perintah di konsole
      sudo chmod 777 /var/www/system/application/models/billingplanmodel.php
      dan
      sudo chmod 777 /var/www/system/application/models/postpaidmodel.php

  2. dedyisn berkata,

    Makasih mas atas infonya . saya cobain dulu mudah mudahan berhasil

  3. Easyhotspot based xubuntu 7.10 | Learn to be better berkata,

    [...] user. I have do some fix from easyhotspot source. But the problem is there . There is a tips from Quickfix from poerwo but i’m not tested it yet I hope soon it will be ready. If you want to get much information, [...]

  4. adhisubagio berkata,

    good job man, aku dah coba dan berhasil, cuma ada masalah terakhir yaitu kalo server/easyhotspot mati karena mati lampu, klien nggak bisa logout dan login. karena waktu server hidup kembali login failed, karena sebelumnya udah ada login dan belum logout. solusinya apa ya? apa ada hubungannya dengan idle time? help please

    • poerwo2211 berkata,

      aku juga ngalamin masalah itu mas, sekarang aku pake ubuntu 8.10 + chillispot +freeradius + hotcakes hotspot manager
      semua masalah di atas udah gak muncul lagi, fitur2 hotcakes bagus mas…kayaknya easyhostpsot ada versi terbarunya..coba di cek ke webnya mas? siapa tahu masalah ini udah di perbaiki

  5. desoed berkata,

    Mas mau tanya nih, saya sudah instal easyhotspot dan bisa berjalan baik. Tapi ada sedikit masalah yaitu pada menu onlineuser -nya masih ada user yang online …padahal semua user sudah disconect……please ada yang bisa bantu…..

    thanks sebelumnya

    dedek

  6. afiq berkata,

    mas Poerwo, minta tutorialnya yg pakai hotcakes dunk..please..
    Udah coba install tapi gagal terus..
    Thanks before

    • poerwo2211 berkata,

      yang pake hotcakes, install dari nol semua lho, ini tak kasih link aja ya…http://hotcakes.sourceforge.net/hotcakes_setup_guide/index.html

  7. kpknl-surabaya berkata,

    siap bos…..

    iku boso opo se….

    • poerwo2211 berkata,

      iki sopo yo….?

  8. jigong berkata,

    itu trik di atas perlu hati2 di coba. kemungkinan gagal dan tidak bisa login lagi di client sangat bisa terjadi. sangat beda dengan anjuran dari author nya sendiri itu harus di ubah pada tabel radreply nya..

    thks

    • poerwo2211 berkata,

      iya mas itu bisa terjadi, saya sekarang pake hotcakes hotspot dan lumayan lancar……mau coba yfi hotspot cuman belum ada waktu

  9. joni berkata,

    mas mau tanya, untuk memperbahuri certificat easyhotspot supai tidak invalid lagi bagaimana caranya??

  10. daii berkata,

    ..hallo mas,

    gni mahh saya ada permasalahan pada easyhotspot v.2 kok force disconnect pada ONLINE user ga bisa berfungsi yah mass.

    mohon pecerahan nyah

    makasii

    • poerwo2211 berkata,

      aku belum pernah pake easyhotspot v.2 tapi coba trik ini
      1. edit /etc/init.d/chilli to add listen port for disconnect packet

      by add the line DAEMON_ARGS=”–coaport 3779 –conf /etc/chilli.conf”

      example

      # PATH should only include /usr/* if it runs after the mountnfs.sh script
      PATH=/sbin:/usr/sbin:/bin:/usr/bin

      DESC=”Chillispot captive portal”
      NAME=chillispot
      DAEMON=/usr/sbin/chilli
      DAEMON_ARGS=”–coaport 3779 –conf /etc/chilli.conf” # the line to add
      PIDFILE=/var/run/$NAME.pid
      SCRIPTNAME=/etc/init.d/$NAME

      2. add coaport on /etc/chilli.conf (i use port 3779)

      add this lines
      # TAG COA Port
      coaport 3779

      and then restart chilli

      • daii berkata,

        .– saya sudahh lakukan perintah mas yang di ^ …
        untuk men disconnectkan client nya pke command appa??
        . yah mas. ??

Tulis sebuah Komentar