<font color="#333333"><font size="2"><font face="tahoma,sans-serif">What I meant on the second part is that i am using localhost on clients.conf, so now when i am just checking session with sql simul_count_query, and as soon as the request is received by server it says the user is already logged in, even is is not logged in:</font></font></font><div>
<font class="Apple-style-span" color="#333333" face="tahoma, sans-serif"><br></font></div><div><font color="#333333"><font size="2"><font face="tahoma,sans-serif"><div>checkrad: No NAS type, or type "other" not checking</div>
<div>rlm_sql (sql): Released sql socket id: 1</div><div>++[sql] returns ok</div><div> expand: good -> good</div><div>Multiple logins (max 1) [MPP attempt]: [C8P7G6/C8P7G6] (from client localhost port 7 cli 192.168.0.7) good</div>
<div>Using Post-Auth-Type Reject</div><div># Executing group from file /usr/local/etc/raddb/sites-enabled/default</div><div>+- entering group REJECT {...}</div><div><br></div></font></font></font><br><div class="gmail_quote">
On Mon, May 9, 2011 at 1:23 AM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, May 9, 2011 at 5:38 AM, Franz <<a href="mailto:flamana@gmail.com">flamana@gmail.com</a>> wrote:<br>
> Hi,<br>
> I am trying to prevent simultaneous logins on my freeradius server, I need<br>
> to do it with MYSQL, I have enabled simul_count query, and enabled sql for<br>
> session and accounting.<br>
<br>
</div>Seems reasonable<br>
<div class="im"><br>
> Now, the tricky part is that my server is also my<br>
> firewall and all requests are comming to the same nick which is listed on my<br>
> clients.conf file, the nas type is other and therefore the check is ignored.<br>
> When I setup as type cisco it get no response from SNMP session, and the<br>
> wiki suggest that SNMP is not working with version 2.1.10 unless some<br>
> modification is done.<br>
<br>
</div>I have no idea what you're talking about.<br>
<br>
You can have sql to manage accounting and session (using the<br>
acccounting data), which should be independent of NAS type, without<br>
the need for SNMP or any external command/utility. Look at<br>
simul_count_query and simul_verify_query. Sometimes it's easier to:<br>
- uncomment simul_count_query<br>
- adjust it according your needs (for example, we use acctstoptime to<br>
store when an accounting packet arrives, including acct-start and<br>
acct-interim, so in our case we can't use "AND acctstoptime IS NULL"<br>
part).<br>
- comment-out simul_verify_query<br>
<font color="#888888"><br>
--<br>
Fajar<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></blockquote></div><br></div>