Hi all !

I have defined the field FramedGroupBaseAddress in the <Client> section of my 
radiator.cfg file, and FramedGroup 0 in the <AuthbySQL> Section. The lines are like 
this:

<Client ....>
   ....
   FramedGroupBaseAddress 212.87.203.1
</Client>

<AuthBy SQL>
   FramedGroup 0
   .....
</AuthBy SQL>

When a user gets connected and the NAS Port is under 254, all works fine, like in this 
trace example:

Tue Nov 16 11:00:00 1999: DEBUG: Packet dump:
*** Received from 212.87.192.2 port 2482 ....
Code:       Access-Request
Identifier: 17
Authentic:  <181><224><186><247><239>o<17>-(<7><160><<167><197><191><162>
Attributes:
        NAS-IP-Address = 195.76.180.3
        NAS-Port = 20
        NAS-Port-Type = Async
        User-Name = "aburguet@bemarnet"
        Called-Station-Id = "963351000"
        Calling-Station-Id = "961272640"
        User-Password = ********
        Service-Type = Framed-User
        Framed-Protocol = PPP

Tue Nov 16 11:00:00 1999: DEBUG: Handling request with Handler 'Realm=DEFAULT'
Tue Nov 16 11:00:00 1999: DEBUG: Rewrote user name to aburguet@bemarnet
Tue Nov 16 11:00:00 1999: DEBUG:  Deleting session for aburguet@bemarnet, 
195.76.180.3, 20
Tue Nov 16 11:00:00 1999: DEBUG: do query is: delete from RADONLINE where 
NASIDENTIFIER='195.76.180.3' and NASPORT=20

Tue Nov 16 11:00:00 1999: DEBUG: Handling with Radius::AuthSQL
Tue Nov 16 11:00:00 1999: DEBUG: Handling with Radius::AuthSQL
Tue Nov 16 11:00:00 1999: DEBUG: Query is: select PASSWORD, CHECKATTR, REPLYATTR from 
SUBSCRIBERS where USERNAME='aburguet@bemarnet'

Tue Nov 16 11:00:00 1999: DEBUG: Radius::AuthSQL looks for match with aburguet@bemarnet
Tue Nov 16 11:00:00 1999: DEBUG: Query is: select NASIDENTIFIER, NASPORT, 
ACCTSESSIONID from RADONLINE where USERNAME='aburguet@bemarnet'

Tue Nov 16 11:00:00 1999: DEBUG: Radius::AuthSQL ACCEPT: 
Tue Nov 16 11:00:00 1999: DEBUG: FramedGroup 0 address is being assigned
Tue Nov 16 11:00:00 1999: DEBUG: Access accepted for aburguet@bemarnet
Tue Nov 16 11:00:00 1999: DEBUG: Packet dump:
*** Sending to 212.87.192.2 port 2482 ....
Code:       Access-Accept
Identifier: 17
Authentic:  <181><224><186><247><239>o<17>-(<7><160><<167><197><191><162>
Attributes:
        Service-Type = Framed-User
        Framed-IP-Address = 212.87.203.21

As you can see the IP Address is assigned OK (FramedGroupBaseAddress  + NasPORT =  
212.87.203.21), but when the NAS-Port is greater than 254, the Radiator fails 
assigning a correct IP Address:



*** Received from 212.87.192.2 port 2484 ....
Code:       Access-Request
Identifier: 133
Authentic:  "%<1> 5<11>/<13>*<2><0><0><129><218><240><3>
Attributes:
        User-Name = "jennifer@bemarnet"
        CHAP-Password = *******
        NAS-IP-Address = 195.76.180.22
        NAS-Port = 324
        NAS-Port-Type = ISDN
        Calling-Station-Id = "9654197740000000000000000"
        Connect-Info = "64000"

Tue Nov 16 11:00:38 1999: DEBUG: Handling request with Handler 'Realm=DEFAULT'
Tue Nov 16 11:00:38 1999: DEBUG: Rewrote user name to jennifer@bemarnet
Tue Nov 16 11:00:38 1999: DEBUG:  Deleting session for jennifer@bemarnet, 
195.76.180.22, 324
Tue Nov 16 11:00:38 1999: DEBUG: do query is: delete from RADONLINE where 
NASIDENTIFIER='195.76.180.22' and NASPORT=324

Tue Nov 16 11:00:38 1999: DEBUG: Handling with Radius::AuthSQL
Tue Nov 16 11:00:38 1999: DEBUG: Handling with Radius::AuthSQL
Tue Nov 16 11:00:38 1999: DEBUG: Query is: select PASSWORD, CHECKATTR, REPLYATTR from 
SUBSCRIBERS where USERNAME='jennifer@bemarnet'

Tue Nov 16 11:00:38 1999: DEBUG: Radius::AuthSQL looks for match with jennifer@bemarnet
Tue Nov 16 11:00:38 1999: DEBUG: Query is: select NASIDENTIFIER, NASPORT, 
ACCTSESSIONID from RADONLINE where USERNAME='jennifer@bemarnet'

Tue Nov 16 11:00:38 1999: DEBUG: Radius::AuthSQL ACCEPT: 
Tue Nov 16 11:00:38 1999: DEBUG: FramedGroup 0 address is being assigned
Tue Nov 16 11:00:38 1999: DEBUG: Access accepted for jennifer@bemarnet
Tue Nov 16 11:00:38 1999: DEBUG: Packet dump:
*** Sending to 212.87.192.2 port 2484 ....
Code:       Access-Accept
Identifier: 133
Authentic:  "%<1> 5<11>/<13>*<2><0><0><129><218><240><3>
Attributes:
        Service-Type = Framed-User
        Framed-IP-Address = 212.87.204.70

The IP Address is 212.87.204.70 instead of 212.87.203.70

Where is the bug ? 

Regards,

Antonio Navarro Navarro
BemarNet Management
[EMAIL PROTECTED]
http://www.bemarnet.es

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to