Re: Simultaneous-Use with EAP
Alan DeKok via Freeradius-Users <[email protected]> Wed, 18 Mar 2026 06:34:21 -0400
| Newsgroups | gmane.comp.freeradius.user |
|---|---|
| Message-ID | <[email protected]> |
On Mar 18, 2026, at 5:51 AM, Matthew <[email protected]> wrote: > I set up the sql module, and made sure "sql" was listed under the > "authorize" and "session" sections of by site's (default) configuration. I > also enabled accounting and everything seemed to be working. I added users > to the radcheck table with cleartext passwords. I added a Simultaneous-Use > line for my user, but it always seemed to be ignored. Simultaneous-Use depends on a number of factors. It's not possible to simply set a flag and have it work. The only way to validate it is to test it. > After a lot of searching, I've discovered that my 'default' config was > being used for the 'outer' authentication (eap), and then the > "inner-tunnel" config was being used for actual authentication. Yes, that's how EAP works. > This > already has the sql option under "authorize", but not in "session". Adding > "sql" to the "session" section of > /etc/freeradius/sites-enabled/inner-tunnel is what finally allowed > Simultaneous-Use checking. That's good. But again, this particular configuration depends on a number of factors, and might not work for everyone. For example, the issue of "inner" username versus "outer" username is complex, and can change from organization to organization. All we can do is document the choices, and hope for the best. The default configuration for the "inner-tunnel" virtual server also has a "session" section which includes a reference to "sql". So this is at least somewhat documented. > I'm posting this because this didn't seem to be documented (here: > https://www.freeradius.org/documentation/freeradius-server/3.2.9/howto/simultaneous_use.html). > It would have been helpful to have a hint about the inner-tunnel > configuration when using eap authentication. I'll add a note. > I'm not looking for more help at the moment, other than that I am wondering > if there is a way to constrain simultaneous connections for all users at > once. The Simultaneous-Use query doesn't look for a DEFAULT line in the > mysql database. Do you want to limit the total number of connections over all users? That's not really a Simultaneous-Use thing. The Simultaneous-Use query is design to limit connections for one user. If you want to limit the total number of users, just do a SELECT / count over all active sessions in the radacct database. if ("%{sql:SELECT ... count ..}" > 4) { reject } Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEIUl02elqcIsf1zM0v3SJ0h7dTTMFAmm6f60ACgkQv3SJ0h7d TTMPvw//Q1+mcEFjQBVdU3dQ3v9zjH+2+5drtPxDLsYSg5aeDDJlcOb3C34kYLZc w7S0hgMNMR7xIw3M2WdddoY3OczMBXmeVZj5c4BDKtZBNQSYXNDoMO7mYDYejgwc ubIfg65tZayJKcnWj/L3mmmI1uUpgar9FHjc8GZOASjA0AZ76VAPL21Nz7k8/99E k+kKiEkt178EO3f9wp68r/N4SNMKqhP/gvNm3XvbBfknDaBZa5Md1XrjFS15XDOM 7mJ+LYfs9V8zl9X/M+0RqR/5K6QgkEOveDHpX6rU/xl2//YQNG0/xS6PA9bAjGe+ RE8I+B5UrAL3F12PDsnGuNw3XbZoUcQOJYiLJqY+VJ7YL8bdgbX12NmVxSR9mLNp QywhFJeHUeZKi0vftbPRqvmXN2XnUl8Vp+KnGQOyqIfOf2YyiL+JFentCZzK/Tng crmPNBeyzc7NWk7ma62Le/YsQcQOYxLbD0xyrKb6v8CAFyNBg+A1AxNP7vlRFrsD yxX2cTk+S6rqNAUd4JPudl1vPm45nEbmrhYvSWtSpCF1iUkxT6eYCgBhRu230Hb1 fO65OeSYe1iatDm5+GgH0vGPKPigyESAjFdMOJPKWl5IOh7YH6FN2VDLBnrUQWgE eZW3hNRlgxDb4Vnw4gRyr+KlEwO5z6qrGKgkJyPA3e7W1Jx0fp0= =K4EK -----END PGP SIGNATURE-----