Hi,I'm using freeradius 3.2.1 just to log Accounting requests (preferably through linelog module) so as to process data later with an external process.The problem is that when stress freeradius using radclient, many requests are not logged both using linelog or detail modules. I believe that there is something wrong with my test data that is stored in a simple file(i.e. acct_test.txt).Thank you in advanceRegards radclient -f acct_test.txt -c 5000 -t 1 -x -p 10 172.19.185.60 acct m2msdp2022|grep Accounting-Response|wc -lTue Dec 27 13:38:11 EET 2022radclient: Received reply to request we did not send. (id=21 socket 4)radclient: Received reply to request we did not send. (id=59 socket 4)5000 acct_test.txtAcct-Status-Type=StopAcct-Session-Id="testing"NAS-IP-Address=10.95.142.77#User-Name=vaiosCalled-Station-Id=306974028024Framed-IP-Address=10.37.236.170Event-Timestamp=1667211238Acct-Session-Id=C110DB4B857B4FB3Service-Type=FramedFramed-Protocol=PPTP3GPP-IMSI=2020109233950123GPP-Charging-ID=2239451059
On Dec 27, 2022, at 7:32 AM, vaiost SSSS via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Hi,I'm using freeradius 3.2.1 just to log Accounting requests (preferably through linelog module) so as to process data later with an external process.The problem is that when stress freeradius using radclient, many requests are not logged both using linelog or detail modules. I believe that there is something wrong with my test data that is stored in a simple file(i.e. acct_test.txt).Thank you in advanceRegards radclient -f acct_test.txt -c 5000 -t 1 -x -p 10 172.19.185.60 acct m2msdp2022|grep Accounting-Response|wc -lTue Dec 27 13:38:11 EET 2022radclient: Received reply to request we did not send. (id=21 socket 4)radclient: Received reply to request we did not send. (id=59 socket 4)5000 acct_test.txtAcct-Status-Type=StopAcct-Session-Id="testing"NAS-IP-Address=10.95.142.77#User-Name=vaiosCalled-Station-Id=306974028024Framed-IP-Address=10.37.236.170Event-Timestamp=1667211238Acct-Session-Id=C110DB4B857B4FB3Service-Type=FramedFramed-Protocol=PPTP3GPP-IMSI=2020109233950123GPP-Charging-ID=2239451059\
That's quite mangled and hard to read. But... radclient sends the same packet over and over. And the server does de-duplication on packets. So if it receives the "same" packet while processing another one, it ignores the duplicate one. You should use a test client which sends different packets (e.g. different NAS-Port) for every packet. Alan DeKok.
participants (2)
-
Alan DeKok -
vaiost SSSS