Hi Gerard,
I had the same goal but I simply did a small change in Client.pm (look for this
code snippet: "if ($code eq 'Status-Server')").
There I just add a small if clause to ensure that only requests from the
localhost were accepted. Something like this: "if ($self->{Name} ==
"127.0.0.1") { }"
So I provide the detailed statistics for requests from localhost and only a
simple "I'm OK" when everybody else asks - I think this can be easily extended
to allow a list of trusted clients.
Hope this helps.
--Remo
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Gerard Alcorlo Bofill
Sent: Freitag, 17. Dezember 2010 12:38
To: [email protected]
Subject: [RADIATOR] Control the Status-Server requests
Hi,
I'm trying to control the Status-Server requests. My goal is just to
permit the querying of my radius status only by some clients.
My first handler in the configuration is this one below, but no request
matches it.
<Handler Request-Type=Status-Server>
<AuthBy FILE>
Filename /dev/null
# StripFromReply Reply-Message
AddToReply Reply-Message="Informacio no disponible"
</AuthBy>
AddToReply Port-Limit="9999"
AuthLog LogSenseTunel
</Handler>
When this trial works, I'm going to strip the "Reply-Message" from the
answer. But for now, I just want to add some information to the answer
like the Port-Limit or another Reply-Message field.
Any ideas why my "Status-Server" request don't match to any realm and
all Status-Server requests are answered with the status information?
Thanks
--
Gerard
_______________________________________________
radiator mailing list
[email protected]
http://www.open.com.au/mailman/listinfo/radiator
_______________________________________________
radiator mailing list
[email protected]
http://www.open.com.au/mailman/listinfo/radiator