diff options
Diffstat (limited to 'package/freeradius-server/files')
10 files changed, 123 insertions, 0 deletions
diff --git a/package/freeradius-server/files/clients.conf b/package/freeradius-server/files/clients.conf new file mode 100644 index 000000000..6c136a197 --- /dev/null +++ b/package/freeradius-server/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-server/files/freeradius-mod-eap.conffiles b/package/freeradius-server/files/freeradius-mod-eap.conffiles new file mode 100644 index 000000000..7e0e30e73 --- /dev/null +++ b/package/freeradius-server/files/freeradius-mod-eap.conffiles @@ -0,0 +1 @@ +/etc/freeradius/eap.conf diff --git a/package/freeradius-server/files/freeradius-mod-files.conffiles b/package/freeradius-server/files/freeradius-mod-files.conffiles new file mode 100644 index 000000000..4fcd92bff --- /dev/null +++ b/package/freeradius-server/files/freeradius-mod-files.conffiles @@ -0,0 +1,3 @@ +/etc/freeradius/acct_users +/etc/freeradius/preproxy_users +/etc/freeradius/users diff --git a/package/freeradius-server/files/freeradius-mod-realm.conffiles b/package/freeradius-server/files/freeradius-mod-realm.conffiles new file mode 100644 index 000000000..a4d412612 --- /dev/null +++ b/package/freeradius-server/files/freeradius-mod-realm.conffiles @@ -0,0 +1 @@ +/etc/freeradius/proxy.conf diff --git a/package/freeradius-server/files/freeradius-mod-sql.conffiles b/package/freeradius-server/files/freeradius-mod-sql.conffiles new file mode 100644 index 000000000..8ab119d07 --- /dev/null +++ b/package/freeradius-server/files/freeradius-mod-sql.conffiles @@ -0,0 +1 @@ +/etc/freeradius/sql.conf diff --git a/package/freeradius-server/files/freeradius.conffiles b/package/freeradius-server/files/freeradius.conffiles new file mode 100644 index 000000000..56552e6c1 --- /dev/null +++ b/package/freeradius-server/files/freeradius.conffiles @@ -0,0 +1,2 @@ +/etc/freeradius/clients.conf +/etc/freeradius/radiusd.conf diff --git a/package/freeradius-server/files/freeradius.postinst b/package/freeradius-server/files/freeradius.postinst new file mode 100644 index 000000000..c65fa195f --- /dev/null +++ b/package/freeradius-server/files/freeradius.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf radiusd radiusd NO +gid=$(get_next_gid) +add_group radius $gid +add_user radius $(get_next_uid) $gid /usr/lib/radius diff --git a/package/freeradius-server/files/radiusd.conf b/package/freeradius-server/files/radiusd.conf new file mode 100644 index 000000000..b9a573f69 --- /dev/null +++ b/package/freeradius-server/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-server/files/radiusd.init b/package/freeradius-server/files/radiusd.init new file mode 100644 index 000000000..818f803ff --- /dev/null +++ b/package/freeradius-server/files/radiusd.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG freeradius +#INIT 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-server/files/users b/package/freeradius-server/files/users new file mode 100644 index 000000000..df78de04c --- /dev/null +++ b/package/freeradius-server/files/users @@ -0,0 +1 @@ +steve Auth-Type := Local, User-Password == "testing123" |