Re: problem with initial setup

2013-09-09 Thread Suman Dash
Received -bash: /usr/bin/radtest: No such file or directory It means radtest command was not found. On Mon, Sep 9, 2013 at 10:22 PM, Swenson, Chris cswen...@curry.edu wrote: Thanks for the replies: Ok, uninstalled #1 and updated to freeradius2 radiusd started without a hitch with

Re: FreeRADIUS Hotspot

2012-01-02 Thread Suman Dash
On Mon, Jan 2, 2012 at 2:39 PM, hemant hem...@scopesky.com wrote: Hello Guys, I have Installed Freeradius2 with MYSQL and WEBMIN as DaloRadius. I want to setup the FreeRADIUS for the Login Access To the Mikrotik Routers. I am also Setting up the FreeRADIUS for the HOTSPOT

Re: FreeRADIUS Hotspot

2012-01-02 Thread Suman Dash
Create Firewall Policy Between which will block all traffic from Internet Subnet to Mikrotik Subnet ! On Mon, Jan 2, 2012 at 4:00 PM, hemant hem...@scopesky.com wrote: But On this single Mikrotik Router, I am Giving access to internet for the HotSpot User, And also Creating users for the My

Re: Radius with Java

2011-12-20 Thread Suman Dash
Have you looked Jradius which is Radius Plugin for Java ? On Wed, Dec 21, 2011 at 1:01 AM, Jeisson Fabian Perez Rodriguez jeissonfabian...@gmail.com wrote: Hi, again, I've been trying to connect FreeRadius with an application on Java, but I don't find the correct way. Could somebody tell

Re: Failed to run Freeradius on CentoS

2011-11-25 Thread Suman Dash
Freeradius is already running or there is someone using the same port. Check the error message as it carries the solution. Regards Suman On Fri, Nov 25, 2011 at 3:12 PM, Bhanu Vegesna bhanu.vege...@gmail.comwrote: listen { type = auth ipaddr = 127.0.0.0 port = 1812

Re: how to solve below issues

2011-11-10 Thread Suman Dash
symlink it to the actual file . On Thu, Nov 10, 2011 at 2:11 PM, Harshavardhan chillakuru harshac...@gmail.com wrote: 1. when i run the radius for debugging mode using *radusd -X*command i got error like *bash: radiusd: command not found* 2. ./radiusd: error while loading shared

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
use Max-Session-Time to create packages such as 1 Month 100 Hrs Browsing etc . Feel to send any other query if you are stuck . Regards Suman On Sun, Oct 30, 2011 at 6:28 PM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Oct 30, 2011 at 7:39 PM, JennyBlunt jennyshoeh...@me.com wrote: How do I

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
? Will you reject the user or accept the user ? Anyway, to answer your questions, Session-Timeout of 43200 is what needed to give a continuous Session session of 43200. But again when the user disconnects and re-logins , he/she will again get 43200 of time during re-login. Regards Suman On Sun, Oct 30

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
and connects again So i think the question asked here is incomplete. Regards Suman On Sun, Oct 30, 2011 at 7:07 PM, Alan DeKok al...@deployingradius.comwrote: JennyBlunt wrote: That's the one we're using. What I don't understand is that if we set up a group with max-all-session = 43200

Re: Fixed Duration Weekly, Monthly and Daily Accounts

2011-10-30 Thread Suman Dash
You have the exact solution given by Fajar. See his SQL query and modify as required. Regards Suman On Sun, Oct 30, 2011 at 10:26 PM, JennyBlunt jennyshoeh...@me.com wrote: Sorry if I wasn't clear. I want to be able to generate a monthly voucher - 30 days access from the exact time of first

Re: Quota based on time with squid

2011-10-29 Thread Suman Dash
You have not instantiated the counters in Post-Auth . Read more about counter and how it works and how you can enable the same. Regards Suman On Sat, Oct 29, 2011 at 4:40 PM, senthil kumar senthilkumaar2...@gmail.comwrote: Hello Team The user can authenticate and browse at any time. May i

Re: Custom MySQL Queries

2011-10-27 Thread Suman Dash
If you would like to disable a user why not to use the Auth-Type := Reject which is natively available in freeradius. I don't think it is necessary to re-invent the wheel. Regards Suman On Thu, Oct 27, 2011 at 11:07 PM, JennyBlunt jennyshoeh...@me.com wrote: Hello What's the best approach

Re: Problem with F5 BigIP accouting : hexadecimal attribute

2011-10-17 Thread Suman Dash
NAS-IP-Address = *[IP address unknown, not corresponding to NAS interfaces] * Did you added your F5 IP address to NAS Table ? Regards Suman * On Mon, Oct 17, 2011 at 4:56 PM, Vincent, Fabien fabien.vinc...@coreye.frwrote: Dear all, ** ** I’m using Radius for authenticating admin users

Re: Dynamic Attributes Based on NAS Type !

2011-10-09 Thread Suman Dash
Last night i also dreamt of sending all VSA to NAS but i was not sure what will be the outcome so thanks for the info. I have never worked with policies but it seems to be important so i will try to learn the same. Regards Suman On Sun, Oct 9, 2011 at 2:01 PM, Alan DeKok al

Re: AW: Dynamic Attributes Based on NAS Type !

2011-10-09 Thread Suman Dash
to those of the NAS. Regards Suman On Sun, Oct 9, 2011 at 4:32 PM, Alexandre Chapellon a.chapel...@horoa.netwrote: I personnally use post-auth sections of each of my virtual server to send diffrenet attributes. I find It to be very clean way to achieve this. regards Le 08/10/2011 20:02

Dynamic Attributes Based on NAS Type !

2011-10-08 Thread Suman Dash
for me. Cheers Suman - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Dynamic Attributes Based on NAS Type !

2011-10-08 Thread Suman Dash
specified reply attributes will go nuts . So any idea if there are any unique identifiers ? Regards Suman On Sat, Oct 8, 2011 at 9:40 PM, Stefan A. a.freerad...@premit.de wrote: ** ** Suman, As you did not say anything about the exact attributes, you will send to the NAC, here is how we do

Re: Enforcing Login-Time on NAS

2011-09-27 Thread Suman Dash
Use Unlang or Similar Scripts : If Nas = 1 then update Login Time = If Nas = 2 then update Login Time = Use this in PreAuth (I am not sure) Section and give it a try . Regards Suman On Tue, Sep 27, 2011 at 5:42 PM, Shiv shivkumar.j...@gmail.com wrote: I know that Login-Time can

Re: Enforcing Login-Time on NAS

2011-09-27 Thread Suman Dash
Glad to be of some help !! Cheers On Tue, Sep 27, 2011 at 8:53 PM, shiv shivkumar.j...@gmail.com wrote: Update - I've managed to get it working against a custom table in the mysql radius database. The sites-enabled/default authorize section is as below:- update request {

Re: Dialup Admin

2011-09-19 Thread Suman Dash
Configure dialupadmin to use the correct mysql username / password. freeradius is working well.. On Mon, Sep 19, 2011 at 8:44 AM, shawky skaff shawkyskaff...@hotmail.comwrote: Hi, I am having issues viewing content on the dialup screen, I can see the html links, when I select one of them

Re: anybody out there?

2011-09-15 Thread Suman Dash
ACK ! On Thu, Sep 15, 2011 at 8:28 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: poke poke Arran Cudbard-Bell a.cudba...@freeradius.org Betelwiki, Betelwiki, Betelwiki http://wiki.freeradius.org/ ! - List info/subscribe/unsubscribe? See

Re: Test

2011-09-15 Thread Suman Dash
Its UP !! On Fri, Sep 16, 2011 at 12:24 AM, Christ Schlacta li...@aarcane.org wrote: List is down. On 9/15/2011 07:49, Alan DeKok wrote: Is the list down, or are people quiet? - List info/subscribe/unsubscribe? See http://www.freeradius.org/** list/users.html

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
=4801856i=9, check_item=0, counter=68882 ** ** Any idea ? ** ** Thanks for your help ** ** Nicolas ** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4801856i=10] *Envoyé :* mardi 13 septembre 2011 19:44 *À

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
the good value. If I put value bigger than 2^32, check_item is always equal to 0. ** ** Any idea ? ** ** Thanks ** ** Nicolas ** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4802561i=1] *Envoyé :* mercredi 14

Re: Problem with rml_sqlcounter with GigaByte datavolume

2011-09-14 Thread Suman Dash
** ** *De :* Suman Dash [via FreeRadius] [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=4802672i=0] *Envoyé :* mercredi 14 septembre 2011 14:53 *À :* nfourel *Objet :* Re: Problem with rml_sqlcounter with GigaByte datavolume ** ** I have a working setup which takes Check-Item

Re: WiSPr

2011-09-14 Thread Suman Dash
Bandwidth Limit greatly depends on NAS. If yous NAS supports it then it can be done ! On Wed, Sep 14, 2011 at 7:29 PM, Luke Hammond l...@dezignbrasil.com wrote: Hey al, iread that i can rate limit on a per user basis with the WISPr-Bandwidth-Max-Down and Up.. correct? Can someone please

Re: WiSPr

2011-09-14 Thread Suman Dash
to control traffic. Once you get the attributes, use the same as Reply-Items and it will work like a charm. Read the basic documentation of RADIUS to understand how it works. There is already a lot of discussion regarding *lazy peoples* Regards Suman On Wed, Sep 14, 2011 at 9:18 PM, Luke Hammond l

Re: WiSPr

2011-09-14 Thread Suman Dash
WISPr-Bandwidth-Max-Down / UP is indeed the Attribute which you are looking. But you need search the mailing lists and find out how to add those into radreply/radgroup reply. Hint : Read http://wiki.freeradius.org/Rlm_sql Regards Suman On Wed, Sep 14, 2011 at 9:34 PM, Suman Dash sumand

Re: How to connect FreeRADIUS uding JAVA

2011-08-26 Thread Suman Dash
Look Into Jradius On Fri, Aug 26, 2011 at 1:02 PM, Rajkumar Balaji rajkumar.balaj...@gmail.com wrote: Hi, If anyone knows how to connect FreeRADIUS using JAVA Please help me to solve this Thanks Regards Rajkumar - List info/subscribe/unsubscribe? See

Re: Unlang Condition Wrong Value !

2011-08-09 Thread Suman Dash
-Monthly-Traffic allocated in multiple sessions. I hope someone can make a hybrid of this counter. Regards Suman On Mon, Aug 8, 2011 at 8:04 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 16:29, Suman Dash wrote: Just another small question before i jump into testing

Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
I am trying to replace sqlcounter with Unland expression in Post Auth Section. The values are successfully called but while storing in Tmp-Interger those are stripped. Below are the logs . As you can see from the logs that Mysql returns a value of 20989570594 But it's stored as 3557549056 for

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
:      integer   32 bit unsigned value, most significant octet first. FreeRADIUS is just a RADIUS server, and the temporary integer attributes are just RADIUS attributes. -Arran On 8 Aug 2011, at 09:11, Suman Dash wrote: I am trying to replace sqlcounter with Unland expression in Post Auth

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 09:32, Suman Dash wrote: So it is not possible to store values more than 32 bit in Tmp-Integer. How about direct sql statements in Unlang not involving the Tmp-Integer. It is also not working in my scenario. You mean

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
Enforced, Bandwidth Limited Mikrotik-Rate-Limit := 128K/256K } } } Regards Suman On Mon, Aug 8, 2011 at 2:39 PM, Suman Dash

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
, there are a lot of solutions but no examples or a working config which can be tweaked. Regards Suman On Mon, Aug 8, 2011 at 3:02 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 11:09, Suman Dash wrote: What i mean to say is that i am not using an integer to store

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
So what you say is that i do all comparision within sql sub-query and whatever output i need to define if less than 32bit store it into an Integer and do Unlang control / reply updates ? Seems quite right .. Will try and get back with results. Thanks for the tip.. Regards Suman On Mon, Aug 8

Re: Unlang Condition Wrong Value !

2011-08-08 Thread Suman Dash
it is impossible to store it in Tmp-Integer . So ultimately the Integer passed by xlat and the stored in Tmp-Integer will differ. Regards Suman Dash On Mon, Aug 8, 2011 at 7:45 PM, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 8 Aug 2011, at 16:11, Suman Dash wrote: So what you say

Re: Opposite of Expiraton attribute?

2011-06-16 Thread Suman Dash
Use First-Login , It may solve your purpose ! On 6/17/2011 10:53 AM, Matthew George wrote: Is there an attribute that is the opposite of expiration? I'm trying to setup accounts to have a specific login time range. For example; Start-Time = 5 June 2011 00:00:00 Expiration == 5 June 2011

Re: Opposite of Expiraton attribute?

2011-06-16 Thread Suman Dash
Or Else ! Expiration = First-Login + N (Days , Hours , Minutes ). This can be done by any script or Web Frontend. It will allow you to define an Expiration of N from the date of first login. Regards On 6/17/2011 10:53 AM, Matthew George wrote: Is there an attribute that is the opposite of

Re:

2011-04-25 Thread Suman Dash
Please read the documentation on how to setup freeradius. From your post it is unclear as what type of auth you need. There are official docs at freeradius.org which you might want to see. On 4/26/2011 10:16 AM, arpitha arpitha wrote: hi, 'm very new to freeradius, i want to setup radius

Re: Please help me with sqlcounter

2011-03-21 Thread Suman Dash
as it will enable the user to do a custom time based session accounting instead of fixed 1 ~ 30 date accounting. Best Regards Suman On 3/21/2011 11:54 AM, frankfang wrote: I want to use sqlcounter to control the user's traffic usage, and I have these needs: 1. I have read http://wiki.freeradius.org

Re: SQL Counter Escape String !

2011-03-16 Thread Suman Dash
Hi Alan, Did you managed to look into the issue ? or maybe any hints on how to use DATETIME in Expiration instead of String ? Regads Suman On 3/15/2011 4:04 PM, Suman Dash wrote: Dear Alan, I have not removed any debug messages. I will try to put everything once again . I was not aware

Re: SQL Counter Escape String !

2011-03-16 Thread Suman Dash
Much thanks Alan, That was some really good advice on how to make the thing work. So now i have to write unlang statement in preprocess so that it directly gives the Session-Timeout . Please correct me if i am wrong. Thanks Again On 3/16/2011 4:09 PM, Alan DeKok wrote: Suman Dash wrote

SQL Unlang !

2011-03-16 Thread Suman Dash
= {some sql query} result2 = {some sql query} update control Session-Timeout := Result1 - Result 2 Thanks in advance Suman On 3/16/2011 4:09 PM, Alan DeKok wrote: Suman Dash wrote: Hi Alan, Did you managed to look into the issue ? No. or maybe any hints on how to use DATETIME

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
:%1298917800i:%1298917800s')); - SELECT SUM(acctsessiontime) FROM tbl_acct where username = 'suman' AND acctstarttime BETWEEN (SELECT STR_TO_DATE((SELECT value FROM tbl_check

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
to the proper documentation or a small example on this issue. Any help in this regard will be much appreciated. Best Regards Suman Dash On 3/15/2011 12:02 PM, Suman Dash wrote: New Modified Query ! SELECT SUM(acctsessiontime) FROM tbl_acct where \ username = '%{%k

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
mysql select * from tbl_check; ++--+-++--+ | id | username | attribute | op | value| ++--+-++--+ | 17 | suman| Crypt-Password | := | TeatgXaDQelbQ

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
from host 122.175.85.117 port 21658, id=10, length=59 User-Name = suman User-Password = duman12 Calling-Station-Id = 001122334455 +- entering group authorize {...} ++[preprocess] returns ok ++[chap] returns noop ++[mschap] returns noop [suffix] No '@' in User-Name = suman

Re: SQL Counter Escape String !

2011-03-15 Thread Suman Dash
}' AND attribute = 'Expiration'), '%d %M %Y %H:%i:%s')) - SELECT SUM(acctsessiontime) FROM radacct where username = 'suman' AND acctstarttime BETWEEN (SELECT STR_TO_DATE((SELECT value FROM radcheck WHERE username = 'suman' AND attribute = 'Activation

Re: SQL Counter Escape String !

2011-03-15 Thread suman
understanding of the SQLCounter is correct or is it the other way around. Best Regards Suman - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

SQL Counter Logic !

2011-03-15 Thread suman
understanding of the SQLCounter is correct or is it the other way around. Best Regards Suman - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Calling-Station-Id problem

2011-03-14 Thread Suman Dash
You need to check the Calling-Station-Id format sent by the NAS. Start radius in debug more and send a auth request, the debug will show whether your NAS sends Calling-Station-Id or not . If it sends the Calling-Station-Id you can clearly see the format of the same. Best Regads Suman Dash

Re: Concurrent Sessions per user

2011-03-14 Thread Suman Dash
Yes .. Simultaneous-Use Attribute On Mon, Mar 14, 2011 at 10:38 PM, Moayad Mohammad mmoham...@thebluezone.com wrote: Dear, Is there is a way to control the concurrent sessions per user? Regards, - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List

Re: Concurrent Sessions per user

2011-03-14 Thread Suman Dash
Please anyone advice me the way to escap run-time variables in freeradius. I am using STR_TO_DATE and freeradius run-time variable is over-riding the mysql time variables SELECT STR_TO_DATE('14 Mar 2012 21:37:23','%d %M %Y %H:%i:%s') gives 2012-03-14 21:37:23 in MySQL Whereas in freeradius

String Escape in SQL Counter !

2011-03-14 Thread Suman Dash
-of-a-date-attribute-tt2775323.html#a2775328 But no luck .. My Entire Counter is : query = SELECT SUM(acctsessiontime) FROM tbl_acct where \ username = 'suman' AND acctstarttime BETWEEN \ (SELECT STR_TO_DATE((SELECT value FROM tbl_check \ WHERE username

SQL Counter Escape String !

2011-03-14 Thread Suman Dash
-of-a-date-attribute-tt2775323.html#a2775328 But no luck .. My Entire Counter is : query = SELECT SUM(acctsessiontime) FROM tbl_acct where \ username = 'suman' AND acctstarttime BETWEEN \ (SELECT STR_TO_DATE((SELECT value FROM tbl_check \ WHERE username

Re: Encountering error when using radius -X

2010-08-18 Thread Suman Dash
path issue. create symlink to the particular files. ln -s /usr/local/lib/* libfreeradius-radius-2.1.0.so /usr/lib there may be some more missing files whose symlink you need to do . Let me know if it works. * On Wed, Aug 18, 2010 at 5:53 PM, Fabien COMBERNOUS fcombern...@kezia.comwrote:

Re: Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-14 Thread Suman Dash
No Worries .. I managed to get past the error. Actually, i was using a same username that was in my /etc/shadow . I renamed the user and it worked. Cheers On Sun, Mar 14, 2010 at 7:04 PM, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote: Hi, Hi, I am unable to locally authenticate a user from

Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-13 Thread Suman Dash
Hi, I am unable to locally authenticate a user from users file. Below is the log : Server : rad_recv: Access-Request packet from host 127.0.0.1 port 37881, id=29, length=57 User-Name = suman User-Password = hello NAS-IP-Address = 20x.20x.20x.20x NAS-Port = 0

Re: Access-Reject packet from host 127.0.0.1 port 1812, id=29, length=34

2010-03-13 Thread Suman Dash
No, The Password is in Cleartext. How do i disable / Enable the CRYPT password ? On Sun, Mar 14, 2010 at 1:45 AM, YvesDM ydm...@gmail.com wrote: On Sat, Mar 13, 2010 at 8:14 PM, Suman Dash sumand...@gmail.com wrote: +- entering group PAP {...} [pap] login attempt with password hello [pap