Re: radius accounting proxy usage
Deon van der Merwe <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Stipe,
Here is a request that I received. I did not see any requests sent to
the native RADIUS server. I do not see any responses going back to
the APN. After these requests the wapbox also stops to precess the
accounting requests:
[root@wapgw sbin]# netstat -an | grep ":1813"
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State
udp 54096 0 0.0.0.0:1813 0.0.0.0:*
2005-11-22 16:40:14 [30396] [1] INFO: RADIUS: Got data from NAS <1.1.1.1:1812>
2005-11-22 16:40:14 [30396] [1] DEBUG: Octet string at 0x9dcd8c0:
2005-11-22 16:40:14 [30396] [1] DEBUG: len: 164
2005-11-22 16:40:14 [30396] [1] DEBUG: size: 165
2005-11-22 16:40:14 [30396] [1] DEBUG: immutable: 0
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 04 36 00 a4 5a 52 e3 54
49 68 43 47 3f ce 53 27 .6..ZR.TIhCG?.S'
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 62 c1 fb 88 28 06 00 00
00 02 06 06 00 00 00 02 b...(...........
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 0c 06 00 00 05 dc 1f 0d
32 37 38 34 37 37 37 30 ........99999999
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 32 39 34 1e 06 74 65 73
74 20 06 74 65 73 74 05 999..test .test.
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 06 00 01 7e bd 3d 06 00
00 00 05 08 06 0a 80 02 ...~.=..........
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 02 07 06 00 00 00 07 1a
0c 00 00 28 af 03 06 00 ...........(....
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 00 00 00 2c 0a 35 30 32
62 30 65 30 62 01 0d 32 ...,.502b0e0b..9
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 37 38 34 37 37 37 30 32
39 34 2e 06 00 00 03 83 9999999999......
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 2a 06 00 01 39 2b 2b 06
00 00 00 00 2f 06 00 00 *...9++...../...
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 03 a3 30 06 00 00 00 00
31 06 00 00 00 01 29 06 ..0.....1.....).
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 00 00 00 00
....
2005-11-22 16:40:14 [30396] [1] DEBUG: Octet string dump ends.
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attributes len is 145
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Authenticator (md5) is::
2005-11-22 16:40:14 [30396] [1] DEBUG: Octet string at 0x9dd15e0:
2005-11-22 16:40:14 [30396] [1] DEBUG: len: 16
2005-11-22 16:40:14 [30396] [1] DEBUG: size: 17
2005-11-22 16:40:14 [30396] [1] DEBUG: immutable: 0
2005-11-22 16:40:14 [30396] [1] DEBUG: data: 5a 52 e3 54 49 68 43
47 3f ce 53 27 62 c1 fb 88 ZR.TIhCG?.S'b...
2005-11-22 16:40:14 [30396] [1] DEBUG: Octet string dump ends.
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (40)
`Acct-Status-Type', len 4: "2"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (6)
`Service-Type', len 4: "2"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (12)
`Framed-MTU', len 4: "1500"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (31)
`Calling-Station-Id', len 11: "99999999999"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (30)
`Called-Station-Id', len 4: "test"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (32)
`NAS-Identifier', len 4: "test"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (5)
`NAS-Port', len 4: "97981"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (61)
`NAS-Port-Type', len 4: "5"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (8)
`Framed-IP-Address', len 4: "1.1.1.1.1"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (7)
`Framed-Protocol', len 4: "7"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (26)
`Vendor-Specific', len 10: ""
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (44)
`Acct-Session-Id', len 8: "502b0e0b"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (1)
`User-Name', len 11: "99999999999"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (46)
`Acct-Session-Time', len 4: "899"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (42)
`Acct-Input-Octets', len 4: "80171"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (43)
`Acct-Output-Octets', len 4: "0"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (47)
`Acct-Input-Packets', len 4: "931"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (48)
`Acct-Output-Packets', len 4: "0"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (49)
`Acct-Terminate-Cause', len 4: "1"
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Attribute (41)
`Acct-Delay-Time', len 4: "0"
2005-11-22 16:40:14 [30396] [1] INFO: RADIUS: from NAS: PDU type:
Accounting_Request
2005-11-22 16:40:14 [30396] [1] WARNING: RADIUS: Could not find
mapping for `1.1.1.1' session id <502b0e0b>, ignoring.
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Mapping table contains 0 elements
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Session table contains 0 elements
2005-11-22 16:40:14 [30396] [1] DEBUG: RADIUS: Client table contains 0 elements
2005-11-22 16:40:25 [30396] [1] INFO: RADIUS: Got data from NAS <1.1.1.1:1812>
2005-11-22 16:40:25 [30396] [1] DEBUG: Octet string at 0x9dd15a8:
2005-11-22 16:40:25 [30396] [1] DEBUG: len: 128
2005-11-22 16:40:25 [30396] [1] DEBUG: size: 129
2005-11-22 16:40:25 [30396] [1] DEBUG: immutable: 0
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 04 94 00 80 c8 1a df fa
12 7e 86 2a 7e 1f f3 65 .........~.*~..e
2005-11-22 16:40:25 [30396] [1] DEBUG: data: fa 59 be 42 28 06 00 00
00 01 06 06 00 00 00 02 .Y.B(...........
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 0c 06 00 00 05 dc 1f 0d
32 37 38 34 37 37 37 30 ........99999999
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 32 39 34 1e 06 74 65 73
74 20 06 74 65 73 74 05 999..test .test.
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 06 00 01 7f 11 3d 06 00
00 00 05 08 06 0a 80 02 .....=..........
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 02 07 06 00 00 00 07 1a
0c 00 00 28 af 03 06 00 ...........(....
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 00 00 00 01 0d 32 37 38
34 37 37 37 30 32 39 34 .....99999999999
2005-11-22 16:40:25 [30396] [1] DEBUG: data: 2c 0a 35 30 32 62 31 31
62 31 29 06 00 00 00 00 ,.502b11b1).....
2005-11-22 16:40:25 [30396] [1] DEBUG: Octet string dump ends.
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attributes len is 109
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Authenticator (md5) is::
2005-11-22 16:40:25 [30396] [1] DEBUG: Octet string at 0x9dd1540:
2005-11-22 16:40:25 [30396] [1] DEBUG: len: 16
2005-11-22 16:40:25 [30396] [1] DEBUG: size: 17
2005-11-22 16:40:25 [30396] [1] DEBUG: immutable: 0
2005-11-22 16:40:25 [30396] [1] DEBUG: data: c8 1a df fa 12 7e 86
2a 7e 1f f3 65 fa 59 be 42 .....~.*~..e.Y.B
2005-11-22 16:40:25 [30396] [1] DEBUG: Octet string dump ends.
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (40)
`Acct-Status-Type', len 4: "1"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (6)
`Service-Type', len 4: "2"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (12)
`Framed-MTU', len 4: "1500"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (31)
`Calling-Station-Id', len 11: "99999999999"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (30)
`Called-Station-Id', len 4: "test"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (32)
`NAS-Identifier', len 4: "test"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (5)
`NAS-Port', len 4: "98065"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (61)
`NAS-Port-Type', len 4: "5"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (8)
`Framed-IP-Address', len 4: "1.1.1.1"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (7)
`Framed-Protocol', len 4: "7"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (26)
`Vendor-Specific', len 10: ""
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (1)
`User-Name', len 11: "99999999999"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (44)
`Acct-Session-Id', len 8: "502b11b1"
2005-11-22 16:40:25 [30396] [1] DEBUG: RADIUS: Attribute (41)
`Acct-Delay-Time', len 4: "0"
2005-11-22 16:40:25 [30396] [1] INFO: RADIUS: from NAS: PDU type:
Accounting_Request
2005-11-22 16:40:25 [30396] [1] INFO: RADIUS: Mapping `1.1.1.1 <->
99999999999' for session id <502b11b1> added.
On 11/22/05, Stipe Tolj <[email protected]> wrote:
> Hi Deon,
>
> the RADIUS proxy code is my work ;)... will try to assist.
>