RE: static IP's with rlm_perl
$RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200';
See if the following helps: use Socket; . . . $RAD_REPLY{'Framed-IP-Address'} = inet_aton('192.168.77.200');
Hello, No, that did not work, with the setting below the debug shows: --snip-- ..... rlm_perl: Added pair Framed-IP-Address = ��M ... Sending Access-Accept of id 73 to 127.0.0.1 port 32813 Framed-IP-Address = 255.255.255.254 .... --snip-- Before when I was setting it with a string I looked fine in the logs: --snip-- .... rlm_perl: Added pair Framed-IP-Address = 192.168.77.200 .... (however it was not sent out) ... Sending Access-Accept of id 71 to 127.0.0.1 port 32811 Framed-IP-Address = 255.255.255.254 .... --snip-- Thanks for the suggestion. Michael Garber, Neal wrote:
$RAD_REPLY{'Framed-IP-Address'} = '192.168.77.200';
See if the following helps:
use Socket; . . . $RAD_REPLY{'Framed-IP-Address'} = inet_aton('192.168.77.200');
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Michael Gale Red Hat Certified Engineer Network Administrator Pason Systems Corp.
On Friday 20 October 2006 10:32, Michael Gale wrote:
Hello,
No, that did not work, with the setting below the debug shows:
--snip-- Framed-IP-Address = 255.255.255.254
Where is that attribute/value pair being added? If that is being set after your perl functions are processed, then it's possible the operator being used is allowing that attribute to be overwritten. Framed-IP-Address is not in the default FreeRADIUS config, so you've most likely added it somewhere and that is causing your problem. Kevin Bonner
participants (3)
-
Garber, Neal -
Kevin Bonner -
Michael Gale