How to run multiple instance of freeRADIUS on one server

Matthias Nagel matthias.h.nagel at gmail.com
Mon Nov 18 12:13:46 CET 2013


Hello Kwesi,
actually Brain told you how to do it between lines.

> There are plenty of configuration directives to separate sockets and logging and whatnot.
[...]
> The configuration file can be specified on the command-line

Hence, you have to create two different sets of configurations
file(s), that differ in port numbers. Then you have to start two
radius intances, each of them using one of the configuration
directories. To get a quick start, copy the configuration directory
(e.g. /etc/raddb/ or /etc/freeradius/) to something like
"/etc/raddb2/". Then change the port numbers. In a productive
environment a more sophisticated "copy" would probably be more
senseful, i.e. only make copies of the files you need to change and
use symlinks for the common configuration.

For debugging purpose you can use the "-C <directory>" option from
command line. The first instance gets "-C /etc/raddb", the second gets
"-C /etc/raddb2".

If you want your distribution to start both Freeradius instances, you
have to alter the init scripts of your linux distro accordingly. Look
at /etc/init.d/freeradius or /etc/init.d/radcct or similar and try to
understand, how the init script of your distro works and where the
configuration directory is set. Then change accordingly. But this is
highly dependent on your linux distribution.

Matthias


2013/11/18 Kwesi Yankson <kkwised at yahoo.com>:
> Thank you Brian,
> I know it is possible. My concern is HOW TO DO IT. That's what I need help
> with.  Can you help?
>
>
>
> On Monday, November 18, 2013 5:53 AM, Brian Julin <BJulin at clarku.edu> wrote:
>
> I run 5 instances of FR 2.x and two of 3.x on the same box in production
> with no problems,
> mainly to reduce the potential impact of administrative changes and
> upgrades.  There are
> plenty of configuration directives to separate sockets and logging and
> whatnot.  The
> configuration file can be specified on the command-line and you can even
> override where the
> dictionary comes from if needed.
>
> Though they are deprecated, there are older RADIUS ports at 1645/1646 that
> might be better
> supported if you stumble across a crummy NAS.
>
>
> ________________________________
> From: freeradius-users-bounces+bjulin=clarku.edu at lists.freeradius.org
> [freeradius-users-bounces+bjulin=clarku.edu at lists.freeradius.org] on behalf
> of Kwesi Yankson [kkwised at yahoo.com]
> Sent: Sunday, November 17, 2013 6:57 AM
> To: freeradius-users at lists.freeradius.org
> Subject: How to run multiple instance of freeRADIUS on one server
>
> Hello, I am using freeRADIUS 2.0 on Ubuntu Server 12.04 LTS
> I want to know how to run  multiple instances of freeRADIUS on one server.
> In this case I want instance-A to have the authentication port to be 1812
> and instance-B to have authentication port to be 1814.
> The acct port for instance-A to be 1813 and the acct port for instance-B to
> be 1815.
> I am thinking this is possible but I've been google for months now and have
> come up with nothing.  Can you please point me in the right direction?
>
> Kind Regards,
> Kwesi
>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html



-- 
Matthias Nagel
Parkstraße 27
76131 Karlsruhe

Festnetz: +49-721-96869289
Mobil: +49-151-15998774
e-Mail: matthias.h.nagel at gmail.com
ICQ: 499797758
Skype: nagmat84


More information about the Freeradius-Users mailing list