From 015b7d9bc5ca40dc8954729badb61ca2b544577d Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Fri, 2 Dec 2011 23:10:19 +0000 Subject: freeradius2 folder! --- config/freeradius2/freeradius.inc | 573 ++++++++++++++++++++++++++++++ config/freeradius2/freeradius.xml | 264 ++++++++++++++ config/freeradius2/freeradiusclients.xml | 116 ++++++ config/freeradius2/freeradiussettings.xml | 180 ++++++++++ 4 files changed, 1133 insertions(+) create mode 100755 config/freeradius2/freeradius.inc create mode 100644 config/freeradius2/freeradius.xml create mode 100755 config/freeradius2/freeradiusclients.xml create mode 100755 config/freeradius2/freeradiussettings.xml (limited to 'config') diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc new file mode 100755 index 00000000..6c83f377 --- /dev/null +++ b/config/freeradius2/freeradius.inc @@ -0,0 +1,573 @@ + '') { + $head .=", Simultaneous-Use := $multiconnect"; + } + if ($userexpiration <> '') { + $head .=", Expiration := ".'"'.$userexpiration.'"'; + } + if ($subnetmask<> '') { + $head .=", Framed-IP-Netmask = $subnetmask"; + } + if ($gateway<> '') { + $head .=", Framed-Route = $gateway"; + } + if ($onlinetime <> '') { + $head .=", Login-Time := ". '"' . $onlinetime .'"'; + } + if ($ip <> '') { + if ($atrib <> '') { $atrib .=","; } + $atrib .="\r\n\tFramed-IP-Address = $ip"; + } + if ($sessiontime <> '') { + if ($atrib <> '') { $atrib .=","; } + $atrib .="\r\n\tSession-Timeout := $sessiontime"; + } + if ($vlanid <> '') { + if ($atrib <> '') { $atrib .=","; } + $atrib .="\r\n\tTunnel-Type = VLAN,\r\n\tTunnel-Medium-Type = IEEE-802,\r\n\tTunnel-Private-Group-ID = \"$vlanid\""; + } + if ($additionaloptions <> '') { + if ($atrib <> '') { $atrib .=","; } + $atrib .="\r\n\t$additionaloptions"; + } + + $conf .= << diff --git a/config/freeradius2/freeradius.xml b/config/freeradius2/freeradius.xml new file mode 100644 index 00000000..86a3300f --- /dev/null +++ b/config/freeradius2/freeradius.xml @@ -0,0 +1,264 @@ + + + + + + . + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + freeradius + 1.1.2 + FreeRADIUS: Users + /usr/local/pkg/freeradius.inc + + FreeRADIUS + Modify FreeRADIUS users, clients, and settings. +
Services
+ /pkg.php?xml=freeradius.xml +
+ + FreeRADIUS + radiusd.sh + radiusd + The FreeRADIUS daemon. + + + + + Users + /pkg.php?xml=freeradius.xml + + + + Clients + /pkg.php?xml=freeradiusclients.xml + + + Settings + /pkg_edit.php?xml=freeradiussettings.xml&id=0 + + + + + + Username + username + + + Description + description + + + IP address + ip + + + Subnet Mask + subnetmask + + + Multiple Connection + multiconnect + + + Expiration + expiration + + + Session time + sessiontime + + + Online time + onlinetime + + + VLAN ID + vlanid + + + + /usr/local/pkg/ + 0775 + http://www.pfsense.org/packages/config/freeradiusclients.xml + + + /usr/local/pkg/ + 0775 + http://www.pfsense.org/packages/config/freeradiussettings.xml + + + /usr/local/pkg/ + 0775 + http://www.pfsense.org/packages/config/freeradius.inc + + + + Username + username + Enter the username. + input + + + + Password + password + Enter the password for this username. + password + + + + ip + IP address + + input + + + subnetmask + subnetmask + Framed-IP-Netmask. Needs support of the NAS (Switch) Example: 255.255.255.0 + input + + + gateway + gateway + Framed-Route. Needs support of the NAS (Switch). Order is: Subnet Gateway Metric Example: 192.168.10.0 192.168.10.1 1 + input + + + multiconnect + Number of Multiple connection + The available number of multiple simultaneous connections with this username. + + input + + + expiration + Expiration + You may enter the date that this account will stop working here.use Mmm dd yyyy example: 01 Jan 2007 will be Jan 01 2007 + input + + + sessiontime + Session time + Time this user has until relogin in seconds + input + + + onlinetime + Online time + + + input + + + description + Description + You may enter a description here for your reference (not parsed). + input + + + vlanid + VLAN ID +
+ + This setting can be used for switches/wireless access points that support the following radius parameters:
+ Tunnel-Type = VLAN
+ Tunnel-Medium-Type = IEEE-802
+ Tunnel-Private-Group-ID = "insert vlan identifier here"

+ + This was implemented and tested with HP Procurve Switches (3500yl, and 2626). HP Procurve switches support using either the VLAN ID or the VLAN name, while other switches will only work using the VLAN ID. + ]]> +
+ input +
+ + additionaloptions + Additional RADIUS Options + + You may append extra custom RADIUS options to this user account (separated by commas).
+ IMPORTANT: If you don't format this field correctly, FreeRADIUS may not properly start because the users file will contain a syntax error. + ]]> +
+ textarea + 10 + 75 +
+
+ + freeradius_users_resync(); + + + freeradius_users_resync(); + + + freeradius_install_command(); + + + freeradius_deinstall_command(); + +
\ No newline at end of file diff --git a/config/freeradius2/freeradiusclients.xml b/config/freeradius2/freeradiusclients.xml new file mode 100755 index 00000000..e9417581 --- /dev/null +++ b/config/freeradius2/freeradiusclients.xml @@ -0,0 +1,116 @@ + + + + + + . + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + freeradiusclients + none + FreeRADIUS: Clients + freeradius.inc + + + Users + /pkg.php?xml=freeradius.xml + + + Clients + /pkg.php?xml=freeradiusclients.xml + + + + Settings + /pkg_edit.php?xml=freeradiussettings.xml&id=0 + + + + + Client + client + + + Shortname + shortname + + + Description + description + + + + + Client + client + Enter the client's IP address. + input + + + + Shortname + shortname + Enter the client's shortname. + input + + + + Shared Secret + sharedsecret + Enter the client's shared secret here + password + + + + Description + description + Enter the description of the user here + input + + + + freeradius_clients_resync(); + + + freeradius_clients_resync(); + + diff --git a/config/freeradius2/freeradiussettings.xml b/config/freeradius2/freeradiussettings.xml new file mode 100755 index 00000000..4e9a7776 --- /dev/null +++ b/config/freeradius2/freeradiussettings.xml @@ -0,0 +1,180 @@ + + + + + + . + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + freeradiussettings + none + FreeRADIUS: Settings + pkg_edit.php?xml=freeradiussettings.xml&id=0 + freeradius.inc + + + Users + /pkg.php?xml=freeradius.xml + + + Clients + /pkg.php?xml=freeradiusclients.xml + + + Settings + /pkg_edit.php?xml=freeradiussettings.xml&id=0 + + + + + + Listening Interface(s) + interface_ip + Enter the desired listening interface IP here ( 192.168.1.0 ) or use "*" (without "") for any interface. + input + * + + + + Port + port + Enter the port the RADIUS server will listen on. Leave blank to default to the system default, i.e., 1812. + input + 1812 + + + Maximum requests server + max_requests_var + The maximum number of requests the RADIUS server can handle. Default is 1024. It should be 256 * number of clients e.g.: 4 Switches * 256 = 1024. + input + 1024 + + + Max request time + max_request_time_var + The maximum time (in seconds) to handle a request. Default is 30. Useful range of values: 5 to 120. + input + 30 + + + Cleanup delay + cleanup_delay_var + The time to wait (in seconds) before cleaning up a reply which was sent to the NAS. Default is 5. Useful range of values: 2 to 10. + input + 5 + + + Radius Logging Destination + logdir_var + Logging to "syslog" or "/var/log/radius.log" ? + select + /var/log + + + + + + + Radius Logging + radiuslogging + Enable logging? + select + no + + + + + + + Log bad authentication attempts? + radiuslogbadpass + Specifies whether to log bad authentication attempts to the radius.log file. Radius Logging must be enabled for this to work. + select + no + + + + + + + Log good authentication attempts? + radiusloggoodpass + Specifies whether to log good authentication attempts to the radius.log file. Radius Logging must be enabled for this to work. + select + no + + + + + + + + freeradius_settings_resync(); + + + freeradius_settings_resync(); + + -- cgit v1.2.3