summaryrefslogtreecommitdiff
path: root/package/freeradius/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/freeradius/files')
-rw-r--r--package/freeradius/files/clients.conf7
-rw-r--r--package/freeradius/files/radiusd.conf73
-rw-r--r--package/freeradius/files/radiusd.init27
-rw-r--r--package/freeradius/files/users1
4 files changed, 108 insertions, 0 deletions
diff --git a/package/freeradius/files/clients.conf b/package/freeradius/files/clients.conf
new file mode 100644
index 000000000..6c136a197
--- /dev/null
+++ b/package/freeradius/files/clients.conf
@@ -0,0 +1,7 @@
+## clients.conf -- client configuration directives
+client localhost {
+ ipaddr = 127.0.0.1
+ secret = testing123
+ require_message_authenticator = no
+ nastype = other # localhost isn't usually a NAS...
+}
diff --git a/package/freeradius/files/radiusd.conf b/package/freeradius/files/radiusd.conf
new file mode 100644
index 000000000..b9a573f69
--- /dev/null
+++ b/package/freeradius/files/radiusd.conf
@@ -0,0 +1,73 @@
+## radiusd.conf -- FreeRADIUS server configuration file.
+name = radiusd
+
+prefix = /usr
+exec_prefix = ${prefix}
+sysconfdir = /etc
+localstatedir = /var
+sbindir = ${exec_prefix}/sbin
+logdir = ${localstatedir}/log/radius
+raddbdir = /etc/freeradius
+radacctdir = ${logdir}/radacct
+# Location of config and logfiles.
+confdir = ${raddbdir}
+run_dir = ${localstatedir}/run
+db_dir = ${raddbdir}
+libdir = /usr/lib/freeradius
+pidfile = ${run_dir}/${name}.pid
+user = radius
+group = radius
+#chroot = /path/to/chroot/directory
+
+max_request_time = 30
+cleanup_delay = 5
+max_requests = 1024
+
+listen {
+ type = auth
+ ipaddr = *
+ port = 1812
+}
+
+listen {
+ type = acct
+ ipaddr = *
+ port = 1813
+}
+
+hostname_lookups = no
+allow_core_dumps = no
+regular_expressions = yes
+extended_expressions = yes
+
+log {
+ destination = syslog
+ syslog_facility = daemon
+ stripped_names = no
+ auth = no
+ auth_badpass = no
+ auth_goodpass = no
+}
+
+checkrad = ${sbindir}/checkrad
+
+security {
+ max_attributes = 200
+ reject_delay = 1
+ status_server = yes
+}
+
+$INCLUDE clients.conf
+
+thread pool {
+ start_servers = 4
+ max_servers = 8
+ min_spare_servers = 3
+ max_spare_servers = 10
+ max_requests_per_server = 0
+}
+modules {
+}
+
+instantiate {
+}
diff --git a/package/freeradius/files/radiusd.init b/package/freeradius/files/radiusd.init
new file mode 100644
index 000000000..4e47678da
--- /dev/null
+++ b/package/freeradius/files/radiusd.init
@@ -0,0 +1,27 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${radiusd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ [ -d /var/log/radius ] || mkdir -p /var/log/radius
+ radiusd
+ ;;
+stop)
+ killall radiusd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/freeradius/files/users b/package/freeradius/files/users
new file mode 100644
index 000000000..df78de04c
--- /dev/null
+++ b/package/freeradius/files/users
@@ -0,0 +1 @@
+steve Auth-Type := Local, User-Password == "testing123"