Community discussions

MikroTik App
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Daloradius server... Need help and help...

Thu Jun 23, 2011 12:54 pm

Good day...

Dear buddy..
i was follow the guide from the following page with the command, but when testing, the Radius server is not responding.

For the setup on the Ubuntu 11.04 server..
-sudo tasksel
-sudo apt-get update
-sudo apt-get upgrade
-sudo apt-get install mysql-server
-sudo apt-get install php5-gd php-pear php-db
-sudo apt-get install freeradius freeradius-mysql
-sudo apt-get install phpmyadmin

On the DaloRadius Setup
-wget http://sourceforge.net/projects/dalorad ... 9-8.tar.gz
-tar -zxvf daloradius-0.9-8.tar.gz
-mv daloradius-0.9-8 daloradius
-sudo cp daloradius/ /var/www -R
-sudo chown www-data:www-data /var/www/daloradius -R
-sudo chmod 644 /var/www/daloradius/library/daloradius.conf.php

Database setup:
-cd /var/www/daloradius/contrib/db/
-mysql -u root -p
Enter 'mySqlPassword'
mysql> CREATE DATABASE radius;
mysql> quit
-mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql
Database connection setup:
-cd /var/www/daloradius/library/
-sudo nano -w daloradius.conf.php
$configValues['FREERADIUS_VERSION'] = '2';
$configValues['CONFIG_DB_PASS'] = 'mySqlPassword';
$configValues['CONFIG_DB_TBL_RADUSERGROUP'] = 'radusergroup';
Installation completed and login page to create user:
-http://your ip address/daloradius

username: administrator
password: radius

When test with the Mikrotik, it shown not respond from the server..
the NAS setting is matched, refer to the log file from the Daloradius, it shown "Error: Ignoring request to authentication address"
could it be due to the setup error or? as refer to the guidance from the web, the setup everything is run well, using the freeradius -x, it shown..
~Listening on authentication interface eth0 *port 1812
~Listening on accounting *port 1813
~Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
~Ready to process request.

what could be wrong and which part should i check on it?

thanks and appreciate it..
Last edited by angboontiong on Thu Jun 23, 2011 3:18 pm, edited 1 time in total.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Daloradius server... Need help and help...

Thu Jun 23, 2011 2:32 pm

I think DaloRADIUS is a front end for FreeRADIUS, or at least very close.

It sounds like you do not have the appropriate client entry for that ip (the router with the radius client, like hotspot, wireless, etc) in your RADIUS clients.conf file. That is the equivalent of the "Routers" tab in User Manager.

Insure you increase your radius timeout value temporarily.
/radius
print detail
set 0 timeout=2s
Do not increase the timeout value if you use User Manager. It does not have a Access-Reject delay.
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 3:31 am

I think DaloRADIUS is a front end for FreeRADIUS, or at least very close.

It sounds like you do not have the appropriate client entry for that ip (the router with the radius client, like hotspot, wireless, etc) in your RADIUS clients.conf file. That is the equivalent of the "Routers" tab in User Manager.

Insure you increase your radius timeout value temporarily.
/radius
print detail
set 0 timeout=2s
Do not increase the timeout value if you use User Manager. It does not have a Access-Reject delay.
Hi dude...would you mind to share more how to setup thefree radius server?
I had try few days already and install uninstall, but still can're make it work...
And google a lot of but cannfind out the solution...

Appreciate it...
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 12:43 pm

Did you add a new entry to you clients.conf file for your router? My clients.conf file is in the /etc/raddb directory. You need to add an entry like this:
client xx.xx.xx.xx {
 secret     = mysecret
}
Replace xx.xx.xx.xx with the ip of your router and secret with your radius secret for that router.

Have you done that?
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 3:31 pm

Did you add a new entry to you clients.conf file for your router? My clients.conf file is in the /etc/raddb directory. You need to add an entry like this:
client xx.xx.xx.xx {
 secret     = mysecret
}
Replace xx.xx.xx.xx with the ip of your router and secret with your radius secret for that router.

Have you done that?
hi dude..
i manage to linked it with what you guide.

but the allowed user is the user i store in the user file which it's not from the sql (user created by the daloradius interface).

when i uncomment sql and comment on files inside the Radiusd.conf.
this to let the freeradius read the database from sql instead of user file.

and after that, restart the freeradius (freeradius -X)
i getting the message like this..

/etc/freeradius/sql.conf[22]: Instantiation failed for module "sql"
/etc/freeradius/sites-enabled/default[159]: Failed to load module "sql".
/etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.

i faced this issue few days, but still not able to solve it.
possible i can have you radiusd.conf, clients.conf, sql.conf as reference?

i going to bang my head now... appreciate for you sharing and help...
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 3:39 pm

There is a lot of modifications you can make to the basic FreeRADIUS package, and I am certain DaloRADIUS has included their own stuff.

Considering the initial error is in the "sql.conf" file, you might insure the user/password for your MySQL radius database in that file is correct. From a shell prompt on the RADIUS/MySQL server
mysql -uuser -ppassword radius
Insure this user and password is the same in the FreeRADIUS sql.conf file.
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 3:52 pm

There is a lot of modifications you can make to the basic FreeRADIUS package, and I am certain DaloRADIUS has included their own stuff.

Considering the initial error is in the "sql.conf" file, you might insure the user/password for your MySQL radius database in that file is correct. From a shell prompt on the RADIUS/MySQL server
mysql -uuser -ppassword radius
Insure this user and password is the same in the FreeRADIUS sql.conf file.
hi dude..
may i post a bit more information, as refer to it, it able to connect to the DB but some how, there is some error.. i google + ing now ....

rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to root@127.0.0.1:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): Processing generate_sql_clients
rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql_mysql: MYSQL check_error: 1054 received
rlm_sql (sql): database query error, SELECT id, nasname, shortname, type, secret, server FROM nas: Unknown column 'server' in 'field list'
rlm_sql (sql): Released sql socket id: 4
Failed to load clients from SQL.
rlm_sql (sql): Closing sqlsocket 4
rlm_sql (sql): Closing sqlsocket 3
rlm_sql (sql): Closing sqlsocket 2
rlm_sql (sql): Closing sqlsocket 1
rlm_sql (sql): Closing sqlsocket 0
/etc/freeradius/sql.conf[22]: Instantiation failed for module "sql"
/etc/freeradius/sites-enabled/default[159]: Failed to load module "sql".
/etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.
root@MykrisRadiusServer:/#


it's headache as very hard to get the information from google + ing..
really really appreciate on your help...
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 4:04 pm

This is the giveaway:
rlm_sql (sql): database query error, SELECT id, nasname, shortname, type, secret, server FROM nas: Unknown column 'server' in 'field list'
According to this error message, there is no field named "server" in the nas table.

From a mysql prompt
describe nas;
That should display all fields and types in table "nas".

Now we are really getting out of the scope of this forum. This is a Mikrotik forum, and this subject has turned into a FreeRADIUS/DaloRADIUS troubleshooting question. It may be best to find a DaloRADIUS forum and ask this question there.
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Daloradius server... Need help and help...

Tue Jun 28, 2011 4:19 pm

This is the giveaway:
rlm_sql (sql): database query error, SELECT id, nasname, shortname, type, secret, server FROM nas: Unknown column 'server' in 'field list'
According to this error message, there is no field named "server" in the nas table.

From a mysql prompt
describe nas;
That should display all fields and types in table "nas".

Now we are really getting out of the scope of this forum. This is a Mikrotik forum, and this subject has turned into a FreeRADIUS/DaloRADIUS troubleshooting question. It may be best to find a DaloRADIUS forum and ask this question there.
hi dude..
agreed with you point, it just, the UserManager still very weak for some environment.

wish, Mikrotik can have little bit time to take care on that as i believe this thing is just peanut for them.. but some how, we need it..

appreciated for you share and assist... thanks
 
User avatar
rahulmkhj
Member Candidate
Member Candidate
Posts: 135
Joined: Wed Mar 09, 2011 10:54 am

Re: Daloradius server... Need help and help...

Thu Jul 05, 2012 7:40 pm

Good day...

Dear buddy..
i was follow the guide from the following page with the command, but when testing, the Radius server is not responding.

For the setup on the Ubuntu 11.04 server..
-sudo tasksel
-sudo apt-get update
-sudo apt-get upgrade
-sudo apt-get install mysql-server
-sudo apt-get install php5-gd php-pear php-db
-sudo apt-get install freeradius freeradius-mysql
-sudo apt-get install phpmyadmin

On the DaloRadius Setup
-wget http://sourceforge.net/projects/dalorad ... 9-8.tar.gz
-tar -zxvf daloradius-0.9-8.tar.gz
-mv daloradius-0.9-8 daloradius
-sudo cp daloradius/ /var/www -R
-sudo chown www-data:www-data /var/www/daloradius -R
-sudo chmod 644 /var/www/daloradius/library/daloradius.conf.php

Database setup:
-cd /var/www/daloradius/contrib/db/
-mysql -u root -p
Enter 'mySqlPassword'
mysql> CREATE DATABASE radius;
mysql> quit
-mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql
Database connection setup:
-cd /var/www/daloradius/library/
-sudo nano -w daloradius.conf.php
$configValues['FREERADIUS_VERSION'] = '2';
$configValues['CONFIG_DB_PASS'] = 'mySqlPassword';
$configValues['CONFIG_DB_TBL_RADUSERGROUP'] = 'radusergroup';
Installation completed and login page to create user:
-http://your ip address/daloradius

username: administrator
password: radius

When test with the Mikrotik, it shown not respond from the server..
the NAS setting is matched, refer to the log file from the Daloradius, it shown "Error: Ignoring request to authentication address"
could it be due to the setup error or? as refer to the guidance from the web, the setup everything is run well, using the freeradius -x, it shown..
~Listening on authentication interface eth0 *port 1812
~Listening on accounting *port 1813
~Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
~Ready to process request.

what could be wrong and which part should i check on it?

thanks and appreciate it..
You may want to try Access Manager. Check this: accessmanager.in. Its free btw..
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Daloradius server... Need help and help...

Mon Jul 09, 2012 7:37 pm

Good day...

Dear buddy..
i was follow the guide from the following page with the command, but when testing, the Radius server is not responding.

For the setup on the Ubuntu 11.04 server..
-sudo tasksel
-sudo apt-get update
-sudo apt-get upgrade
-sudo apt-get install mysql-server
-sudo apt-get install php5-gd php-pear php-db
-sudo apt-get install freeradius freeradius-mysql
-sudo apt-get install phpmyadmin

On the DaloRadius Setup
-wget http://sourceforge.net/projects/dalorad ... 9-8.tar.gz
-tar -zxvf daloradius-0.9-8.tar.gz
-mv daloradius-0.9-8 daloradius
-sudo cp daloradius/ /var/www -R
-sudo chown www-data:www-data /var/www/daloradius -R
-sudo chmod 644 /var/www/daloradius/library/daloradius.conf.php

Database setup:
-cd /var/www/daloradius/contrib/db/
-mysql -u root -p
Enter 'mySqlPassword'
mysql> CREATE DATABASE radius;
mysql> quit
-mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql
Database connection setup:
-cd /var/www/daloradius/library/
-sudo nano -w daloradius.conf.php
$configValues['FREERADIUS_VERSION'] = '2';
$configValues['CONFIG_DB_PASS'] = 'mySqlPassword';
$configValues['CONFIG_DB_TBL_RADUSERGROUP'] = 'radusergroup';
Installation completed and login page to create user:
-http://your ip address/daloradius

username: administrator
password: radius

When test with the Mikrotik, it shown not respond from the server..
the NAS setting is matched, refer to the log file from the Daloradius, it shown "Error: Ignoring request to authentication address"
could it be due to the setup error or? as refer to the guidance from the web, the setup everything is run well, using the freeradius -x, it shown..
~Listening on authentication interface eth0 *port 1812
~Listening on accounting *port 1813
~Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
~Ready to process request.

what could be wrong and which part should i check on it?

thanks and appreciate it..
You may want to try Access Manager. Check this: accessmanager.in. Its free btw..

can u give the link???
 
User avatar
rahulmkhj
Member Candidate
Member Candidate
Posts: 135
Joined: Wed Mar 09, 2011 10:54 am

Re: Daloradius server... Need help and help...

Mon Jul 09, 2012 7:41 pm

I already mentioned the link: http://accessmanager.in .. for online demo check this: http://accessmanager.in/livedemo.php

Hope this helps! :)

Rahul..
 
kgninfos
Member
Member
Posts: 387
Joined: Thu Jun 21, 2012 7:34 pm
Location: Earth
Contact:

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 11:30 am

Please install freeradius-mysql component
for centos
yum install freeradius-mysql
for ubantu/debian
apt-get freeradius-mysql

your freeradius-mysql is not working so the you are getting sql module error

try
apt-get purge freeradius freeradius-mysql freeradius-common
then
apt-get install freeradius freeradius-mysql freeradius-common

and accessmanager.in is not working as expected instead we are developing owr own Radius manager application on php
beta testing will be available soon
 
User avatar
rahulmkhj
Member Candidate
Member Candidate
Posts: 135
Joined: Wed Mar 09, 2011 10:54 am

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 11:35 am

Please install freeradius-mysql component
for centos
yum install freeradius-mysql
for ubantu/debian
apt-get freeradius-mysql

your freeradius-mysql is not working so the you are getting sql module error

try
apt-get purge freeradius freeradius-mysql freeradius-common
then
apt-get install freeradius freeradius-mysql freeradius-common

and accessmanager.in is not working as expected instead we are developing owr own Radius manager application on php
beta testing will be available soon
Hey!

I hope you don't mind sharing your experience with accessmanager.in

What are the things you're expecting it do, that it doesn't ..?

Thank you,

Rahul..
 
kgninfos
Member
Member
Posts: 387
Joined: Thu Jun 21, 2012 7:34 pm
Location: Earth
Contact:

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 12:01 pm

first thing in accessmanager.in
it does not support CoA
as this is hosted and and firewall is not configured it will not CoA(on the fly plan changing)

like i want to give users 5am to 11pm 512kbps and 11pm to 5am 2Mbps is this possible(i guess no)

no postpaid invoicing
 
User avatar
rahulmkhj
Member Candidate
Member Candidate
Posts: 135
Joined: Wed Mar 09, 2011 10:54 am

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 12:30 pm

first thing in accessmanager.in
it does not support CoA
as this is hosted and and firewall is not configured it will not CoA(on the fly plan changing)

like i want to give users 5am to 11pm 512kbps and 11pm to 5am 2Mbps is this possible(i guess no)

no postpaid invoicing
Aaah.. you're wrong.. its does on the fly plan changing. And for the given scenario you can simply choose "different bandwidth policy for Day/Night" while creating service plan. And this to work, you need to enable "incoming" under radius on your mikrotik box and will require mikrotik to allow packets from Access manager's IP.

And for postpaid invoicing, as of now, it is not there. But, this is already on our to do list.

Thank you,

Rahul..
 
kgninfos
Member
Member
Posts: 387
Joined: Thu Jun 21, 2012 7:34 pm
Location: Earth
Contact:

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 12:39 pm

will it work behind a firewall(the coa)
and also for the coa to work we have to save the access point userid and pass in your database and it is not safe
 
User avatar
rahulmkhj
Member Candidate
Member Candidate
Posts: 135
Joined: Wed Mar 09, 2011 10:54 am

Re: Daloradius server... Need help and help...

Tue Jul 10, 2012 1:31 pm

will it work behind a firewall(the coa)
and also for the coa to work we have to save the access point userid and pass in your database and it is not safe
For CoA - Yes, as long as packets on port 3799 from Access Manager to your Mikrotik are allowed, it'll work.
And you don't need to save your AP's user/pass into our database. You just need to your Mikrotik's WAN (Public) IP, Shared Secret & NAS ID. WAN IP & Secret are required for Radius communication, for NAS ID, we use this for other purposes i.e. serving customized login page.
 
rakija
just joined
Posts: 9
Joined: Fri Jan 11, 2013 9:23 pm

Re: Daloradius server... Need help and help...

Fri Jan 11, 2013 9:29 pm

Hello,
I installed wit this tutorial on virtualbox Ubuntu servere 12.10 and when i logged at
http://ip/daloradius
with "administrator" and "radius"
i got mysql error:
Database error
Error Message: DB Error: no such table
Debug info: SELECT id, username FROM operators WHERE username = 'Administrador' AND password = 'radius' [nativecode=1146 ** Table 'radius.operators' doesn't exist]
to repair this you must:
# cd /var/www/daloradius/contrib/db/
# mysql -u(your username) -p(your password) radius(or the name of database you created) <mysql-daloradius.sql
it helped me :)

Who is online

Users browsing this forum: No registered users and 5 guests