New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server not send ACK to NAS #3603
Comments
RFC 2866 says that if accounting fails, then the server should not reply. So the just add |
I think that "notfound" is not equal to "fail", but it seems that ippool interrupts the processing of accounting packet by other modules, is it ok? |
The In any case, you already have a way to make it work. I don't think there's any bug here. |
why do you think notfound is failing? |
the |
With this configuration, we still get an error Acct-Type Status-Server { } if (!&NAS-IP-Address) { Thu Aug 27 16:47:45 2020 : Debug: (6) unknown_pool: EXPAND %{Calling-Station-Id} |
I did mean that freeradius immediately stops processing if ippool returns "notfound," as you can see above, I think it could be a bug? |
Good day!
There is a server version 3.0.13, we used rlm_ippool module.
Config:
`server fastdpi-vs {
....
accounting {
}
....
`
We receive this STOP packet from NAS:
(146) Received Accounting-Request Id 201 from 10.10.1.252:34557 to 10.10.0.80:18013 length 565
(146) NAS-Identifier = "XXXX"
(146) Framed-IP-Address = xx.xx.13.144
(146) Calling-Station-Id = "00:00:00:00:96:f4"
(146) Service-Type = Framed-User
(146) User-Name = "service_2186"
(146) Acct-Session-Id = "A1F8AC1E000000E1"
(146) Acct-Authentic = RADIUS
(146) Acct-Status-Type = Stop
(146) Acct-Terminate-Cause = NAS-Request
(146) Acct-Session-Time = 1798
(146) Event-Timestamp = "авг 21 2020 13:52:25 +05"
(146) Acct-Input-Packets = 350
(146) Acct-Output-Packets = 1
(146) Acct-Input-Octets = 33757
(146) Acct-Input-Gigawords = 0
(146) Acct-Output-Octets = 113
(146) Acct-Output-Gigawords = 0
(146) # Executing section preacct from file /etc/raddb/sites-enabled/fastdpi-vs
(146) # Executing section accounting from file /etc/raddb/sites-enabled/fastdpi-vs
Tue Aug 25 12:36:26 2020 : Debug: Parsed xlat tree:
Tue Aug 25 12:36:26 2020 : Debug: attribute --> Calling-Station-Id
Tue Aug 25 12:36:26 2020 : Debug: literal --> -
Tue Aug 25 12:36:26 2020 : Debug: attribute --> NAS-Port
Tue Aug 25 12:36:26 2020 : Debug: (146) unknown_pool: EXPAND %{Calling-Station-Id}-%{NAS-Port}
Tue Aug 25 12:36:26 2020 : Debug: (146) unknown_pool: --> d4:ca:6d:3c:96:f4-
Tue Aug 25 12:36:26 2020 : Debug: (146) unknown_pool: MD5 on 'key' directive maps to: 105be0687b9e0bd834397957e8310f76
Tue Aug 25 12:36:26 2020 : Debug: (146) unknown_pool: Searching for an entry for key: 'd4:ca:6d:3c:96:f4-'
Tue Aug 25 12:36:26 2020 : Debug: (146) unknown_pool: Entry not found
Tue Aug 25 12:36:26 2020 : Debug: (146) modsingle[accounting]: returned from unknown_pool (rlm_ippool)
Tue Aug 25 12:36:26 2020 : Debug: (146) [unknown_pool] = notfound
Tue Aug 25 12:36:26 2020 : Debug: (146) } # accounting = notfound
Tue Aug 25 12:36:26 2020 : Debug: (146) Not sending reply to client.
(146) Not sending reply to client.
When a notfound response is received from the ippool module, the processing is completed and the response is not sent, and if the module responded with noop, the response is sent.
The problem was solved like this:
accounting {
unknown_pool {
notfound = 1
}
}
but its bug!
The text was updated successfully, but these errors were encountered: