YFi Hotspot Manager Setup on CentOS 6

Written by Mfawa Alfred Onen on . Posted in Linux, Projects

I will like to start by thanking Dirk van der Walt for his genius piece of software called YFi Hotspot Manager. Having experimented with a lot of FreeRADIUS front end software like DaloRadius, EasyHotspot, phpMyPrepaid back in 2008, I stumbled across YFi Hotspot Manager, Modern Ajax web front-end for FreeRADIUS 2.x which
supports vouchers management, permanent users, postpaid and prepaid billing, Multi language support, statistics etc. It works seamlessly with the following captive portal software; CoovaChilli and Mikrotik and runs on Ubuntu and CentOS.

I wrote a guide on how to set up YFi Hotspot Manger running on RHEL/CentOS 5.x and has gotten some good reviews and Dirk van der Walt was also kind enough to include it on the project wiki page. This video series is a followup of the guide and we will set things up using the latest releases of CentOS 6, YFi Hotspot Manager (Latest SVN – Beta 6), FreeRADIUS 2.2, CakePHP (1.2.x for compatibility reasons), PPTPD 1.3.4.

Requirements for watching the videos:

  • Patience
  • Guts
  • Bowl of Coffee
  • and Patience

Downloads

Yfi_Tools

After watching the videos and hopefully everything working for you, please drop me a line in the comments field so that I have an idea if the videos helped you or not.

Part 1

Part 2

Part 3

 

Trackback from your site.

Mfawa Alfred Onen

I am a System Administrator and I work at Bingham University.
  • Jonay

    Thanks a lot for these videos. They’re great, you can set up all services just following your steps. I’m eager to see the captive portal set-up. Keep up the good work!

  • foster

    i need help to setup the profiles, realms, the voucher management sections…. i mean the Graphic User Interface setups.

  • foster

    if you could write up the step by step process of creating the profile management, the realms, the creation of vouchers, so that i can give my customer some codes to browse, that will help much.

  • Ivan Tenev

    Nice job. I’m too eager to see how to set up portal.

    If you interest with translation in Bulgarian, I’ll help

    • Mfawa Alfred Onen

      Thanks @ivantenev:disqus , I have created a video on setting up the Captive Portal using CoovaChilli on CentOS 6 http://www.maomuffy.com/coovachilli-setup-on-centos-6/, yes you are free to translate this to any language you want. Let me know how it goes.

  • Yucheng Ju

    Thanks for your fantastic video.

    I have downloaded and run the Beta-6-1.1.ova on Oracle virtualbox successfully. I can get the yfi login page popup.

    One question for you if you can help: If i don’t want the login page with user name and password box, but only a “Accept” button with Term and Condition display on the login page for user to click and then login directly, how can I do it? I know CoovaChilli has “TOS” option to do this, I tried to modify the “config” file under /etc/chilli/ to enable “TOS” option, but didn’t work.

    Thanks in advance.

    • Mfawa Alfred Onen

      Thanks @yuchengju:disqus , I have not tried that option before but I can give it a try and let you know what I find. Regards!

      • Yucheng Ju

        Thanks. Looking forward your test result and please let me know if any outcome. Regards,

      • Spider

        Hi Mfawa, did you make TOS work at the end? Also is it possible to to port the coovachilli portal into the RadiusDesk environment and point the UAMFORMAT to that place. I am also looking to do SelfReg instead of user and password. Waiting for your answers

        • Mfawa Alfred Onen

          Hello Spider, I have not gotten the time to try that out yet but I believe the Coovachilli Portal directly access the JSONP service that allows it to talk to chilli. You can study the TOS implementation in Chilli and maybe create your own page that will work with RADIUSDesk.

          • Spider

            Hi Mfawa, Thanks for the direction. I used the coova_json folder from YFI hostpot manager to produce TOS as well as Self registry login page. Now, I am trying to use EAP-PEAP to connect to Radius server. It seems OpenSSL is not properly linked? I checked it is installed though.

            I changed in eap.conf the line

            default_eap_type = md5

            to

            default_eap_type = peap

            but radiusd does not start any more.

            rlm_eap,No such sub-type for default EAP type peap

            Ignoring EAP-Type/tls because we do not have OpenSSL support.
            Ignoring EAP-Type/ttls because we do not have OpenSSL support.
            Ignoring EAP-Type/peap because we do not have OpenSSL support.

            /usr/local/etc/raddb/eap.conf[17],Instantiation failed for module “eap”

            /usr/local/etc/raddb/sites-enabled/default[337],Failed to find “eap” in the “modules” section.
            /usr/local/etc/raddb/sites-enabled/default[279],Errors parsing authenticate section.

            • Mfawa Alfred Onen

              Hello Spider, looks like you will have to recompile FreeRADIUS with OpenSSL support. Make sure you have installed the development libraries for OpenSSL like libssl and libssl-dev before running ./configure.

              • Spider

                Hi Mfawa,

                Thanks. I recompiled FreeRADIUS with OpenSSL, and was scared I will destroy the setup. I followed exactly as described in here:

                http://www.radiusdesk.com/getting_started/install_ubuntu_freeradius

                and it worked. My coovachilli configuration of Access Point as follows:

                HS_RADPROXY_LISTEN=127.0.0.1
                HS_RADPROXY_CLIENT=127.0.0.1
                HS_RADPROXY_PORT=1645
                HS_RADPROXY_SECRET=$HS_RADSECRET
                HS_WPAGUESTS=on
                HS_EAPOLENABLE=on
                HS_COANOIPCHECK=on
                HS_COAPORT=3799

                WPA2-EAP configuration of AP as follows

                RADIUS Auth SERVER 127.0.0.1
                Radius Auth Port 1645
                Radius Auth Secret testing123

                RADIUS Account. SERVER 127.0.0.1
                Radius Account. Port 1645
                Radius Account Secret testing123

                When I try to connect it asked username and password. I created a permanent user on RadiusDesk with profile of 5 minutes and WISPr-Redirection-URL := some URL here with check. This username and password works however I have questions:
                1. I was still connected after 5 minutes, without EAP this profile of 5 minute worked before.
                2. I am not redirected after I log in to Redirection-URL even without EAP. How to find the exchange messages between the Coovachilli and FreeRadius?

                3. Although it worked, I can see the user is access but it has this error under debug output:
                Error : rlm_sql (sql),database query error, SELECT IFNULL(SUM(acctsessiontime – GREATEST((1380664800 – UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username=’public’ AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > ‘1380664800’,You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘FROM radacct WHERE username=’public’ AND UNIX_TIMESTAMP(acctstarttime) + acctses’ at line 1
                Wed Oct 2 17:49:30 2013 : Error : Syntax error. Expected condition at
                Wed Oct 2 17:49:30 2013 : Error :
                thanks,

                • Mfawa Alfred Onen

                  Hmm…looks like the accounting is not working correctly due to the MySQL error. Can you upgrade to the current SVN from which you can replace the raddb directory and see if it helps. I will inform Dirk van der Walt about this and see if there was an error/typo in the code base.

                  • Spider

                    Hi Mfawa,

                    I went to
                    cd to /usr/share/nginx/www/cake2/rd_cake
                    svn update

                    but got this error,
                    svn: Unknown hostname ‘svn.code.sf.net’

                    however I think I located the error in raddb/policy.conf there is ,0) is missing,

                    vi usr/local/etc/raddb/policy.conf
                    update control {

                    #Rd-Used-Time := “%{sql:SELECT IFNULL(SUM(acctsessiontime – GREATEST((%{control:Rd-Start-Time} – UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE callingstationid=’%{request:User-Name}’ AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > ‘%{control:Rd-Start-Time}’}”

                    Rd-Used-Time := “%{sql:SELECT IFNULL(SUM(acctsessiontime – GREATEST((%{control:Rd-Start-Time} – UNIX_TIMESTAMP(acctstarttime)), 0)),0) FROM radacct WHERE callingstationid=’%{request:User-Name}’ AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > ‘%{control:Rd-Start-Time}’}”

                    }

                    }

                    else{

                    update control {

                    #Rd-Used-Time := “%{sql:SELECT IFNULL(SUM(acctsessiontime – GREATEST((%{control:Rd-Start-Time} – UNIX_TIMESTAMP(acctstarttime)), 0)) FROM radacct WHERE username=’%{request:User-Name}’ AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > ‘%{control:Rd-Start-Time}’}”

                    Rd-Used-Time := “%{sql:SELECT IFNULL(SUM(acctsessiontime – GREATEST((%{control:Rd-Start-Time} – UNIX_TIMESTAMP(acctstarttime)), 0)),0) FROM radacct WHERE username=’%{request:User-Name}’ AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > ‘%{control:Rd-Start-Time}’}”
                    }
                    I have other questions, my friend on his RadiusDESK Virtual Machine (VM) tried to delete permanent users maybe including dvdwalt, now permanent user is empty in his VM however in MySQL the user exists. Where to look for this problem? Also I noticed that dvdwalt permanent user refresh button is missing. I remember I used to see that before?

                    • Mfawa Alfred Onen

                      Great work Spider! Does RADIUSDesk communicate properly with MySQL in your friends VM. It sounds like it has to do with the asynchronous processing of the AJAX request from the Web UI to the controller that eventually deletes the user. Can he try that on a fresh install of the VM? That way we can confirm that it is a bug which needs to be fixed in the next SVN update.

                      Cheers!

                    • Spider

                      Thanks Mfawa,
                      I am trying now with fresh install of the VM. First thing I do now is go to

                      cd /usr/share/nginx/www/cake2/rd_cake

                      svn update

                      get this error:

                      svn: Checksum mismatch while updating ‘Setup/Cron/rd’; expected: ‘7090ae6222f35ce7682db50926392a9f’, actual: ‘3114d043b7b41ce22ef1a412910dea6a’

                      then did

                      cd /usr/share/nginx/www/rd_login_pages
                      svn update

                      #worked fine

                      cd /usr/share/nginx/www/
                      svn update
                      Restored ‘ext-4.1.1a-gpl.zip’
                      At revision 561.

                      cd /usr/share/nginx/www/cake2/rd_cake
                      svn update

                      U Controller/Component/KickerComponent.php
                      svn: Checksum mismatch while updating ‘Controller/DesktopController.php’; expected: ‘856836fd757059acae97665e5d283b60′, actual: ’27f78f7503fc4169c42e067aa6874a95’

                    • Mfawa Alfred Onen

                      Hello Spider, did you change anything in those files that are having the Checksum mismatch?

                    • Spider

                      Hello Mfawa, I did not change anything. Just loaded the VM and then did the svn update that is all.
                      thanks,

                    • Mfawa Alfred Onen

                      Great it worked! Keep up the pace 🙂

                    • Spider

                      My problem now is to redirect to a specific page after successful login. I used WISPr-Redirection-URL set through profile in RadiusDesk. I also sniffed the accept packets using WIreShark, I saw the WISPr-Redirection-URL as a reply. But after login no redirection happens. Does Coovachilli support WISPr-Redirection-URL ? or maybe I should have used ChilliSpot-Inject-URL which is not defined yet in the dictionary but it is available in
                      http://dev.coova.org/svn/coova-chilli/doc/dictionary.chillispot
                      Another question is can I run multiple instances of Coovachilli for each SSID ??
                      thanks

                    • Mfawa Alfred Onen

                      Hello Spider, WISPr-Redirection-URL works with CoovaChilli but I believe RadiusDesk breaks that option when you are using the rd_login_pages. It will work with some tweaks to the RadiusDesk Source code. As for multiple instances supporting various SSIDs, yes you can do that and provide say, a different login page per SSID. I have setup a VLAN based network where CoovaChilli runs with different configurations per VLAN (which could be attached to an SSID).

                    • Spider

                      Hello Mfawa,

                      I managed to make WISPr-Rediraction-URL work. You remember I created ToS (Terms of Service) login page using the YFI hotspot project login pages. You just need to make sure when you create a profile component, you make WISPr-Redirection-URL as a reply and input http:// in front of the URL, otherwise is not going to work.

                      as for multiple CoovaChilli instances I am will work next, hopefully that also work. I have another question.

                      Looking at the screenshots:

                      http://sourceforge.net/projects/radiusdesk/

                      The screen shots that shows the users tab (click on a user, then edit), it shows here Usage graphs, I do not have that tab enabled on my RadisuDesk, I tried to upgrade it using

                      cd /usr/share/nginx/www/rd_login_pages
                      svn update
                      cd /usr/share/nginx/www/cake2/rd_cake
                      svn update
                      cd /usr/share/nginx/www/rd
                      svn update
                      let me know if that feature is an existent on or it is going to be in future?

                    • Spider

                      Hi Mfawa,

                      The WISPr-Redirection-URL works now. Because initially I created ToS(Terms of Service) login pages out of YFI Hotspot Manager login pages. Make sure when you create profile components for WISPr-Redirection-URL is set to ‘reply’ not ‘check’ . Then URL must start with http:// otherwise is not going to work.

                      Next, I am going to work on multiple Coovachilli instances using VLAN based network video you created.

                      I have a question now. If you go to http://sourceforge.net/projects/radiusdesk/

                      and look at the last snapshot you can see under the user-tabs there is Usage Graphs, but on my version of RadiusDesk I do not have that. I even went and updated using svn

                      cd /usr/share/nginx/www/rd_login_pages
                      svn update
                      cd /usr/share/nginx/www/cake2/rd_cake
                      svn update
                      cd /usr/share/nginx/www/rd
                      svn update

                      Please let me know if this feature currently exist or it is going to be available in future?
                      regards,

                    • Mfawa Alfred Onen

                      Hey Spider, thanks for the update and the work around. As for the feature for Usage Graph, it does exist and my deployments have that option. Also when you ran the update command, did it actually update the to the latest SVN version?

                    • Spider

                      Hi Mfawa,
                      what revisions are on

                      /usr/share/nginx/www/rd

                      /usr/share/nginx/www/cake2/rd_cake
                      ??????
                      I tried to update and the following happens

                      cd /usr/share/nginx/www/rd
                      svn update

                      worked without error:

                      svn info

                      Path: .
                      URL: svn://dvdwalt@svn.code.sf.net/p/radiusdesk/code/trunk/rd
                      Repository Root: svn://dvdwalt@svn.code.sf.net/p/radiusdesk/code
                      Repository UUID: e9fd4974-e3b9-4200-b821-f6b099dd8586
                      Revision: 582
                      Node Kind: directory
                      Schedule: normal
                      Last Changed Author: dvdwalt
                      Last Changed Rev: 582
                      Last Changed Date: 2013-11-08 21:40:29 +0200 (Fri, 08 Nov 2013)

                      for rd_cake I am getting Checksum mismatch while updating,

                      cd /usr/share/nginx/www/cake2/rd_cake
                      svn update

                      A Model/Mesh.php
                      A Model/MeshNote.php
                      svn: Checksum mismatch while updating ‘Setup/Cron/rd’; expected: ‘7090ae6222f35ce7682db50926392a9f’, actual: ‘3114d043b7b41ce22ef1a412910dea6a’
                      root@RADIUSdesk-Beta1-1:/usr/share/nginx/www/cake2/rd_cake#

                      Path: .
                      URL: svn://dvdwalt@svn.code.sf.net/p/radiusdesk/code/trunk/rd_cake
                      Repository Root: svn://dvdwalt@svn.code.sf.net/p/radiusdesk/code
                      Repository UUID: e9fd4974-e3b9-4200-b821-f6b099dd8586
                      Revision: 582
                      Node Kind: directory
                      Schedule: normal
                      Last Changed Author: dvdwalt
                      Last Changed Rev: 508
                      Last Changed Date: 2013-09-01 22:00:43 +0200 (Sun, 01 Sep 2013)

                    • Mfawa Alfred Onen

                      Spider, I have can recall my revision but it is not up to 582. When I click on the User followed by edit, I can find the Usage Graph Tab.

                    • Spider

                      I did svn upgrade on

                      cd /usr/share/nginx/www/rd

                      it upgraded to lates revision 582 without any problem.
                      Then I got the Usage Graph Tab, however I am getting “fetching problem”
                      do you know why?

                    • Mfawa Alfred Onen

                      Can you send a screenshot?

                    • Spider

                      Find attach the error I am getting.

                      Also, when get the RadiusDesk as a virtual machine,

                      I am able to do svn update on /usr/share/nginx/www/rd

                      but not for

                      /usr/share/nginx/www/cake2/rd_cake

                      when run the command “svn update” it give me this”svn: Checksum mismatch while updating ‘webroot/files/heartbeat.php’; expected: ‘888d8cb5843743bb516ec68258659135’, actual: ‘3b9f4db5c5f2ddd8e0349bb1e1d21942’
                      root@RADIUSdesk-Beta1-1:/usr/share/nginx/www/cake2/rd_cake#


                      is this problem can be fixed?
                      I had to remove the folder and checkout from svn again…but then it creates other problems…

                    • Mfawa Alfred Onen

                      I can’t see the error message. Also try removing just the heartbeat.php file and do the SVN update and see if it fixes the problem.

                    • Spider

                      which error??
                      I am attaching it again with clear view :

                    • Spider

                      as for svn update, I did remove the file, now it asks for other file

                      svn update
                      Restored ‘webroot/files/heartbeat.php’
                      svn: Checksum mismatch while updating ‘Setup/Cron/rd’; expected: ‘7090ae6222f35ce7682db50926392a9f’, actual: ‘3114d043b7b41ce22ef1a412910dea6a’

                      now should I remove /rd file? and run svn update?

                    • Mfawa Alfred Onen

                      Ok check nginx log files for any error messages.

                    • Spider

                      just check nginx log files, no error reported

                      tail -f /var/log/nginx/error.log
                      few more questions:
                      1. after removing rd_cake folder (because I could not svn update) and checkout from the svn, I found out one more feature appeared, it is called MeshDesk?? Is this a new feature?
                      2. As in YFI Hotspot Manger had this billing plans, credit card transaction tools, RadiusDesk will have those tools as well?
                      thanks,

                    • Spider

                      Hi Mfawa,

                      I was using RADIUSdesk-Beta2-1 previously was not able to svn update and the Usage Graph was not there, now I am using RADIUSdesk-Beta4-1, I found out that I have Usage Graph but still

                      cd /usr/share/nginx/www/cake2/rd_cake
                      svn: Checksum mismatch while updating ‘Setup/Cron/rd’; expected: ‘7090ae6222f35ce7682db50926392a9f’, actual: ‘3114d043b7b41ce22ef1a412910dea6a’

                    • Mfawa Alfred Onen

                      Spider, I am not sure what is happening but seems for some reason the checksum does not match. Try removing the Setup/Cron/rd directory and try updating again! Cheers!

  • Yucheng Ju

    The current Beta-6-1.1.ova image is Ubuntu build. I’m wondering if you can upload your CentOS image you created from you video as alternate solution? Regards

  • Mfawa Alfred Onen

    @yuchengju:disqus I will upload my CentOS version and post the link to download.

  • Kharam

    Hi, Alfred, Thanx for the informative videos for installation of yfi hotspot on CentOS. I am of inquiry if you can make a post for Debian

  • kaung myat ko

    hi.brother.i have a problem.i do everythings u say but.https://192.168.2.1/yfi/ login pages has some error.i can see login page but i cannot see username and password box.plz help me? bro.thz

    • Mfawa Alfred Onen

      Hi Kaung, what error comes up in your apache log file? check /var/log/httpd/error.log

      • https://www.dropbox.com/s/ur4zblulj2bx65r/error_log

        here r my error.thanks for help me bro.teach me.I am from Asia/myanmar.

        • Mfawa Alfred Onen

          Ok. I can see from your log file that you have not set a time zone in your PHP.ini file. Do the following:

          – Go to /etc by typing as root: cd /etc

          – Edit the PHP.ini file: nano /etc/php.ini

          – Look for the Date Timezone change to suit your timezone: date.timezone = “Asia/Rangoon”

          – Now save your changes and restart Apache: service httpd restart

          – Finally, try vising the YFi Login page again and let us know if that solved your login problem.

          Regards!

  • hi brother.i do everything you say but i have error.i enter username and password.but my client PC have no internet access.Why ? and what i do?
    Regards!

    • Mfawa Alfred Onen

      Hey Kaung, did you enable IP forwarding? add the following to the /etc/chilli/up.sh file:

      iptables -A PREROUTING -t NAT -o $WANIF -j MASQUERADE

      Let me know if it solved the problem.

      Regards

      • i config net.ipv4.ip_forward=1

        #!/bin/sh

        TUNTAP=$(basename $DEV)

        . /etc/chilli/functions

        [ -e “/var/run/chilli.$TUNTAP.iptables” ] && sh /var/run/chilli.$TUNTAP.iptables 2>/dev/null

        rm -f /var/run/chilli.$TUNTAP.iptables 2>/dev/null

        ipt() {

        opt=$1; shift

        echo “iptables -D $*” >> /var/run/chilli.$TUNTAP.iptables

        iptables $opt $*

        }

        ipt_in() {

        ipt -I INPUT -i $TUNTAP $*

        }

        [ -n “$TUNTAP” ] &ipt_in -p udp -d 255.255.255.255 –destination-port 67:68 -j ACCEPT

        ipt_in -p udp –dst $ADDR –dport 53 -j ACCEPT

        ipt_in -p icmp –dst $ADDR -j ACCEPT

        ipt -A INPUT -i $TUNTAP –dst $ADDR -j DROP

        ipt -A INPUT -i $TUNTAP -j DROP

        ipt -A PREROUTING -t NAT -o $WANIF -j MASQUERADE

        ipt -I FORWARD -i $DHCPIF -j DROP

        ipt -I FORWARD -o $DHCPIF -j DROP

        ipt -I FORWARD -i $TUNTAP -j ACCEPT

        ipt -I FORWARD -o $TUNTAP -j ACCEPT

        # Help out conntrack to not get confused

        # (stops masquerading from working)

        #ipt -I PREROUTING -t raw -j NOTRACK -i $DHCPIF

        #ipt -I OUTPUT -t raw -j NOTRACK -o $DHCPIF

        # Help out MTU issues with PPPoE or Mesh

        ipt -I FORWARD -p tcp -m tcp –tcp-flags SYN,RST SYN -j TCPMSS –clamp-mss-to-pmtu

        ipt -I FORWARD -t mangle -p tcp -m tcp –tcp-flags SYN,RST SYN -j TCPMSS –clamp-mss-to-pmtu

        [ “$HS_LAN_ACCESS” != “on” -a “$HS_LAN_ACCESS” != “allow” ] &&

        ipt -I FORWARD -i $TUNTAP ! -o $HS_WANIF -j DROP

        [ “$HS_LOCAL_DNS” = “on” ] &&

        ipt -I PREROUTING -t nat -i $TUNTAP -p udp –dport 53 -j DNAT –to-destination $ADDR

        }

        # site specific stuff optional

        [ -e /etc/chilli/ipup.sh ] && . /etc/chilli/ipup.sh

        but if it not solved the problem. and i cannot see login pages at 192.168.2.1/yfi/. plz help

        • Mfawa Alfred Onen

          You have to add ipt -A PREROUTING -t NAT -o $WANIF -j MASQUERADE to the end of the file.

    • claudinir

      hey Kaung

      I tried several changes but nothing worked.

      after I applied this rule worked perfectly

      where you read “eth0” put the interface that is directly connected to your WAN (ISP)

      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

      service iptables save

      service chilli stop

      service chilli start

      after running, tell if it worked

  • iceman

    Hi,
    I followed your instructions step-by-step but I can only get up to here (please see attached). I’m pretty sure I’m using the right password. I am using CentOS 6.4.
    Can you help me with this?
    Thanks!

    • Mfawa Alfred Onen

      Hello @iceman, the default username and password is root/admin

      • iceman

        oh.. Thanks! 🙂

        • Mfawa Alfred Onen

          You are welcome!

  • Claudinir

    hey man, tks fou your help! You save my life!

  • Linn Thu

    Hi Brother, Please tell me , how to fix it ! Thz …

    Missing Controller
    http://192.168.10.1/c2/yif_cake/users
    Error:
    YifCakeController could not be found.

    Error:
    Create the class YifCakeController below in file: app/controllers/yif_cake_controller.php

    Notice:
    If you want to customize this error message, create app/views/errors/missing_controller.ctp

    • Mfawa Alfred Onen

      Hello Linn Thu, make sure you are using cake-1.2.x (1.2.5 preferably). Also ensure that you copy yfi_cake into the c2 directory and that you have enable mod_rewrite and copied the apache httpd.conf addon.

      Regards!

      • Linn Thu

        Thanks for reply ! Bro … I’ll check that ….

      • HUY LE

        Hi Man,

        It is not work, how to fix it ! Thz …

        httpd.conf:
        LoadModule rewrite_module modules/mod_rewrite.so

  • fyfo

    Dear, Mr. Alfred

    I try to test user radius from the YFI Hotspot manager,, cannot. and i don’t have receivied. from the radius server,, can you see on the my attachment. can you help me, how to fix it, thanks

    • Mfawa Alfred Onen

      Looks like you need to add a NAS with your server IP address. You can check the log files for errors (/var/log/radius/radius.log).

      • Munsu

        Dear, Mr. Alfred,

        I have the same errors. Where can I add a NAS? can you help me, how to fix it, thank u so much

        • Mfawa Alfred Onen

          Hello Munsu, You can add a NAS devices by going to the menu option on the lower left of YFI Hotspot Manager.

          • Munsu

            Dear, Mr. Alfred,

            I try add new NAS but It is not work.

            But maybe cause freeRADIUS.

            When I start radiusd.

            #service radiusd start

            #radiusd -X

            I see this error

            ——————————————————————————

            listen {

            type = “auth”

            ipaddr = *

            port = 0

            Failed binding to authentication address * port 1812: Address already in use

            /etc/raddb/radiusd.conf[241]: Error binding to port for 0.0.0.0 port 1812

            ——————————————————————————-

            But This is work

            radtest dvdwalt@ri dvdwalt@ri localhost 0 testing123

            Sending Access-Request of id 122 to 127.0.0.1 port 1812

            User-Name = “dvdwalt@ri”

            User-Password = “dvdwalt@ri”

            NAS-IP-Address = 127.0.1.1

            NAS-Port = 0

            Message-Authenticator = 0x00000000000000000000000000000000

            rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=122, length=73

            Acct-Interim-Interval = 60

            Idle-Timeout = 900

            ChilliSpot-Bandwidth-Max-Down = 262144

            Yfi-Data = “262144000”

            ChilliSpot-Bandwidth-Max-Up = 262144
            ——————————————
            BUT When I stop radiusd.

            #service radiusd stop

            #radiusd -X

            I didn’t see error

            —————————————————————-

            listen {

            socket = “/var/run/radiusd/radiusd.sock”

            }

            }

            … adding new socket proxy address * port 38468

            Listening on authentication address * port 1812

            Listening on accounting address * port 1813

            Listening on command file /var/run/radiusd/radiusd.sock

            Listening on proxy address * port 1814

            Ready to process requests.

            —————————————————————-

            But This is NOT work.

            radtest dvdwalt@ri dvdwalt@ri localhost 0 testing123

            Sending Access-Request of id 122 to 127.0.0.1 port 1812

            User-Name = “dvdwalt@ri”

            User-Password = “dvdwalt@ri”

            NAS-IP-Address = 127.0.1.1

            NAS-Port = 0

            Message-Authenticator = 0x00000000000000000000000000000000

            I try to setup again but I still the same error.

            Can you help me. I try to search on internet but nothing.
            Hope you help me. I spent alot time for setup this hotspot

            Thank u so much

            • Mfawa Alfred Onen

              Munsu, we will fix this, you just need to double check everything. It is possible there is a process using that port. Do a netstat -anlupt | grep 1812 while freeradius is stopped and see if it is busy.

  • fyfo

    dear. alfred,,

    I want to setup in Centos X 86_64 iso. but the packet cannot install, ,because your yfi tool support for i386 iso ,
    are you know where i can find the all packet for Centos 6.0 X86_64 ISO .. or 64Bit

    Plese advice,,

  • Linn Thu

    I got this error, Please, look at my attachment !
    How to fix it ? Thanks …. ( I created some new user to login but I got Auth_failed errors)

    • Linn Thu

      And I also typed same uamsecret – s3cr3t . I don’t know why i got this error ! Tell me brother, Please ….

  • Freddy FALANGA

    Dear Alfred,

    I want first to thank you because your videos helps greatfully to install and configure YFi Hotspot Manager.
    That why I want to ask your permission to write a pdf user guide in french version (as possible english version also).

    Congratulations !

    • Mfawa Alfred Onen

      Hello Freddy FALANGA, kindly go ahead and translate it to any language of your choice. Thank you for the effort and wish to work on subsequent Guides and publication. Regards!

      • Freddy FALANGA

        Thanks Alfred !

        I’m going ahead… !

        • Mfawa Alfred Onen

          Good luck Freddy!

  • thuya

    Dear Bro,

    May i know last question because i didn’t do configuration. i tried to access for long time but i can’t do the configuration. I want to login only one concurrent user for one user but i can’t do this matter.

    Please assist to me.

    Thanks for your assist

  • James Otiniano R

    Hi,
    Can you help me with an error; when I start service chilli, I have this error:

    Oct 29 15:49:13 smart coova-chilli[15611]: options.c: 181: could not generate configuration (/var/run/chilli.15611.cfg.bin), sleeping one second
    Oct 29 15:49:14 smart chilli_opt: util.c: 103: Not able to parse URL port: http://192.168.1.2:/coova_json/mobile.php!
    Oct 29 15:49:14 smart chilli_opt: main-opt.c: 621: Failed to parse uamserver: http://192.168.1.2:/coova_json/mobile.php!

    thanks.

    • Mfawa Alfred Onen

      Hello James, I can see that the port is empty from the UAM URL. change the line in /etc/chilli/config that has HS_UAMLISTEN from 192.168.1.2: to 192.168.1.2 (notice the colon at the end!).

      Cheers!

      • James Otiniano R

        Thanks!! this was the solution.

        Now, I have another problem, How the client can logout from your yfi network?.

      • James Otiniano R

        Thanks! this was the solution.

        • Mfawa Alfred Onen

          Glad to hear that you fixed it!

  • James Otiniano R

    Hi,
    Can you help me one more time… well, I need to replace the IP Address of login page for example http://192.168.1.1/coova_json/hs_land.php/res=notyet….
    with my domain like http://exampledomain.com/coova_json/hs_land.php/res=notyet….
    what I need to resolve that? I need a virtualhost? … please help me..
    Thanks one more time.

    • Mfawa Alfred Onen

      Hello James, please feel free to ask for help anytime, I will try my best to see if I can help resolve the problem. Yes you replace the IP address with the domain as it is considered valid, Just make sure you create a local DNS entry to serve the clients on your LAN. You can install ISC BIND and set it up as your DNS server which should allow you create an Authoritative DNS record for your domain of choice E.G exampledomain.com. Now in your /etc/chilli/config, just replace the HS_UAMFORMAT entry from HS_UAMFORMAT=http://$HS_UAMLISTEN/coova_json/hs_land.php to http://exampledomain.com/coova_json/hs_land.php. I hope this guides you but once again, feel free to ask questions as you tackle the challenges ahead. Cheers!

      • James Otiniano R

        Thanks one more time…

  • James Otiniano R

    I have some other questions. When I was ussing the Web Manager, I wanted to create some profiles, I noticed that there are several types (Time Based, Data Based, Multi Counters), but I really don’t know what “Multi Counters” mean, would you know what this is about?. Also if I wanted to add a new profile template, I need to add specific Atrributes to this new template, but there are so many of them, do you know where I can found the meaning of each one and what unit I should put this? and CAP TYPE: I dont know what does mean? it is for cut the connections?
    ..

    Sorry for my English.

  • Alvaro Villena Alcala

    Hi,
    I need some help! Is it possible to limit the number of devices that can access with the same account? For example, that the user 123@ri.com can register in the Captive Portal with 3 devices as top.

    • Mfawa Alfred Onen

      Hello Alvaro, you try creating a profile with the RADIUS check attribute of Simultaneous-Use := 3

  • Kawaii

    hii
    i need same help..
    how to setup radius to be in sync with linksys wpa enterprise security

  • Guest

    Help!!!!
    What is error???

    • Mfawa Alfred Onen

      Make sure you are using the correct database credentials.

  • Guest

    Help

  • donidimon .

    Thank you for excellent video tutorials.
    I was tried installing coovachilli on Centos_6_86_64.
    64 using this instructions. But in the time rpmbuild coova-chilli, finished with this errors.

    warning: File listed twice: /etc/chilli/www/config.sh
    warning: File listed twice: /usr/sbin/chilli_script
    error: Installed (but unpackaged) file(s) found:
    /usr/lib64/libbstring.la
    /usr/lib64/libchilli.la
    File listed twice: /etc/chilli/www/config.sh
    File listed twice: /usr/sbin/chilli_script
    Installed (but unpackaged) file(s) found:
    /usr/lib64/libbstring.la
    /usr/lib64/libchilli.la

    Please help me.
    with best wishes your (vertual 🙂 )friend

    • Mfawa Alfred Onen

      @donidimon:disqus Usually that error simply means that some files are listed twice as it tries to package the RPM file. Either use %define _unpackaged_files_terminate_build 0 at the top of the SPEC file or use my SPEC file here https://gist.github.com/muffycompo/bfc8baaa5d38d36fcaed as a starting point.

  • Guest

    Hello, I’m a newbie. I got this. And i have tried chmod already but the result is the same. Pls help me. Thanks

  • Guest

    – Hello, I’m a newbie. I got this situation “You don’t have permission to access /yfi
    on this server”. I can load to localhost server address but cant to the localhost/yfi or localhost/c2/…
    – And i have tried “chmod -R 777 ” already but the result was the same. Pls help me. Thanks

  • Sulaiman Ismail Isa

    Hello Alfred, i’m from Bali (Indonesia), nice to meet U. i have a problem with freeradius, cz i’m still newbie on this case. Do you want to teach me how to configure the freeradius on centos 6.5 ? because I want to build a server on my wireless network . I would be very grateful if you want to help me and I will send you a network topology that I was working . Please….

    • Mfawa Alfred Onen

      Hello Sulaiman, nice to meet you too. You can send an email with the details here: muffycompoqm[at]gmail[dot]com

      • Sulaiman Ismail Isa

        Thank you for responding to my email.
        I had sent an email whit the details to your email.
        please help me.
        I am waiting for good news from you, alfred.

      • Sulaiman Ismail Isa

        hello Alfred, are u still busy?
        you remember it if my time is very little, because the job deadline later this month.
        do you still want to help me?

  • Vagelism22678

    First off all I would like to thank you. Since now didnt use your software but seems exactly what I need. Have a nice day!

  • Vagelism22678

    I downloaded the ready virtual machine. Works fine , I log one but how do I set the secret of the RADIUS ?

    • Mfawa Alfred Onen

      Hello, you can change the radius secret in YFI Hotspot Manager under NAS menu. Just select the NAS short name (E.G localhost) and in the properties tab, you will see the RADIUS secret which usually defaults to testing123. Cheers!

  • mudianto

    Hello I have implemented your tutorial video on youtube about YFI … Part 1-3 but until the middle I get an error like this, how should I fix it?

    NB: mysql username root password yfi
    thanks.

    • Mfawa Alfred Onen

      Did you import the MySQL Database yfi.sql?

      • mudianto

        yess that problem was fixed, n now how about this, man?
        POSIX.pm error

        • Mfawa Alfred Onen

          Can you give me teamviewer access?

          • mudianto

            sorry i’m offline now, but i do same with your tutorial…
            but i find diferent error with your video…
            regrets

          • mudianto

            ok now you can see dis…
            n Please give me a solution, guys…
            Best Regrets

            • Mfawa Alfred Onen

              Do you have OpenLDAP and unixODBC installed? If you are using CentOS, try yum install -y perl*

        • AtishSB

          Hello, i’m having the same issue, can you please help with the POSIX.pm thing…. @mfawaalfredonen:disqus

          • Mfawa Alfred Onen

            Are you using CentOS, try doing a yum install -y perl-*

          • Mfawa Alfred Onen

            @atishsb:disqus Are you using CentOS, try doing a yum install -y perl-*

            • AtishSB

              Hi Alfred, yes its CentOS 6.7 and i did a yum install -y perl-*

              it still persists, i guess because the perl libraries are in /local/lib64/ instead of /local/lib

              heres a debug

              [root@test-srv01 ~]# radiusd -X
              FreeRADIUS Version 2.2.0, for host i686-pc-linux-gnu, built on Mar 1 2013 at 02:19:35
              Copyright (C) 1999-2012 The FreeRADIUS server project and contributors.
              There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
              PARTICULAR PURPOSE.
              You may redistribute copies of FreeRADIUS under the terms of the
              GNU General Public License v2.
              Starting – reading configuration files …
              including configuration file /etc/raddb/radiusd.conf
              including configuration file /etc/raddb/proxy.conf
              including configuration file /etc/raddb/clients.conf
              including files in directory /etc/raddb/modules/
              including configuration file /etc/raddb/modules/sql_log
              including configuration file /etc/raddb/modules/attr_rewrite
              including configuration file /etc/raddb/modules/pam
              including configuration file /etc/raddb/modules/checkval
              including configuration file /etc/raddb/modules/detail
              including configuration file /etc/raddb/modules/policy
              including configuration file /etc/raddb/modules/passwd
              including configuration file /etc/raddb/modules/redis
              including configuration file /etc/raddb/modules/smsotp
              including configuration file /etc/raddb/modules/chap
              including configuration file /etc/raddb/modules/files
              including configuration file /etc/raddb/modules/sqlcounter_expire_on_login
              including configuration file /etc/raddb/modules/otp
              including configuration file /etc/raddb/modules/counter
              including configuration file /etc/raddb/modules/pap
              including configuration file /etc/raddb/modules/unix
              including configuration file /etc/raddb/modules/ntlm_auth
              including configuration file /etc/raddb/modules/rediswho
              including configuration file /etc/raddb/modules/detail.log
              including configuration file /etc/raddb/modules/ippool
              including configuration file /etc/raddb/modules/cui
              including configuration file /etc/raddb/modules/etc_group
              including configuration file /etc/raddb/modules/linelog
              including configuration file /etc/raddb/modules/acct_unique
              including configuration file /etc/raddb/modules/attr_filter
              including configuration file /etc/raddb/modules/always
              including configuration file /etc/raddb/modules/sradutmp
              including configuration file /etc/raddb/modules/soh
              including configuration file /etc/raddb/modules/replicate
              including configuration file /etc/raddb/modules/radutmp
              including configuration file /etc/raddb/modules/digest
              including configuration file /etc/raddb/modules/mac2vlan
              including configuration file /etc/raddb/modules/detail.example.com
              including configuration file /etc/raddb/modules/inner-eap
              including configuration file /etc/raddb/modules/expiration
              including configuration file /etc/raddb/modules/ldap
              including configuration file /etc/raddb/modules/dynamic_clients
              including configuration file /etc/raddb/modules/mschap
              including configuration file /etc/raddb/modules/exec
              including configuration file /etc/raddb/modules/opendirectory
              including configuration file /etc/raddb/modules/realm
              including configuration file /etc/raddb/modules/echo
              including configuration file /etc/raddb/modules/krb5
              including configuration file /etc/raddb/modules/smbpasswd
              including configuration file /etc/raddb/modules/wimax
              including configuration file /etc/raddb/modules/perl
              including configuration file /etc/raddb/modules/logintime
              including configuration file /etc/raddb/modules/raw
              including configuration file /etc/raddb/modules/mac2ip
              including configuration file /etc/raddb/modules/expr
              including configuration file /etc/raddb/modules/preprocess
              including configuration file /etc/raddb/eap.conf
              including configuration file /etc/raddb/sql.conf
              including configuration file /etc/raddb/sql/mysql/dialup.conf
              including configuration file /etc/raddb/policy.conf
              including files in directory /etc/raddb/sites-enabled/
              including configuration file /etc/raddb/sites-enabled/inner-tunnel
              including configuration file /etc/raddb/sites-enabled/default
              including configuration file /etc/raddb/sites-enabled/control-socket
              main {
              allow_core_dumps = no
              }
              including dictionary file /etc/raddb/dictionary
              main {
              name = “radiusd”
              prefix = “/usr”
              localstatedir = “/usr/var”
              sbindir = “/usr/sbin”
              logdir = “/usr/var/log/radius”
              run_dir = “/usr/var/run/radiusd”
              libdir = “/usr/lib”
              radacctdir = “/usr/var/log/radius/radacct”
              hostname_lookups = no
              max_request_time = 30
              cleanup_delay = 5
              max_requests = 1024
              pidfile = “/usr/var/run/radiusd/radiusd.pid”
              checkrad = “/usr/sbin/checkrad”
              debug_level = 0
              proxy_requests = yes
              log {
              stripped_names = no
              auth = no
              auth_badpass = no
              auth_goodpass = no
              }
              security {
              max_attributes = 200
              reject_delay = 1
              status_server = yes
              }
              }
              radiusd: #### Loading Realms and Home Servers ####
              proxy server {
              retry_delay = 5
              retry_count = 3
              default_fallback = no
              dead_time = 120
              wake_all_if_all_dead = no
              }
              home_server localhost {
              ipaddr = 127.0.0.1
              port = 1812
              type = “auth”
              secret = “testing123”
              response_window = 20
              max_outstanding = 65536
              require_message_authenticator = no
              zombie_period = 40
              status_check = “status-server”
              ping_interval = 30
              check_interval = 30
              num_answers_to_alive = 3
              num_pings_to_alive = 3
              revive_interval = 120
              status_check_timeout = 4
              coa {
              irt = 2
              mrt = 16
              mrc = 5
              mrd = 30
              }
              }
              home_server_pool my_auth_failover {
              type = fail-over
              home_server = localhost
              }
              realm example.com {
              auth_pool = my_auth_failover
              }
              realm LOCAL {
              }
              realm stell {
              }
              realm hom {
              }
              realm ri {
              }
              radiusd: #### Loading Clients ####
              radiusd: #### Instantiating modules ####
              instantiate {
              Module: Linked to module rlm_exec
              Module: Instantiating module “exec” from file /etc/raddb/modules/exec
              exec {
              wait = no
              input_pairs = “request”
              shell_escape = yes
              }
              Module: Linked to module rlm_expr
              Module: Instantiating module “expr” from file /etc/raddb/modules/expr
              Module: Linked to module rlm_expiration
              Module: Instantiating module “expiration” from file /etc/raddb/modules/expiration
              expiration {
              reply-message = “Password Has Expired ”
              }
              Module: Linked to module rlm_logintime
              Module: Instantiating module “logintime” from file /etc/raddb/modules/logintime
              logintime {
              reply-message = “You are calling outside your allowed timespan ”
              minimum-timeout = 60
              }
              }
              radiusd: #### Loading Virtual Servers ####
              server { # from file /etc/raddb/radiusd.conf
              modules {
              Module: Creating Auth-Type = Perl
              Module: Creating Post-Auth-Type = REJECT
              Module: Checking authenticate {…} for more modules to load
              Module: Linked to module rlm_perl
              Module: Instantiating module “perl” from file /etc/raddb/modules/perl
              perl {
              module = “/etc/raddb/rlm_perl_modules/rlm_perl.pm”
              func_authorize = “authorize”
              func_authenticate = “authenticate”
              func_accounting = “accounting”
              func_preacct = “preacct”
              func_checksimul = “checksimul”
              func_detach = “detach”
              func_xlat = “xlat”
              func_pre_proxy = “pre_proxy”
              func_post_proxy = “post_proxy”
              func_post_auth = “post_auth”
              func_recv_coa = “recv_coa”
              func_send_coa = “send_coa”
              }
              Can’t locate POSIX.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /etc/raddb/rlm_perl_modules/rlm_perl.pm line 27.
              BEGIN failed–compilation aborted at /etc/raddb/rlm_perl_modules/rlm_perl.pm line 27.
              rlm_perl: perl_parse failed: /etc/raddb/rlm_perl_modules/rlm_perl.pm not found or has syntax errors.
              /etc/raddb/modules/perl[7]: Instantiation failed for module “perl”
              /etc/raddb/sites-enabled/default[250]: Failed to find “perl” in the “modules” section.
              /etc/raddb/sites-enabled/default[250]: Failed to parse “perl” entry.

              • Mfawa Alfred Onen

                Looks like your perl installation is the culprit. POSIX.pm is a core module of perl. Could you reinstall perl and ensure you are installing the for the correct architecture (i386 or x86_64)?

  • Hi Alfred this a nice tutorial, I sucefully get the tutorial, but I have a problem now… I cant redirect the authenticates users to a diferent url, everything is ok but this is not possible. I put the Wispr configuration reply in the yfi manager perfil but when the login success nothing happen… could you help me with some procedure…

    tks

    • Mfawa Alfred Onen

      Hello @disqus_irXn4D2e0t:disqus , This was somehow hard coded into YFI manager to redirect to Google or just stay blank. I also encountered the same problem a while back but I have since moved to RADIUSDesk (http://www.maomuffy.com/introduction-to-radiusdesk-with-rhelcentos-6-x-mini-course/) which is the newest rewrite of YFI Manager from the same developer.

      • tks Alfred, is ther ea form to upgrade my actual install or I need to install a new system?

  • kathir

    hey, is it possible to block p2p torrent traffics ?

    • Mfawa Alfred Onen

      Hello kathir, I have not tried blocking p2p torrent traffic before and this is because of the complex nature of torrents. I have heard people trying to use all sorts of Layer7 filtering, queuing and bandwidth throttling to ensure p2p traffic uses less chunk of the network bandwidth. If someone has a way to pull this off, I will appreciate if they share so that we can all learn.

      • kathir

        hey, thanks for the reply. i am planning to use coovaAP and YFi in a hotel to manage the wifi over there.

        can you suggest me a best setup?

        instead of using a old pc can i use a raspberrypi or can you suggest some other hardware which is stable, there will be a maximum of 40 guests users at a time.

        • Mfawa Alfred Onen

          You can try any of the supported Linksys or OpenWRT enabled access points then flash CoovaAP on it. As for using raspberrypi, I am not sure it is beefy enough to handle 40 simultaneous connections. I might be wrong though…

          • kathir

            hey, hope your free now, tried sending you lots of emails, but didnt get a reply.

        • kathir

          thanks for the advice, mfawa i have a project proposal for you, can you please share your email id so i can discuss about it ?

          • Mfawa Alfred Onen

            muffycompoqm[at]gmail[dot]com

            • kathir

              i have mailed you my proposal sir, please do reply your opinion .

  • Sachin Shivaramu

    Hello Alfred,
    Can u guid me how to buid and install covvachilli on my router..

  • Ahmed Mohamed

    Hi Alfred i completed installing yfi hostpot manager in cents 6.5 but when i open http://localhost/yfi ip opens but its doesn’t show username andpassword is not opening
    kindly assist

  • Ahmed Mohamed

    Hi Alfred i fixed the problem by putting this command on the root ln -s /etc/raddb /usr/local/etc/

    but another challenge is if i login with my root username and password is sayys Authentication Failed

  • Sendawula Osama

    Hello Alfred,

    Thanks for the walk thru,

    I have my apache working fine, but cant reach the login page,

    this the error i get

    Fatal error: Call to undefined function mysql_connect() in /var/www/html/c2/cake/libs/model/datasources/dbo/dbo_mysql.php on line 374

    and this is what i have on line 374

    $this->connection = mysql_connect($config[‘host’] . ‘:’ . $config[‘port’], $config[‘login’], $config[‘password’], true);

    Am running CentOS 6.7 VM

  • Andrei Bogdan Burdea

    Hi Mfawa ! Thanks for your time ! Followed your tutorial and… surprise ! I do not have the directory http://109.166.241.234/c2/yfi_cake/users 🙁

  • Nimesh Kumar Barman

    Hello Friend,

    I just follow your video tutorial at and got setup my VPS with YFi. But unable to fix the error at radiusd -XXX and found some Perl dependency error. See the attachment screenshot and help me what to do to fix the issue.

    Waiting for your reply.

    Regards.

    Nimesh

  • Nimesh Kumar Barman

    Thanks a lot Mfawa 🙂 Got the Yfi working Now.

    • Nice to hear you have fixed the issue Nimesh and thanks for the support.

  • Nimesh Kumar Barman

    I was unsuccessful to setup the Yfi on CentOS 6 64bit. Then re-install CentOS 6 32bit and now getting the error when debug radiusd -XXX. The screenshot in attachment. Kindly help me to resolve the issue.

  • sj

    Hi Mfawa,

    I have gone through the 2 Video and try to open the URL http://192.168.10.7/c2/yfi_cake/users/login, got the error which attached Screen-Shot.

    Pls can you tell me what is the issue ?

    Thanks,
    SJ

  • NetBrowser

    Hello Mfawa Alfred Onen, first of all thanks for taking the time to share your knowledge, I have been trying to install the Yfi Manager but when I try to install the freeradius-server i found this error, My version of CentOS 6 is x86_64 and the files on the tools folder are for i386, can you please guide me wich would be the repository that I have to use for this version of CentOS 6? or guide me on the steps to finish the installation i’ll appreciate any help thet you can provide, and again Thank you very much.

  • NetBrowser

    Hello Mfawa Alfred Onen, I am sending this message again because it seems that the first one did not attached the image. First of all thanks for taking the time to share your knowledge, I have been trying to install the Yfi Manager but when I try to install the freeradius-server i found this error, My version of CentOS 6 is x86_64 and the files on the tools folder are for i386, can you please guide me wich would be the repository that I have to use for this version of CentOS 6? or guide me on the steps to finish the installation i’ll appreciate any help thet you can provide, and again Thank you very much.

    • Hello, thanks for the feedback. Would you be interested in using RADIUSDesk (http://radiusdesk.com) instead as it is a newer version of YFI Hotspot Manager and by the same developer since he has stopped support for YFI Hotspot Manager. If you are interested, you can even use my Installer project to setup RADIUSDesk here: http://muffycompo.github.io/radiusdesk-installer/

      • NetBrowser

        If this is what you recommend, sure I will…

      • NetBrowser

        I’m getting this error message… any idea???

        • You have a typo in your command: it should be “git clone https://github.com/muffycompo/radiusdesk-installer

          • NetBrowser

            I am still having this issue, i’ve tryed several times and type directly the command, just copy paste also and check for errors and i keep getting the same message.

            • NetBrowser

              I am getting this error message, please help me don’t know what to do in this case…

          • NetBrowser

            I’m stuck in this, I don’t know how to ork around this issue, please help.

      • NetBrowser

        Hello Mfawa, Thanks for your valuable help, finally I got it installed, it seems to be that in my first attempt of installing YFI hostspot manager i have created some things that conflicts with Ansible installation package, I’ve just went back to a clean CentOS 6.7 installation from scratch and everything have installed flawless, so again Thanks for your help. I really appreciate it n ow i’ll be focus in setting up the captive portal, any suggestion will be very usefull thanks in advance.

  • NetBrowser

    Hello Mfawa Alfred Onen, I was trying your RADIUSDesk installer project but I get stuck in one error, I’ve been trying several ways to workarround this issue but I have no success, please help me I will appreciate your help. Thanks for your time.

    • I have been trying to replicate your issue but can not. Can you describe your current setup?

      • NetBrowser

        Thank you very much Mfawa, I was just wondering if I can finish this installation, thanks for taking your time.

        It is a Fresh Installation of CentOS 6.7 environment following you YFI Hotspot Manager Instructions until I get the first error and start to install RADIUSDesk for your advise, it was with python 2.6, when I have this error, I try to upgrade python to 2.7 because your guide say it is a requirement but still the same, then I’ve search for the error in google and found something that the type of validation on certificates changed and it was solved in the 2.7.9 version so I try to upgrade to this version and still I am having this issue, This error message says that you can workarround this error by using “validate_certs=False”, even knowing that it can be a security risk I was trying to know how or where can I use this to test if it works but I don’t know where, how or what file do I have to modify to not validate certs.

        [root@localhost ~]# python -V
        Python 2.7.9

        # Dont know if this is OK

        [root@localhost ~]# echo $PATH
        /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

        [root@localhost ~]# which python
        /usr/local/bin/python
        [root@localhost ~]#

        • You might have to modify the installer files and add that line. To make the modifications, do the following:

          cd roles/radiusdesk/tasks/
          nano Nginx_RedHat.yml

          find this line: Downloading ExtJS 6 sources from Subversion (RHEL/CentOS 6.x/7.x)

          Change:

          get_url:
          url={{ extjs_src_url }}
          dest=”{{ temp_src_dir }}/ext-6-sencha_cmd.tar.gz”

          To:

          get_url:
          url={{ extjs_src_url }}
          dest=”{{ temp_src_dir }}/ext-6-sencha_cmd.tar.gz”
          validate_certs=False

          Also, note the indentation as this is a YAML file. Now run the installer again and hopefully you should be able to bypass the error.

          We can take this private and see the possibility of providing remote access so that I can help. muffycompoqm[at]gmail[dot]com

          • NetBrowser

            Thank you I have bypass the error at least 🙂
            Now I’m getting this error…

            TASK: [radiusdesk | Changing MySQL Root password (RHEL/CentOS 6.x/7.x)] *******
            failed: [localhost] => (item=127.0.0.1) => {“failed”: true, “item”: “127.0.0.1”}
            msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
            failed: [localhost] => (item=localhost) => {“failed”: true, “item”: “localhost”}
            msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
            FATAL: all hosts have already failed — aborting

            I had setup a username in MySql in a previous installation So I go to the ile my.cnf.j2 and modify the line for the Password for the one that I’ve setup to the root user, still getting the same error, any suggestion? if you wish we can go private as you suggest. thanks in advance.

  • Longji Vwamhi

    I just installed yfi manager on my windows using virtual box, i I’ve managed to get all the connections working, I was able to login with dvdwalt@ri, but I am having problems logging into the admin interface using root and admin.
    When type in the ipaddress to take me to the web application, it turns up blank, I need help please

    • Hello @longjivwamhi:disqus, can you check Apache’s log file? Let us know what it says anytime you try to login.

  • Longji Vwamhi

    I got different errors, but this is on of them “Script not found or unable to stat: usr/lib/cgi-bin/bbs”

    • Hmm…I haven’t setup YFI manager for a very long time now but I can recommend RADIUSDesk (http://radiusdesk.com). It is the latest version of YFI Hotspot Manager and it has evolved quite nicely into a Production usable software. Give it a go and let me know what you think. I have an installer that helps you set it up http://muffycompo.github.io/radiusdesk-installer

      • Longji Vwamhi

        OK I’ll try it, but is there an installer for Windows? Can it run on Ubuntu Debian?

      • Longji Vwamhi

        Thank you for your help, I’ve installed Radiu desk using virtual box, I’ve set it up, I am at the login page, please how do I access the admin page so I can create users and issue vouchers

  • Madhav

    Hello, free Radius server returns wrong password, even though password exists in the database

  • Madhav

    I used Radius server says incorrect password, though password exists in the database

    • Hello @disqus_aVtcf5QFoF:disqus I haven’t setup YFI Hotspot Manager in a while but I will recommend you checkout RADIUSDesk which is the newer version of YFI Hotspot Manager from the same developer. http://radiusdesk.com

  • Zay Yar Phyo

    I have some error when I almost finish, I need your help Sir