mikrotik nas output
/ppp active print detail where name=user_test
Flags: R - radius
0 R name="user_test" service=pppoe caller-id="00:17:59:E6:BD:9F" address=172.16.32.45 uptime=1m33s encoding="" session-id=0x8140763A limit-bytes-in=0
limit-bytes-out=0
radius server output. my accounting data is in radutmp.
# radwho -RU user_test
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
Acct-Session-Time = 25
Calling-Station-Id = "00:17:59:E6:BD:"
# cat pod
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
# cat pod | radclient -x 10.100.1.31:3799 disconnect mysecret
Sending Disconnect-Request of id 98 to 10.100.1.31 port 3799
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
rad_recv: Disconnect-ACK packet from host 10.100.1.31 port 3799, id=98, length=33
rad_verify: Received Disconnect-ACK packet from client 10.100.1.31 port 3799 with invalid signature (err=2)! (Shared secret is incorrect.)
Sending Disconnect-Request of id 98 to 10.100.1.31 port 3799
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
rad_recv: Disconnect-NAK packet from host 10.100.1.31 port 3799, id=98, length=39
rad_verify: Received Disconnect-NAK packet from client 10.100.1.31 port 3799 with invalid signature (err=2)! (Shared secret is incorrect.)
Sending Disconnect-Request of id 98 to 10.100.1.31 port 3799
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
rad_recv: Disconnect-NAK packet from host 10.100.1.31 port 3799, id=98, length=39
rad_verify: Received Disconnect-NAK packet from client 10.100.1.31 port 3799 with invalid signature (err=2)! (Shared secret is incorrect.)
Sending Disconnect-Request of id 98 to 10.100.1.31 port 3799
User-Name = "user_test"
Acct-Session-Id = "8140763a"
NAS-IP-Address = 10.100.1.31
NAS-Port = 40878
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.32.45
rad_recv: Disconnect-NAK packet from host 10.100.1.31 port 3799, id=98, length=39
rad_verify: Received Disconnect-NAK packet from client 10.100.1.31 port 3799 with invalid signature (err=2)! (Shared secret is incorrect.)
counters from mikrotik
/radius incoming monitor once
requests: 4
bad-requests: 0
acks: 1
naks: 3
and the radius log from nas
Feb 16 12:26:38 radius,debug,packet received Disconnect-Request with id 98 from radius-server:49202
Feb 16 12:26:38 radius,debug,packet Signature = 0x03e6aab96f7e5d928b0e52cf96b21d33
Feb 16 12:26:38 radius,debug,packet User-Name = \"user_test\"
Feb 16 12:26:38 radius,debug,packet Acct-Session-Id = \"8140763a\"
Feb 16 12:26:38 radius,debug,packet NAS-IP-Address = 10.100.1.31
Feb 16 12:26:38 radius,debug,packet NAS-Port = 40878
Feb 16 12:26:38 radius,debug,packet Service-Type = 2
Feb 16 12:26:38 radius,debug,packet Framed-Protocol = 1
Feb 16 12:26:38 radius,debug,packet Framed-IP-Address = 172.16.32.45
Feb 16 12:26:38 radius,debug received remote request 1 code=Disconnect-Request from radius-server:49202
....
Feb 16 12:26:38 radius,debug sending Disconnect-ACK to remote request 1
Feb 16 12:26:38 radius,debug,packet sending Disconnect-ACK with id 98 to radius-server:49202
Feb 16 12:26:38 radius,debug,packet Signature = 0xe29af2318ea8d10fa4dd32bd113630df
Feb 16 12:26:38 radius,debug,packet NAS-Identifier = \"NAS19\"
Feb 16 12:26:38 radius,debug,packet NAS-IP-Address = 10.100.1.31
....
Feb 16 12:26:41 radius,debug,packet received Disconnect-Request with id 98 from radius-server:49202
Feb 16 12:26:41 radius,debug,packet Signature = 0x03e6aab96f7e5d928b0e52cf96b21d33
Feb 16 12:26:41 radius,debug,packet User-Name = \"user_test\"
Feb 16 12:26:41 radius,debug,packet Acct-Session-Id = \"8140763a\"
Feb 16 12:26:41 radius,debug,packet NAS-IP-Address = 10.100.1.31
Feb 16 12:26:41 radius,debug,packet NAS-Port = 40878
Feb 16 12:26:41 radius,debug,packet Service-Type = 2
Feb 16 12:26:41 radius,debug,packet Framed-Protocol = 1
Feb 16 12:26:41 radius,debug,packet Framed-IP-Address = 172.16.32.45
Feb 16 12:26:41 radius,debug received remote request 2 code=Disconnect-Request from radius-server:49202
Feb 16 12:26:41 radius,debug sending Disconnect-NAK to remote request 2
Feb 16 12:26:41 radius,debug,packet sending Disconnect-NAK with id 98 to radius-server:49202
Feb 16 12:26:41 radius,debug,packet Signature = 0x8357807fedd43d4c116526446fa95f44
Feb 16 12:26:41 radius,debug,packet Error-Cause = 503
Feb 16 12:26:41 radius,debug,packet NAS-Identifier = \"NAS19\"
Feb 16 12:26:41 radius,debug,packet NAS-IP-Address = 10.100.1.31