Mikrotik - working NAS with config:
0 service=ppp called-id="" domain="" address=10.2.1.18 secret="123" authentication-port=1812 accounting-port=1813 timeout=500ms accounting-backup=no realm=""
radius -X
Result - billing count 3 SessionsReady to process requests.
rad_recv: Accounting-Request packet from host 10.17.1.1 port 35248, id=48, length=201
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 19
NAS-Port-Type = Ethernet
User-Name = "test"
Calling-Station-Id = "00:50:BA:50:6E:08"
Called-Station-Id = "pppoe-in"
NAS-Port-Id = "vlan6-Office"
Acct-Session-Id = "81000007"
Framed-IP-Address = 10.168.25.3
Acct-Authentic = RADIUS
Event-Timestamp = "Apr 6 2010 20:47:42 MSD"
Acct-Session-Time = 9
Acct-Input-Octets = 830
Acct-Input-Gigawords = 0
Acct-Input-Packets = 11
Acct-Output-Octets = 86
Acct-Output-Gigawords = 0
Acct-Output-Packets = 8
Acct-Status-Type = Stop
Acct-Terminate-Cause = User-Request
NAS-Identifier = "Nebula"
NAS-IP-Address = 10.17.1.1
Acct-Delay-Time = 0
+- entering group preacct
++[preprocess] returns ok
Exec-Program output:
Exec-Program: returned: 0
++[abills_acc] returns ok
Finished request 27.
Cleaning up request 27 ID 48 with timestamp +2169
Going to the next request
Ready to process requests.
rad_recv: Accounting-Request packet from host 10.17.1.1 port 35248, id=48, length=201
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 19
NAS-Port-Type = Ethernet
User-Name = "test"
Calling-Station-Id = "00:50:BA:50:6E:08"
Called-Station-Id = "pppoe-in"
NAS-Port-Id = "vlan6-Office"
Acct-Session-Id = "81000007"
Framed-IP-Address = 10.168.25.3
Acct-Authentic = RADIUS
Event-Timestamp = "Apr 6 2010 20:47:42 MSD"
Acct-Session-Time = 9
Acct-Input-Octets = 830
Acct-Input-Gigawords = 0
Acct-Input-Packets = 11
Acct-Output-Octets = 86
Acct-Output-Gigawords = 0
Acct-Output-Packets = 8
Acct-Status-Type = Stop
Acct-Terminate-Cause = User-Request
NAS-Identifier = "Nebula"
NAS-IP-Address = 10.17.1.1
Acct-Delay-Time = 1
+- entering group preacct
++[preprocess] returns ok
Exec-Program output:
Exec-Program: returned: 0
++[abills_acc] returns ok
Finished request 28.
Cleaning up request 28 ID 48 with timestamp +2170
Going to the next request
Ready to process requests.
rad_recv: Accounting-Request packet from host 10.17.1.1 port 35248, id=48, length=201
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 19
NAS-Port-Type = Ethernet
User-Name = "test"
Calling-Station-Id = "00:50:BA:50:6E:08"
Called-Station-Id = "pppoe-in"
NAS-Port-Id = "vlan6-Office"
Acct-Session-Id = "81000007"
Framed-IP-Address = 10.168.25.3
Acct-Authentic = RADIUS
Event-Timestamp = "Apr 6 2010 20:47:42 MSD"
Acct-Session-Time = 9
Acct-Input-Octets = 830
Acct-Input-Gigawords = 0
Acct-Input-Packets = 11
Acct-Output-Octets = 86
Acct-Output-Gigawords = 0
Acct-Output-Packets = 8
Acct-Status-Type = Stop
Acct-Terminate-Cause = User-Request
NAS-Identifier = "Nebula"
NAS-IP-Address = 10.17.1.1
Acct-Delay-Time = 1
+- entering group preacct
++[preprocess] returns ok
Exec-Program output:
Exec-Program: returned: 0
++[abills_acc] returns ok
Finished request 29.
Cleaning up request 29 ID 48 with timestamp +2170
Going to the next request
Ready to process requests.