Not sure how radclient will help, Tim.
Based on my limited exposure, I get the impression that I can use
radclient to simulate 1 network element (like the PDSN).
I'm trying to simulate 10 different ones simultaneously.
As mentioned in my initial email, I need the tool to simulate the PDSN,
the Pre-Paid Server and hosts of other network elements (possibly 10
such like the Foreign AAA, the Carrier Exchange and so on...)
Am I underestimating what the radclient can do ?
Message: 2
Date: Mon, 1 Jun 2009 11:34:19 -0700
From: "Tim Sylvester" <[email protected]>
Subject: RE: Building a test tool
To: "'FreeRadius users mailing list'"
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Use the radclient tool. You can create test files that have the attributes
for the radius packets and feed them to radclient.
NAME
radclient - send packets to a RADIUS server, show reply
SYNOPSIS
radclient [-d raddb_directory] [-c count] [-f file] [-i id] [-n
num_requests_per_second]
[-p num_requests_in_parallel] [-r num_retries] [-s] [-S
shared_secret_file] [-t timeout]
[-qvx] server {acct|auth|status|disconnect|auto} secret
DESCRIPTION
radclient is a radius client program. It can send arbitrary radius
packets to a radius
server, then shows the reply. It can be used to test changes you made
in the configura-
tion of the radius server, or it can be used to monitor if a radius
server is up.
radclient reads radius attribute/value pairs from it standard input,
or from a file spec-
ified on the command line. It then encodes these attribute/value
pairs using the dictio-
nary, and sends them to the remote server.
The User-Password and CHAP-Password attributes are automatically
encrypted before the
packet is sent to the server.
Tim
-----Original Message-----
From: freeradius-users-
[email protected]
[mailto:freeradius-users-
[email protected]] On Behalf
Of Vinit Karandikar
Sent: Monday, June 01, 2009 11:25 AM
To: [email protected]
Subject: Building a test tool
Hello folks,
I'm new to Free Radius and would like to use it to build a test tool
for
testing a AAA server.
I'd like the test tool to simulate (say) 10 network elements that talk
to a AAA server
- using threads on different ports that are controlled by the main
thread.
Some of these will initiate traffic to the AAA server (like the one
simulating the PDSN).
Others will receive traffic and talk back to the AAA server (like the
one simulating the Pre-paid Server).
I'm sure I'm not going to find something like this in the wild. So I'm
planning to write code to do the above.
I was wondering if there are bits of code that I can shamelessly pilfer
from or use as a starting point.
Any tips are plenty welcome...
Thanks in advance to all,
-Vinit
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html