NEW Package: freeRADIUS 2.x
-
Hi Nachfalke,
thanx for the update. I have installed the latest Radius Package and get the follow error:
/usr/local/etc/raddb/sites-enabled/default[301]: Failed to load module "motp". /usr/local/etc/raddb/sites-enabled/default[301]: Failed to parse "motp" entry.
Radius service didn´t start anymore.
Are there missing anything?
Regards, Valle
-
Can't wait for FreeBSD9 snapshots but I have a feeling a lot of the packages i'm using wont be able to install :-(
good feeling :D
I`ll need to learn how to build pbi packages for pfsense.
2.1 will be based on freebsd 8.3
http://forum.pfsense.org/index.php/topic,46157.msg241830.html#msg241830
-
Hi Nachfalke,
thanx for the update. I have installed the latest Radius Package and get the follow error:
/usr/local/etc/raddb/sites-enabled/default[301]: Failed to load module "motp". /usr/local/etc/raddb/sites-enabled/default[301]: Failed to parse "motp" entry.
Radius service didn´t start anymore.
Are there missing anything?
Regards, Valle
Did a fresh install of freeradius2 on a fresh pfsense without problems:
Server is running with motp off
server is running with motp on (downloaded bash)
server is running with motp user created
server is running after deactivating "motp" in Settings.Jan 13 07:47:19 radiusd[6352]: Ready to process requests. Jan 13 07:47:19 radiusd[5765]: Loaded virtual server <default> Jan 13 07:47:17 radiusd[27310]: Exiting normally. Jan 13 07:47:17 radiusd[27310]: Signalled to terminate Jan 13 07:47:17 php: /pkg_edit.php: FreeRADIUS: Uninstalling package "bash-4.1.7" which comes with Mobile-One-Time-Password (motp). Jan 13 07:47:17 check_reload_status: Syncing firewall Jan 13 07:46:47 radiusd[27310]: Ready to process requests. Jan 13 07:46:47 radiusd[27239]: Loaded virtual server <default> Jan 13 07:46:45 radiusd[3884]: Exiting normally. Jan 13 07:46:45 radiusd[3884]: Signalled to terminate Jan 13 07:46:45 check_reload_status: Syncing firewall Jan 13 07:45:49 sshd[41626]: Accepted keyboard-interactive/pam for admin from 192.168.17.1 port 59669 ssh2 Jan 13 07:44:42 radiusd[3884]: Ready to process requests. Jan 13 07:44:42 radiusd[2552]: Loaded virtual server <default> Jan 13 07:44:40 radiusd[8880]: Exiting normally. Jan 13 07:44:40 radiusd[8880]: Signalled to terminate Jan 13 07:44:37 php: /pkg_edit.php: FreeRADIUS: Downloading and installing package "bash-4.1.7" to use Mobile-One-Time-Password (motp). Jan 13 07:44:37 check_reload_status: Syncing firewall Jan 13 07:44:23 radiusd[8880]: Ready to process requests. Jan 13 07:44:23 radiusd[8778]: Loaded virtual server <default> Jan 13 07:44:13 check_reload_status: Syncing firewall Jan 13 07:44:13 check_reload_status: Reloading filter Jan 13 07:44:12 check_reload_status: Syncing firewall Jan 13 07:44:12 radiusd[52258]: The server is not configured to listen on any ports. Cannot start. Jan 13 07:44:12 radiusd[52258]: The server is not configured to listen on any ports. Cannot start. Jan 13 07:44:12 radiusd[52161]: Loaded virtual server <default> Jan 13 07:44:10 radiusd[49566]: The server is not configured to listen on any ports. Cannot start. Jan 13 07:44:10 radiusd[49566]: The server is not configured to listen on any ports. Cannot start. Jan 13 07:44:10 radiusd[49532]: Loaded virtual server <default> Jan 13 07:43:51 php: /pkg_mgr_install.php: FreeRADIUS: Creating backup of the original file to /usr/local/etc/raddb/files.backup Jan 13 07:43:51 php: /pkg_mgr_install.php: FreeRADIUS: Creating backup of the original file to /usr/local/etc/raddb/policy.conf.backup</default></default></default></default></default></default>
There were some major changes in motp handling. Try to run this from "Diagnostics -> Command Prompt -> PHP execute"
require_once("freeradius.inc"); freeradius_dictionary_resync(); freeradius_modulesmotp_resync(); freeradius_users_resync();
Or disable motp, save, enable it again, save, edit one "user" and just click save without any changes because syntax in "users" file changed.
There were changes in:
Attributes added in: /usr/local/etc/raddb/dictionary New module created: /usr/local/etc/raddb/modules/motp Auth-Type motp added in: /usr/local/etc/raddb/sites-available/default Users file /usr/local/etc/raddb/users
-
Updates pkg v1.6.4:
- Added: mOTP: Custom options for password lifetime, Number of password attemtps, more syslog output
Known bugs:
-
When using "stop/start accounting on CP then "Amount of Time/Amount of Traffic" isn't working correctly.
http://redmine.pfsense.org/issues/2164
WORKAROUND: Do not use start/stop accounting - use only "interim update". Disadvantage: Counter only increases if a user gets disconnected. (Hard/Idle Timeout) -
When using CP + RADIUS + Vouchers and "reauthenticate every minute" is enabled then CP sends the voucher as username to RADIUS. This causes RADIUS to disconnect the "user/voucher" because of an unknown/wrong "username".
http://redmine.pfsense.org/issues/2155 -
When stop/start accounting on CP is enabled than the syslog shows many "wrong order" or "Login found bot no logout detected". This seems to not affect the usage of RADIUS but it is not 100% correct.
http://redmine.pfsense.org/issues/2143
-
Known bugs:
When using "stop/start accounting on CP then "Amount of Time/Amount of Traffic" isn't working correctly.
http://redmine.pfsense.org/issues/2164
WORKAROUND: Do not use start/stop accounting - use only "interim update". Disadvantage: Counter only increases if a user gets disconnected. (Hard/Idle Timeout)I Updated to latest package and changed accounting to "interim update". Created new user, and entered "999999999" in the "Amount of Download Traffic" field on new user GUI (any number greater immediately locks out user).
I tested by downloading 20MB test files and then disconnecting user from captive portal GUI after each download.
The total maximum traffic that could be downloaded ~160MB
So (currently) if you want to use "Amount of Download Traffic" user will only be able to download ~160/day, week, etc…
Nachtfalke, Again, thanks for your hard work... I'll keep testing as you make mods...
-
Known bugs:
When using "stop/start accounting on CP then "Amount of Time/Amount of Traffic" isn't working correctly.
http://redmine.pfsense.org/issues/2164
WORKAROUND: Do not use start/stop accounting - use only "interim update". Disadvantage: Counter only increases if a user gets disconnected. (Hard/Idle Timeout)I Updated to latest package and changed accounting to "interim update". Created new user, and entered "999999999" in the "Amount of Download Traffic" field on new user GUI (any number greater immediately locks out user).
I tested by downloading 20MB test files and then disconnecting user from captive portal GUI after each download.
The total maximum traffic that could be downloaded ~160MB
So (currently) if you want to use "Amount of Download Traffic" user will only be able to download ~160/day, week, etc…
Nachtfalke, Again, thanks for your hard work... I'll keep testing as you make mods...
As far as I understand this it is not possible to create a data counter which resets (daily, weekly, monthly), just one with "forever".
In this mails they are talking about that "problem".
http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg49267.html
Perhaps you can have a look at that, try with reset=forever and perhaps try with a limit less than 4GB. If this is working we can slowly change the one or the other parameter. -
okay, I'm finally happier :)
I've got working freeradius + winbindd + ntlm_auth with Active Directory with MSCHAP v2now I will remove from samba package as much as I can and then I would like to share my work with you.
I hope you will guide me if I should give you files or somehow make package etc.hello pszafer.
i'm trying to set up freeradius with ldap and mschap v2. with pap it is no problem, but i would never send plain passwords. are you ready to share your work with us?
-
Hi,
I am glad there is finally a good package for this. I had done this before by custom package building on FreeBSD with VMWare and then installing on PFsense, no GUI. I am using it on a hotel right now with 1000 rooms. I would like to contribute and share my work to contribute to a robust solution with MySQL integrated. There are a couple of things that I've came across and want to fix are the following:
-Implement Freeradius with sqlippool or better manage DHCP leases
-If user is authenticated for 1 day and server reboots, he has to authenticate again ( I want accounting to continue where it left off)
-Better Voucher/User GUI and printing options.I'l be glad to share my work and help where I can.
Regards
-
Hi,
I am glad there is finally a good package for this. I had done this before by custom package building on FreeBSD with VMWare and then installing on PFsense, no GUI. I am using it on a hotel right now with 1000 rooms. I would like to contribute and share my work to contribute to a robust solution with MySQL integrated.You are welcome!
There are a couple of things that I've came across and want to fix are the following:
-Implement Freeradius with sqlippool or better manage DHCP leasesI do not have much experience with *SQL databases. The basic support to connect to an *SQL database is ready and working. But you are right. I didn't take a look at sqlippool and of course if there will be GUI support for creating a custom SQL query would be really nice.
I thought of to hardcode the main part of a counter (daily, weekly,time, data) in the sqlcounter.conf and from GUI everybody can add the queries he likes.-If user is authenticated for 1 day and server reboots, he has to authenticate again ( I want accounting to continue where it left off)
I don't think there is any way around - if freeradius or the NAS reboots the user has to reauthenticate. If the NAS sends "interim updates" or "start/stop" accounting updates then there will be no big accounting loss when server reboots/crashes. To get high availability you need to use more than one RADIUS server and more than one database (freeradius2 package can do failover/loadbalancing for LDAP or *SQL).
So I would be interested in what we can do on this point.-Better Voucher/User GUI and printing options.
You have to explain that more in detail.
I'l be glad to share my work and help where I can.
Regards
As I said above - if you have any SQL ideas or something developed (sqlcounter, sqlippool, DOCUMENTATION :D ) then I really would appreciate to implement your work! :)
-
When I upgrade to latest version, it gives me the following error..
Beginning package installation for freeradius2…
Downloading package configuration file... done.
Saving updated package information... done.
Downloading freeradius2 and its dependencies...
Checking for package installation...
Downloading http://e-sac.siteseguro.ws/packages/8/All/freeradius-2.1.12.tbz ... could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.1-release/All/freeradius-2.1.12.tbz.
of freeradius-2.1.12 failed!Installation aborted.Backing up libraries...
Removing package...
Starting package deletion for freeradius-2.1.12...done.
Starting package deletion for openldap-sasl-client-2.4.26...done.
Removing freeradius2 components...
Tabs items... done.
Menu items... done.
Services... done.
Loading package instructions...
Include file freeradius.inc could not be found for inclusion.
Deinstall commands...
Not executing custom deinstall hook because an include is missing.
Removing package instructions...done.
Auxiliary files... done.
Package XML... done.
Configuration... done.
Cleaning up... Failed to install package.Installation halted.
-
The server is up and the file is there.
Are you blocking traffic to brazil on your pfsense?
-
The server is up and the file is there.
Are you blocking traffic to brazil on your pfsense?
The problem may come from my side. I am using a dynamic PPPoE connection, maybe my ip is blocked by your server..:((
Anyway, I restart the PF and the problem is gone.
-
I asked on the freeradius mailing lists about how to create a "traffic volume counter" because I am at a point where I do not know if it is really possible or just possible with an external database.
For those who want to participate or just want to follow this topic I post the link:
https://lists.freeradius.org/pipermail/freeradius-users/2012-February/msg00260.htmlUnfortunately I do not have any other NAS that can do accounting so I am not able to check if the counter isn't working in genral or just not with CP or whatelse. The datasheet opf my 600€ CISCO SG300-28 says it can do accounting but the CISCO support told me that it just will support it in the middle of the year or later firmware…
I feel a little bit helpless at the moment ... will take some time and see what will happen on this topic.
-
okay, I'm finally happier :)
I've got working freeradius + winbindd + ntlm_auth with Active Directory with MSCHAP v2now I will remove from samba package as much as I can and then I would like to share my work with you.
I hope you will guide me if I should give you files or somehow make package etc.hello pszafer.
i'm trying to set up freeradius with ldap and mschap v2. with pap it is no problem, but i would never send plain passwords. are you ready to share your work with us?
hello, I'm tryin' to write some tutorial here, it's still draft, but maybe it could already help you or somebody else:
https://docs.google.com/document/d/1UDg8Rt5wN_pGoepJyKTlAAnQdJgAsNXSrX3vkQu15DE/edit -
I installed the package.
user, interface, client setup….
Cannot get it to start.
Go to services, try and start it, nothing, no error.
-
I installed the package.
user, interface, client setup….
Cannot get it to start.
Go to services, try and start it, nothing, no error.
Is the service running or not ? (green or red arrow?)
The only thing after a fresh installation of freeradius2 you have to setup is the Interface.
No other things needed first to make the service start. Delete all interfaces and just create a new one with:IP: *
Mode: Authentication
Port: 1812 -
Did a reinstall.
The reinstall pulled the config that I already had. (The uninstall did not remove the config. )
Looks like it is running. Post more in a bit.
-
I am using it to secure a wpa2 network. Any guides or docs recommended to read?
-
Any guides on cert creation for eap-tls.
I checked:
Choose if you would like to create a client.p12 to export it to a windows client. You need this file if you use EAP-TLS.
Where do I get the cert it created?
I am using pfsense default cert manager. Not the cert manager that freeradius uses.
-
Any guides on cert creation for eap-tls.
I checked:
Choose if you would like to create a client.p12 to export it to a windows client. You need this file if you use EAP-TLS.
Where do I get the cert it created?
I am using pfsense default cert manager. Not the cert manager that freeradius uses.
Here all is explained:
http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package#EAP-TLSPS: In pfsense 2.1 there will be a possibility to download a .p12 file for System -> CertManager
Jimp added this some days ago. If you gitsync your system you will have this ability.