Framed-IP-Address problemo
Encik Omi <[email protected]>
| Newsgroups | gmane.network.nocat |
|---|---|
| Message-ID | <[email protected]> |
Hi...
I have installed NoCat Auth Server and NoCat Gateway. Both is v 0.82..
Those application runned in saperated macine. Also i have made some
modification in RADIUS.pm located in my Nocat gateway. In start
accounting i just added the Framed-IP-Address. like this
sub start {
my ($self, $peer, $stats) = @_;
if (! $peer->session_id)
{
$peer->session_id($self->radius->NewSessionId());
}
return $self->accounting({ Name => 1, Value => $peer->user, Type
=> 'string'},
# User-Name
{ Name => 4, Value => $self->{GatewayAddr}, Type
=> 'ipaddr'},
# NAS-IP-Address
{ Name => 5, Value => $self->{GatewayPort}, Type
=> 'integer'},
# NAS-Port
{ Name => 7, Value => '1', Type => 'integer'},
# Framed-Protocol
{ Name => 8, Type => 'ipaddr' , Value => $peer->id},
# Framed-IP-Address
{ Name => 31, Value => $peer->id, Type => 'string'},
{ Name => 32, Value => $peer->{GatewayAddr}, Type
=> 'string'},
# Calling-Station-Id
{ Name => 40, Value => '1', Type => 'integer'},
# Acct-Status-Type(Start)
{ Name => 40, Value => '7', Type => 'integer'},
# Acct-Status-Type(Accounting-On)
{ Name => 42, Value => ${$stats}{'InOctets'}, Type
=> 'integer'},
{ Name => 43, Value => ${$stats}{'OutOctets'},
Type => 'integer'},
{ Name => 44, Value => $peer->session_id, Type => 'string'},
{ Name => 45, Value => '1', Type => 'integer'}
);
}
My problem is, it's seem that Frame - IP- Address does'nt appear in
detail log file in Radius server...What's wrong on it?..Anybody know ?
Detail file look like this
(17:23:50) zakidad: Sat Feb 5 17:05:01 2005
User-Name = "ahad"
NAS-IP-Address = 192.168.20.102
NAS-Port = 5280
Framed-Protocol = PPP
Calling-Station-Id = "00:04:75:FC:09:5A"
Acct-Status-Type = Alive
Acct-Session-Id = "0110750717890250"
Acct-Input-Octets = 607369
Acct-Output-Octets = 109776
Acct-Authentic = RADIUS
Acct-Session-Time = 1551
Service-Type = Framed-User
Client-IP-Address = 192.168.20.102
Acct-Unique-Session-Id = "7b60bd89d64edc29"
Timestamp = 1107594301
--
Roime Puniran