$INCLUDE ${maindir}/policy.d/
}
-client localhost {
- ipaddr = 127.0.0.1
- secret = testing123
-}
-
modules {
always reject {
rcode = reject
listen {
type = Access-Request
type = Accounting-Request
- transport = udp
- udp {
- ipaddr = 127.0.0.1
- port = ${test_port}
- }
- }
+ udp {
+ ipaddr = *
+ port = ${test_port}
+ dynamic_clients = true
+ networks {
+ allow = 0.0.0.0/0
+ }
+ }
+ transport = udp
+
+ #
+ # Dynamic client section
+ #
+ limit {
+ max_clients = 0
+ max_connections = 0
+ idle_timeout = 600.0
+ nak_lifetime = 10.0
+ cleanup_delay = 5.0
+ }
+ }
+
+ new client {
+ &control.FreeRADIUS-Client-IP-Address := 127.0.0.1
+ &control.FreeRADIUS-Client-Secret := 'testing123'
+ &control.FreeRADIUS-Client-Shortname := 'test-client'
+ &control.FreeRADIUS-Client-NAS-Type := 'test'
+ ok
+ }
+
+ add client {
+ ok
+ }
+
+ deny client {
+ ok
+ }
recv Access-Request {
#
accept
return
- }
+ }
if (&User-Name == "bob") {
accept