Load Balancing

Olivier Beytrison olivier at heliosnet.org
Wed Feb 13 10:37:55 CET 2013


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 at heliosnet.org


More information about the Freeradius-Users mailing list