From 07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 5 Feb 2015 10:02:24 -0200 Subject: Packages repo cleanup: - Drop support for pfSense < 2 - Remove archive/, old files can be reached using git - Remove old and unused packages - Move stale files from config subdir to a package subdir --- config/freeradius/freeradius.inc | 546 +++++++++++++++++++++++++++++++ config/freeradius/freeradius.xml | 264 +++++++++++++++ config/freeradius/freeradiusclients.xml | 116 +++++++ config/freeradius/freeradiussettings.xml | 179 ++++++++++ 4 files changed, 1105 insertions(+) create mode 100644 config/freeradius/freeradius.inc create mode 100644 config/freeradius/freeradius.xml create mode 100644 config/freeradius/freeradiusclients.xml create mode 100644 config/freeradius/freeradiussettings.xml (limited to 'config/freeradius') diff --git a/config/freeradius/freeradius.inc b/config/freeradius/freeradius.inc new file mode 100644 index 00000000..6f0b1f38 --- /dev/null +++ b/config/freeradius/freeradius.inc @@ -0,0 +1,546 @@ + '') { + $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/freeradius/freeradius.xml b/config/freeradius/freeradius.xml new file mode 100644 index 00000000..63cdc8d2 --- /dev/null +++ b/config/freeradius/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 + https://packages.pfsense.org/packages/config/freeradius/freeradiusclients.xml + + + /usr/local/pkg/ + 0775 + https://packages.pfsense.org/packages/config/freeradius/freeradiussettings.xml + + + /usr/local/pkg/ + 0775 + https://packages.pfsense.org/packages/config/freeradius/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(); + +
diff --git a/config/freeradius/freeradiusclients.xml b/config/freeradius/freeradiusclients.xml new file mode 100644 index 00000000..e9417581 --- /dev/null +++ b/config/freeradius/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/freeradius/freeradiussettings.xml b/config/freeradius/freeradiussettings.xml new file mode 100644 index 00000000..31634a37 --- /dev/null +++ b/config/freeradius/freeradiussettings.xml @@ -0,0 +1,179 @@ + + + + + + . + 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