ok, I followed your process. i make a file with User-Name and NAS-IP-Address attribute. and issue the following command radclient -c 10 -p 1000 -f radrequest.txt 192.168.0.112 auth testing123 But i only receive 10 "access-accept" packets. So what does it mean?? If upper command issues 1000 requests 10 times, so their should be 10000 "access-accept" packets?? So please tell me where things are going worse :( On Wed, Feb 13, 2013 at 2:37 PM, Olivier Beytrison <olivier@heliosnet.org>wrote:
On 13.02.2013 09:38, Muhammad Nadeem wrote:
I used -c 10000, and omit -p,, result was the same . 10000 users were authenticated in 23 seconds :) . So i think no difference of using -p and -c together ?? M I right??????
Well yeah -p works only with a file (-f)
so, feed your request multiple time to a file : for d in {1..10000} ; do echo -e "User-Name=001AAD3F8165\nNAS-IP-Address=10.192.100.4\n" >> rad-requests.txt ; done
(there need to be a empty line between request, hence the extra \n at the end)
Send the requests, 100 at a time, and repeat 10 times
radclient -c 10 -p 100 -f rad-requests.txt server:port auth secret
Tested it here and works very well
Olivier --
Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mobile: +41 (0)78 619 73 53 Mail: olivier@heliosnet.org - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Best Regards Muhammad Nadeem Muhammad Ali Jinnah University